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

1
Cargo.lock generated
View File

@@ -674,6 +674,7 @@ version = "2.0.0"
dependencies = [
"anyhow",
"async-trait",
"atty",
"chrono",
"dirs",
"gyandoot-browser",