TUI: notes raised during a turn render above the user message that started it

Aperta
#200 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start with Transcript::push_note in src/ui/render.rs and trace how committed session entries, live turn blocks, and notes are ordered during rendering. Reproduce the reported case in tmux with a permission question raised during a live turn, then inspect the relevant TUI rendering tests. Done when mid-turn notes appear after the user message that triggered them while the “Needs you” banner stays near the input.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: ux bug priority: P2

What happens

Notes pushed during a live turn are anchored to the number of committed session entries (Transcript::push_note, src/ui/render.rs: let anchor = self.session.len()), while the live user message and assistant blocks render after all committed entries. So a permission question, notice or warning raised by the current turn is drawn above the user message that started it:

◑ permission · bash
  $ touch new.txt
  Allow this exact call? …

▌ Use the bash tool to run: touch new.txt      ← the prompt that caused it
◑ notice …
◐ Bash touch new.txt · running…

When the question is the one thing the user must look at, it sits higher up than the running tool, out of reading order.

Observed running in tmux on main (40a2e78).

Suggested direction

Anchor mid-turn notes to the live turn (e.g. append them to turn blocks, or anchor to session.len() plus the live block count) so they render where they happened; keep the "Needs you" banner pinned near the input as it is now.

Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.