Repository navigation
Support model-catalog overrides for Code Mode tool messages - #47118
Merged
copyberry[bot] merged 1 commit intoSep 21, 2026
Conversation
## What changed
- Add `tools.code_mode` catalog messages for `exec`, `wait`, deferred-tool guidance, and shared MCP TypeScript definitions.
- Render `{{ default_exec_yield_time_ms }}` and `{{ image_helper }}` in `exec` descriptions while preserving runtime tool declarations and the freeform grammar.
- Resolve `wait` descriptions and parameter schemas independently, falling back to bundled parameters for invalid or unsupported schemas.
- Use the active model's Code Mode messages, including after mid-turn model changes. Missing overrides retain bundled defaults; empty text overrides suppress the corresponding text.
## Testing
Add coverage for literal template substitution, runtime section preservation, independent `wait` overrides and fallback behavior, mid-turn model changes, and a yielded cell completing through `wait` with catalog messages.
GitOrigin-RevId: e542a0cd47a7138a414871192cee47790ed1214e
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e542a0cd47a7138a414871192cee47790ed1214e
branch
from
September 21, 2026 22:49
e6ff6b6 to
5aa4939
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e542a0cd47a7138a414871192cee47790ed1214e
branch
September 21, 2026 22:49
This branch was successfully deployed
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.
Support model-catalog overrides for Code Mode tool messages
What changed
tools.code_modecatalog messages forexec,wait, deferred-tool guidance, and shared MCP TypeScript definitions.{{ default_exec_yield_time_ms }}and{{ image_helper }}inexecdescriptions while preserving runtime tool declarations and the freeform grammar.waitdescriptions and parameter schemas independently, falling back to bundled parameters for invalid or unsupported schemas.Testing
Add coverage for literal template substitution, runtime section preservation, independent
waitoverrides and fallback behavior, mid-turn model changes, and a yielded cell completing throughwaitwith catalog messages.