You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tui): surface build & turn completion via toast + bell
Long-running bash tasks (`notify_on_complete: true`) now push a
green/red toast into the TUI when they finish, and assistant turns
that ran ≥8s do the same — so you can step away during a build or a
long agent turn and notice the moment it's done.
- core: add `completionToast` (Option<bool>, default true) and
`bellOnComplete` (default false) settings, merged hierarchically.
- tools: replace `CompletionNotifier(Fn(String))` with a structured
`BgTaskCompletion` payload (task_id, command, success, exit_info,
output_tail, duration_secs) so consumers can fan-out to system-
message injection, TUI toasts, and a terminal bell from one source
of truth.
- cli: drain a new `bg_completion_rx` channel each main-loop tick and
feed `App::signal_bg_task_completion`, which pushes a Success/Error
notification (sticky on failure, 8s on success) and rings `\x07` when
the bell flag is on.
- tui: same toast+bell on `QueryEvent::TurnComplete` for turns past
`completion_toast_min_secs` (8s). Brighten the idle "✽ Worked for…"
status line into a bold green ✓ so it reads as "done" at a glance
instead of dim gray.
Four new unit tests cover the toast routing and duration formatting.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments