TUI: bash output does not stream while running, and cancel discards what it printed

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start at the TUI bash tool execution and output rendering paths, then trace how cancellation produces the final result. Check existing tests for command output and cancellation behavior. Done means a running command displays a bounded stdout/stderr tail, and cancelling preserves captured output marked as partial while the model still receives the capped final result.

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

Descrizione

area: tools area: ux enhancement priority: P2

What happens

  • A running bash call shows only ◐ Bash <cmd> · running…; nothing of its output appears until it ends. A slow build or test run looks hung.
  • Cancelling it (Esc/Ctrl+C) replaces the result with [cancelled] cancelled during execution; what the command already printed is lost, though that is usually what tells you why you cancelled.

Repro

Use the bash tool to run exactly: for i in 1 2 3 4 5 6; do echo tick $i; sleep 1; done → no ticks while it runs; Ctrl+C at ~4 s → no ticks in the result. Observed running in tmux on main (40a2e78).

How others handle it

  • Oh My Pi: the bash card streams a live tail (⇣ last 3 lines) with a timer, and spills oversized output to an artifact file.
  • Claude Code: shows the live tail of a running command; long commands can be moved to the background (Ctrl+B) and managed from the footer.

Suggested direction

Stream a bounded tail (last N lines) of stdout/stderr into the tool block while it runs (UI only; the model still gets the capped final result), and keep the captured partial output in the result on cancel, marked as partial.

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.