Skip to content

Propagate cancelled sub-agent status end to end - #552

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/bright-pixel-7267123f
Aug 9, 2026
Merged

Propagate cancelled sub-agent status end to end#552
SDSLeon merged 1 commit into
masterfrom
poracode/bright-pixel-7267123f

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 9, 2026

Copy link
Copy Markdown
Owner
  • Add a crossagentStatus field (running/completed/failed/cancelled) to the tool-call runtime-event contract and emit it from the sub-agent run manager so cancellation is tracked as a distinct terminal state.
  • Mark stale Crossagent terminals as failed in the runtime event slice so interrupted sub-agents render as terminal instead of being mistaken for completed.
  • Surface the cancelled state in the chat tool-call row and sub-agent overlay, with the new labels localized across all 12 non-English catalogs.
  • Prune removed-user-message bookkeeping in the OpenCode canonical mapper so cancelled messages don't leak stale item-completion events.

- Emit `crossagentStatus` on sub-agent run completion in SubagentRunManager
- Extend `ToolCallPayload` contract with `crossagentStatus` and validate via schema
- Mark stale cancelled Crossagents MCP calls as failed in `runtimeEventSlice`
- Render cancelled status overlay/label in SubAgentOverlay and SubAgentToolCall
- Add "cancelled" translations to all 12 non-English catalogs
- Clear non-optimistic user message maps when OpenCode mapper finishes
- Add tests across supervisor, contracts, state, and ChatPane components
@SDSLeon
SDSLeon merged commit ae5f8e0 into master Aug 9, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/bright-pixel-7267123f branch August 9, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant