Repository navigation
Conversation
Normalize legacy/namespaced tool call names before sending request history. - map container.exec -> shell - strip namespaced prefixes (e.g. functions.exec_command -> exec_command) when tool exists - sanitize invalid chars to '_' as a fallback - apply normalization to compaction payloads too Adds unit tests for regression.
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@illanes00, thanks for the contribution. The Codex Team member who has the most experience in this part of the code base is busy with higher-priority work at the moment. It will probably be at least a week before we'll be able to review this. It's in the queue. |
|
@etraut-openai, thanks for letting me know! Totally understand; no rush on my side. |
|
After some internal discussion, we've decided to pass on this PR. We don't think this is the correct fix. Thanks again for taking the time to post it. |
Fixes #6540
What
Normalize legacy/namespaced tool call names in the transcript before sending request history to the OpenAI Responses API.
This avoids 400s like:
Invalid 'input[N].name': string does not match pattern '^[a-zA-Z0-9_-]+$'How
container.exec->shell.functions.exec_command), drop the prefix when the suffix matches a known tool in the current prompt._as a fallback.Tests
cargo test -p codex-core tool_name_testsManual verification
functions.exec_command; patched CLI continues without triggeringinput[*].namevalidation errors.