Skip to content

feat(core): emit canonical sub-agent activity items - #31299

Merged
owenlin0 merged 1 commit into
mainfrom
owen/canonical-sub-agent-activity-items
Jul 7, 2026
Merged

feat(core): emit canonical sub-agent activity items#31299
owenlin0 merged 1 commit into
mainfrom
owen/canonical-sub-agent-activity-items

Conversation

@owenlin0

@owenlin0 owenlin0 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR depends on #31296 for the canonical-to-legacy event mappings.

Description

This PR makes the MultiAgentV2 spawn, message/follow-up, and interrupt paths emit completed canonical TurnItem::SubAgentActivity items instead of SubAgentActivityEvent directly.

App-server v2 now applies interrupted-agent thread-watch cleanup from the canonical completed item and ignores the mapped legacy activity event.

Why

Sub-agent activity is separate from the v1 collab tool begin/end lifecycle. Keeping it separate makes the v2 watcher side effect reviewable without mixing in the larger collab tool-call migration.

What changed

  • Emit canonical sub-agent activity items from v2 spawn, message/follow-up, and interrupt paths.
  • Move missing-thread watcher cleanup onto canonical completed activity items.
  • Update focused app-server coverage to exercise canonical interrupted activity.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fddbaa9ffc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/core/src/tools/handlers/multi_agents_v2.rs
Comment thread codex-rs/app-server/src/bespoke_event_handling.rs
@owenlin0
owenlin0 force-pushed the owen/canonical-dynamic-tool-call-items branch from a354d83 to aac2b79 Compare July 7, 2026 03:51
@owenlin0
owenlin0 force-pushed the owen/canonical-sub-agent-activity-items branch from fddbaa9 to 7e9e806 Compare July 7, 2026 03:51
@owenlin0
owenlin0 force-pushed the owen/canonical-dynamic-tool-call-items branch from aac2b79 to 1661367 Compare July 7, 2026 03:54
@owenlin0
owenlin0 force-pushed the owen/canonical-sub-agent-activity-items branch from 7e9e806 to 122f1c9 Compare July 7, 2026 03:54
@owenlin0
owenlin0 force-pushed the owen/canonical-dynamic-tool-call-items branch from 1661367 to 9036b0a Compare July 7, 2026 04:31
Base automatically changed from owen/canonical-dynamic-tool-call-items to main July 7, 2026 15:32
@owenlin0
owenlin0 force-pushed the owen/canonical-sub-agent-activity-items branch from 122f1c9 to 3d2cb39 Compare July 7, 2026 15:37
@owenlin0
owenlin0 merged commit 1bd9d84 into main Jul 7, 2026
61 of 66 checks passed
@owenlin0
owenlin0 deleted the owen/canonical-sub-agent-activity-items branch July 7, 2026 19:57
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants