CLI UX: Input prompt (»), G> output prefix, answering spinner

Three UX improvements for interactive mode:

1. Input prompt: Shows '»' (bold cyan) on stdin before reading user input
2. Output prefix: Agent responses prefixed with 'G>' (bold green)
3. Thinking indicator: Animated spinner on stderr showing 'answering (N.Ns)'
   with braille frame characters, auto-clears when response arrives
   - Start/stop via tokio::sync::watch channel + tokio::spawn
   - Only shows when interactive (atty detection)
   - Does not affect gateway/sub-agent modes
This commit is contained in:
2026-06-12 11:56:10 +05:30
parent e06094c0a2
commit 1d8e26e683
3 changed files with 85 additions and 7 deletions

View File

@@ -22,4 +22,5 @@ uuid.workspace = true
chrono.workspace = true
async-trait.workspace = true
rand.workspace = true
dirs.workspace = true
dirs.workspace = true
atty.workspace = true