Repository navigation
docs(codex-tools): fix subagent wait mapping to wait_agent - #963
Merged
Merged
Conversation
Contributor
Author
|
Thanks for taking a look. This is intended to be a very small doc-only correction:
The key point is that current Codex distinguishes:
I included direct source links in the PR description for the tool spec, handler registration, tests, and the code-mode If the wording should be adjusted to better match the project's preferred terminology, I'm happy to update it. |
2 tasks done
5 tasks done
5 tasks done
This was referenced Jul 31, 2026
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.
Summary
Fix the Codex tool mapping doc so subagent waiting uses
wait_agentinstead of the outdatedwait.Problem
skills/using-superpowers/references/codex-tools.mdstill describedwaitas the tool for collecting spawned subagent results.That is outdated for current Codex. In current
openai/codex, subagent waiting is handled bywait_agent, whilewaitis the separate exec-waiting surface (exec/wait) used for command / exec output.Why this is correct
I verified this against the official
openai/codexsource corresponding to CLI0.117.0(rust-v0.117.0):1. Codex defines a dedicated
wait_agenttool for subagentsIn the tool spec, Codex defines
create_wait_agent_tool_v1()andcreate_wait_agent_tool_v2(), both namedwait_agent:name: "wait_agent".to_string()description: "Wait for agents to reach a final status..."Source:
2. Codex registers the subagent wait handler under
wait_agentThe multi-agent handler registration uses
wait_agent, notwait:builder.register_handler("wait_agent", Arc::new(WaitAgentHandlerV2));Source:
3. Codex separately defines
waitas the exec wait toolCodex also defines a different
waittool with exec-specific parameters such as:cell_idyield_time_msmax_tokensterminateThat is the command / exec waiting surface, not subagent waiting.
Source:
4. Codex tests explicitly distinguish the two tool surfaces
The tool-spec tests show:
["spawn_agent", "send_input", "wait_agent", "close_agent"]["exec", "wait"]Sources:
5. Codex’s own code-mode description ties
waittoexec/waitCodex’s code-mode description says:
Useexec/waittool to run all other tools...So
waitis explicitly associated with the exec/code-mode path.Source:
6. The subagent wait implementation operates on agent targets and returns
WaitAgentResultThe multi-agent wait implementation parses agent targets and returns
WaitAgentResult, confirming that this path is specifically for waiting on spawned agents.Sources:
7. Release reference
Official release tag for the version checked:
Changes
Task returns resultmapping fromwaittowait_agentspawn_agent,wait,close_agenttospawn_agent,wait_agent,close_agentwait_agent= wait for spawned agentswait(exec/wait) = wait for exec / command outputScope
Minimal doc-only change in:
skills/using-superpowers/references/codex-tools.mdVerification
No diff formatting issues were reported.