Ctrl+R can delete the wrong turn's citations and the wrong message
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start in src/chatty/ui/app.py, especially ChatApp.action_regenerate around lines 436–475, and trace how augment updates the RAG turn counter and how turn widgets are added to the chat log. Check the Ctrl+R behavior for turns with and without citations and for a system line after a reply. Done means regeneration only removes that assistant turn’s widgets and reverses its counter change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
ChatApp.action_regenerate (src/chatty/ui/app.py:436) assumes the last response produced citations and is the last message on screen:
- it removes the last
CitationsWidgetin the chat log (line 468), whichever turn it belongs to; - it removes the last
MessageWidget(line 471), whatever its role; - it decrements the RAG turn counter (line 475), but
augmentonly increments it when chunks were found.
Effect:
- Turn 1 has sources, turn 2 found no chunks, then Ctrl+R: turn 1's citation list is deleted, and the counter drops from 1 to 0, so the regenerated answer reuses turn 1's
[1.N]numbers. - If a system line follows the reply (for example
Session saved: ...after Ctrl+S), Ctrl+R removes that line and leaves the old assistant reply on screen, while the conversation no longer contains it.
Fix: record, per assistant turn, whether it added citations and incremented the counter, and undo only that. Remove the specific widgets that belong to the turn instead of "the last one".
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 2
- Merge medio
- 1g 4h
- PR unite (30g)
- 13
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lanl/chatty
-
area: rag bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area: client bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area: ui bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: config bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
area: config bug wrong-result
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
software-mansion-labs/Diplomat#20 ·
I maintainer di solito rispondono entro 1 giorno
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaForse già presa @lijy91 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
libnativeapi/nativeapi#53 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
View Counts discarded due to field name mismatchForse già presa @rsiva0400 l’ha presa oggi. Apertasite-bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Model version publishes the new UK firm entity as a personForse già presa @vahid-ahmadi l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PolicyEngine/policyengine.py#764 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
spcl/HPCAgent-Bench#264 ·
I maintainer di solito rispondono entro 1 giorno