agent-orchestrator/backend/internal/cli
Adil Shaikh 39dbca0104
fix: sync topbar activity pill (#2541)
* fix: sync topbar activity pill

* test: format topbar activity coverage

* fix(activity): treat Claude Code idle_prompt as Idle, not Input Needed

A stop/interrupt ends the turn (Stop hook -> idle), but the follow-up
Notification(idle_prompt) previously latched the session to the sticky
waiting_input state. The topbar pill (and inspector) therefore read
"Input Needed" for a session that is simply idle at the prompt awaiting
the next instruction.

Map idle_prompt -> idle; only permission_prompt (a real tool-approval
block) stays waiting_input. So stopping/finishing a turn now reads Idle,
while genuine permission requests still surface as Input Needed.

Refs #2540, #2541.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs(pr-2541): add topbar activity-state screenshots

Overview of the pill across all agent activity states (+ SCM-ignored
cases) and two live-app confirmations, as evidence for #2541.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: pulkit-mac <prateeksaraf9@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 17:32:59 +05:30
..
agent.go feat(cli): context-aware agent spawn with agent catalog and auth preflight (#2411) 2026-07-04 21:23:03 +05:30
agent_test.go feat(cli): context-aware agent spawn with agent catalog and auth preflight (#2411) 2026-07-04 21:23:03 +05:30
client.go feat(cli): context-aware agent spawn with agent catalog and auth preflight (#2411) 2026-07-04 21:23:03 +05:30
client_test.go Add `ao spawn` + `ao project add` (spawn a real worker end-to-end) (#77) 2026-06-02 18:39:13 +05:30
completion.go fix(cli): harden daemon control surface and stop CLI from writing the store 2026-06-01 01:55:14 +05:30
doctor.go fix(spawn): fail fast when tmux is missing (#2259) 2026-06-30 00:14:46 +05:30
doctor_test.go fix(spawn): fail fast when tmux is missing (#2259) 2026-06-30 00:14:46 +05:30
dto_drift_e2e_test.go Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
e2e_test.go feat(cli): ao start fetches + opens the desktop app; deprecate npm as an app channel (Track A) (#2201) 2026-06-26 19:31:56 +05:30
exitcode_test.go test(cli): pin ExitCode mapping (usage=2, runtime=1, nil=0) 2026-06-01 02:38:25 +05:30
hooks.go fix(codex): reliable activity signals — session-flag hooks, trust bypass, no_signal watchdog (#170) 2026-06-11 10:36:45 +05:30
hooks_test.go fix: sync topbar activity pill (#2541) 2026-07-09 17:32:59 +05:30
import.go feat: dashboard legacy-migration popup + app-state migration marker (#2219) 2026-06-27 02:24:36 +05:30
import_test.go feat(import): rewrite-side legacy → rewrite first-boot import (#314) 2026-06-18 19:54:51 +05:30
launch.go feat(windows): ConPTY terminal, zellij discovery, agent launcher trampoline, codex shim resolution (#310) 2026-06-18 21:51:05 +05:30
orchestrator.go feat: add light backend CLI commands (#98) 2026-06-03 16:18:00 +05:30
orchestrator_test.go feat: add light backend CLI commands (#98) 2026-06-03 16:18:00 +05:30
output.go feat(backend): add cobra cli foundation 2026-06-01 01:44:43 +05:30
pr_ref.go feat: ao session claim-pr + spawn --claim-pr wiring (#101) 2026-06-06 00:01:03 +05:30
preview.go fix(cli): wrong exit code on too many args for review submit and preview (#2457) 2026-07-07 22:33:10 +05:30
preview_test.go fix(cli): wrong exit code on too many args for review submit and preview (#2457) 2026-07-07 22:33:10 +05:30
process.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30
process_unix.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30
process_windows.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30
project.go feat(tracker): GitHub issue intake (backend + dashboard) (#2325) 2026-07-04 02:52:14 +05:30
project_test.go feat(tracker): GitHub issue intake (backend + dashboard) (#2325) 2026-07-04 02:52:14 +05:30
ptyhost.go Zellij to tmux + ConPTY runtime, session save/restore, crash-proof reconcile (port #404) (#2183) 2026-06-25 15:05:41 +05:30
review.go fix(cli): wrong exit code on too many args for review submit and preview (#2457) 2026-07-07 22:33:10 +05:30
review_test.go fix(cli): wrong exit code on too many args for review submit and preview (#2457) 2026-07-07 22:33:10 +05:30
root.go fix(cli): wrong exit code on too many args for review submit and preview (#2457) 2026-07-07 22:33:10 +05:30
root_test.go feat(cli): ao start fetches + opens the desktop app; deprecate npm as an app channel (Track A) (#2201) 2026-06-26 19:31:56 +05:30
send.go fix: prefix ao send messages with sender session (#85) 2026-06-02 21:39:21 +05:30
send_test.go fix: prefix ao send messages with sender session (#85) 2026-06-02 21:39:21 +05:30
session.go Revert "feat(session): switch a session's agent mid-flight (#2412)" (#2502) 2026-07-08 00:52:05 +05:30
session_test.go Feat/backend telemetry v0 (#307) 2026-06-18 22:00:25 +05:30
spawn.go feat(cli): context-aware agent spawn with agent catalog and auth preflight (#2411) 2026-07-04 21:23:03 +05:30
spawn_test.go feat(cli): context-aware agent spawn with agent catalog and auth preflight (#2411) 2026-07-04 21:23:03 +05:30
start.go feat: Global Settings (migration + update channel) + ao start download progress (#2235) 2026-06-27 23:08:55 +05:30
start_test.go feat: Global Settings (migration + update channel) + ao start download progress (#2235) 2026-06-27 23:08:55 +05:30
status.go fix: recover terminal reattach after daemon idle (#354) 2026-06-21 13:59:15 +05:30
stop.go fix(cli): treat run-file removal as stopped in ao stop (#2215) 2026-06-27 20:24:02 +05:30
stop_test.go feat: add agent catalog/auth API and safer orchestrator switching (#2309) 2026-07-04 10:59:34 +05:30
version.go refactor: simplify session lifecycle and zellij runtime (#62) 2026-06-01 08:42:49 +05:30