Repository navigation
fix: pin Codex to 0.94.0 + wire_api=chat for multi-turn stability - #1518
Merged
Merged
Conversation
…stability The Responses API format causes "Invalid Responses API request" errors on the second turn and beyond — conversation history items round-trip through OpenRouter with null content fields and missing IDs that fail validation. Chat Completions format is fully supported and avoids this issue. Co-Authored-By: Claude Opus 4.6 <[email protected]>
OpenRouter's Responses API proxy drops required fields (id, content) from conversation-history items on multi-turn requests, causing "Invalid Responses API request" at input[6]+. Codex >=0.97.0 removed wire_api=chat support (openai/codex#10157), so we pin to 0.94.0 — the last release where Chat Completions format still works. Tracking: openai/codex#12114 TODO: unpin once OpenRouter /responses handles round-trip correctly. Co-Authored-By: Claude Opus 4.6 <[email protected]>
louisgv
approved these changes
Feb 20, 2026
louisgv
left a comment
Collaborator
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Commit: 64cbab2
Findings
No security issues found. Changes are safe:
- Version pinning to
@openai/[email protected]prevents unexpected breaking changes - Config change from
wire_api="responses"towire_api="chat"is a benign string literal - All package version strings are hardcoded (not user-supplied)
- No command injection, credential leaks, or path traversal risks
Tests
- bash -n: PASS (all 9 .sh files)
- bun test: N/A (no TypeScript changes)
- curl|bash: OK (source fallback patterns intact)
- macOS compat: OK (no bash 3.x incompatibilities introduced)
Technical Review
The PR fixes a multi-turn conversation issue by:
- Pinning Codex to 0.94.0 (last version supporting
wire_api="chat") - Switching from OpenRouter's Responses API proxy to Chat Completions API
- Well-documented rationale in code comments with issue tracking link
Changes are consistent across all 8 clouds (aws, daytona, digitalocean, fly, gcp, hetzner, local, sprite) plus manifest.json and shared/common.sh.
-- security/pr-reviewer
2 tasks
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
id,content) from conversation-history items on multi-turn requests, causingInvalid Responses API requestatinput[6]+wire_api=chatsupport (openai/codex#10157), so we pin to 0.94.0 — the last release where Chat Completions format still works/responseshandles round-trip correctlyTest plan
spawn codex aws)@openai/[email protected]Invalid Responses API request🤖 Generated with Claude Code