Citation titles, chunk text and rewritten queries are rendered as markup
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start in src/chatty/ui/widgets.py at lines 695 and 758, where queries, citation titles, and chunk text are passed to Textual widgets. Check how Collapsible handles its string title and how Textual supports Content or escaped text. Done means bracketed titles render intact and text containing [/ no longer raises MarkupError.
Written by the indexing model from the issue text.
Description
CitationsWidget passes retrieved text to Textual widgets that parse markup:
- the citation title
[T.N] PMID:... | <paper title>goes toCollapsible(title=...)(src/chatty/ui/widgets.py:758), andCollapsibleTitlerenders it as markup; - the chunk text goes to
Static(full_text)in the same place; - the original and rewritten queries go to
Static(content)(src/chatty/ui/widgets.py:695).
Effect:
- Paper titles in brackets disappear. PubMed puts translated titles in brackets, so
[1.3] PMID:123 | [Clinical features of COVID-19 in children].shows as▶ [1.3] PMID:123 | . - A title or chunk containing
[/(code, paths, regexes) raisesMarkupErrorwhile the citations widget is composed. This happens outside the worker'stry, so the app exits.
Fix: pass Content objects (or escaped text) for the title, chunk text and queries. Collapsible's title parameter is typed str, so check that a Content title renders, or escape the string.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/chatty
-
area: rag bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
area: client bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: ui bug wrong-result
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area: config bug wrong-result
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
area: config bug wrong-result
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day