feat(tui): sub-agent stop, framed result cards, agents registry tab - #48
Merged
Conversation
The relay delivers sub-agent log payloads in the data field and the child log status in status; the handler read detail, which serve never sends on this frame, so live runs rendered bare event names. Read data first (detail stays a legacy fallback), surface status, and cap the segment like every other one-line preview.
Per-task lifecycle frames (odek v1.30+) drive in-place agent cards: live step/tool/iteration/token/duration while running, terminal glyphs mirroring odek status framing (success/partial/error/ cancelled/timeout), and a done/tokens rollup on the collapsed step line. Stray frames fall back to notices, wire text is sanitized on ingest, and older servers render exactly as before.
Three milestones of the sub-agents UI plan land together (they share the same files): per-agent stop over the WS subagent_cancel frame (ctrl+s or /stop <SA#> behind the two-step confirm; acks never flip card state — the terminal subagent_state does), structured cards for framed delegate results (tolerant parse, prose fallback), and an /agents drawer tab over GET /api/subagents using the shared drawer grammar with the full detail view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
M3+M4+M5 of the sub-agents UI plan, landing as one commit (the three milestones share the same files).
ctrl+s(or/stop <SA#>) sends the WSsubagent_cancelbehind the existing two-step confirm;subagent_cancelledacks never flip card state — the terminalsubagent_stateframe does.accepted:falsesurfaces the benign race./agentsdrawer tab:GET /api/subagentsregistry snapshot with the shared drawer grammar — rows, ⏎ detail (redacted goal + full metadata), digit jump, cycling.Stacked on #47 (M1) and the M2 branch — diff vs main is M3-M5 only once those merge.
Gates: go fmt / go vet / go test -race -count=1 ./... all green (incl. the e2e command-registry and drawer-cycling sweeps, updated for the 9-tab ring). Note: local golangci-lint could not run (tool-approval gate timeouts in this session) — CI lint is the backstop; no merge before it is green.