[code mode] defer mcp tools from exec description#17287
Merged
Conversation
pakrym-oai
reviewed
Apr 10, 2026
pakrym-oai
reviewed
Apr 10, 2026
sayan-oai
commented
Apr 10, 2026
6dac0a1 to
388d9d5
Compare
558bd7f to
c3aa960
Compare
388d9d5 to
818a569
Compare
pakrym-oai
reviewed
Apr 16, 2026
pakrym-oai
approved these changes
Apr 16, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
execprompt in code modeALL_TOOLSMotivation
code_mode_onlyexposes only top-levelexec/wait, but theexecdescription could still include a large nested-tool reference. This keeps deferred nested tools callable while avoiding that prompt bloat.Tests
just fmtjust fix -p codex-code-modejust fix -p codex-toolscargo test -p codex-code-mode exec_description_mentions_deferred_nested_tools_when_availablecargo test -p codex-tools create_code_mode_tool_matches_expected_speccargo test -p codex-core code_mode_only_guides_all_tools_search_and_calls_deferred_app_tools