Skip to content

feat: make interrupt state not final for multi-agents#13850

Merged
jif-oai merged 9 commits intomainfrom
jif/interrupted-not-final
Mar 16, 2026
Merged

feat: make interrupt state not final for multi-agents#13850
jif-oai merged 9 commits intomainfrom
jif/interrupted-not-final

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Mar 7, 2026

Make interrupted an agent state and make it not final. As a result, a wait won't return on an interrupted agent and no notification will be send to the parent agent.

The rationals are:

  • If a user interrupt a sub-agent for any reason, you don't want the parent agent to instantaneously ask the sub-agent to restart
  • If a parent agent interrupt a sub-agent, no need to add a noisy notification in the parent agen
Copy link
Copy Markdown
Contributor

@gabec-openai gabec-openai left a comment

Choose a reason for hiding this comment

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

locally patched - seems to work much better!

jif-oai added 4 commits March 16, 2026 13:47
…inal

# Conflicts:
#	codex-rs/app-server-protocol/schema/json/EventMsg.json
#	codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json
#	codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json
#	codex-rs/app-server-protocol/schema/typescript/AgentStatus.ts
#	codex-rs/app-server-protocol/src/protocol/thread_history.rs
#	codex-rs/core/src/agent/control.rs
#	codex-rs/core/src/tools/handlers/multi_agents.rs
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Mar 16, 2026

@codex review

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@codex are we sure this short circuits the final notification injection?

@jif-oai jif-oai merged commit 3f266bc into main Mar 16, 2026
32 checks passed
@jif-oai jif-oai deleted the jif/interrupted-not-final branch March 16, 2026 16:39
@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants