[GUI] Changing the language while an answer streams freezes the shown answer; with Edit/Rewind open it deadlocks the composer
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia da serve/web/app.js:1557-1558 (l'onchange della selezione della lingua → showLanguage), poi leggi renderChat alle righe 1548-1556 e la ricreazione di .st-msg alle righe 964-966. Confronta con i punti di chiamata protetti (openChat/startChat/regenerateAt/undoHistory/il toggle della lista) per vedere come vengono controllati busy e panel, e leggi la gestione del pannello in chats-ui.js:341 e 391 per capire come deve essere eseguito closePanel. È completato quando il cambio lingua viene rifiutato mentre busy è attivo oppure chiude il pannello in modo sicuro, e l'elemento catturato da generateReply alla riga 1209 non viene più staccato a metà dello stream; verifica con la riproduzione a due clic.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem: on the served web chat page, the About tab is reachable while an answer is streaming, and the language select's onchange → showLanguage() (serve/web/app.js:1557-1558) → renderChat() (lines 1548-1556) destroys and recreates every .st-msg node (lines 964-966) with NO busy/panel guard. Every other renderChat() call site guards (openChat/startChat/regenerateAt/undoHistory/list-toggle check busy/panel) — showLanguage is the only unguarded one. Two consequences: (a) generateReply keeps painting into the element it captured (line 1209), now detached — the shown answer freezes at mid-stream text until the next render (the stored chat is fine); (b) an open Edit/Rewind panel lives INSIDE the destroyed message node (chats-ui.js:341/391), so panel.el is detached while panel stays set — closePanel() is only reachable from the panel's own buttons (now gone) or New chat: the textarea and send button stay disabled ("Save or cancel what is open above to continue") with nothing on screen to cancel.
Environment:
Strata Version: 0.2.7 (source checkout at tag v0.2.7, commit 5e8a4cca; the file discussed is byte-identical to the tag)
OS: Linux x86-64
Reported from the Strata-Mnemosyne fork's merged tree; the offending code is upstream's own.
Reproduce: start a long answer → About tab → change Language → back to Chat: the answer shows frozen text until the next send. Variant: open "Rewind to here", change the language → composer disabled with no visible panel; escaping needs New chat or a reload.
Expected: the language switch behaves like the other re-renders (refuse, or close the panel safely while busy).
Reproduction status: unconfirmed static analysis (no browser on this box; call-site audit as described). What would verify: the two clicks above.
- Lingua principale
- C++
- Stelle
- 11.6k
- Fork
- 1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 Niko1221/Strata
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di Niko1221/Strata
Issue simili
-
Shell: serve the home app's Cookie Policy on a hard reloadForse già presa @2001anshkaushik l’ha presa oggi. Apertafeature module:ai
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
rocketride-org/rocketride-server#2899 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
rice-solar-physics/HYDRAD#113 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
status:needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PX4/PX4-Autopilot#29496 ·
I maintainer di solito rispondono entro 1 giorno
-
Missing icon for .cpp2 filesAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 66/100
madskristensen/FileIcons#385 ·