You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
item not found in turn state when use chat/completion protocol (wire_api = "chat") #9679
bugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)extensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems
What terminal emulator and version are you using (if applicable)?
VSCode
What issue are you seeing?
codex fail to display chat outputs when using custom API providers or proxy services (e.g., OpenRouter, OneAPI). While the server returns a valid 200 OK response, the extension throws an error: [error] Item [UUID] not found in turn state.
2026-01-22 17:37:44.639 [info] Sending MCP request: 427767eb-c780-4361-9437-59d4bd31de0f config/read
2026-01-22 17:37:44.653 [info] Received app server result: 427767eb-c780-4361-9437-59d4bd31de0f object(keys=2)
2026-01-22 17:37:44.654 [info] Sending MCP request: e7a4433b-2820-42bc-8c45-95ae5b42debb turn/start
2026-01-22 17:37:44.663 [info] Received app server result: e7a4433b-2820-42bc-8c45-95ae5b42debb object(keys=1)
2026-01-22 17:37:47.436 [error] Item e635735b-ece1-48e3-bdd4-e87609df704d not found in turn state
Fallback to codex_vscode/0.61.1-alpha.1 will resolve this bug.
Or use latest version but use response protocol will resolve this bug.(But some other OpenRouter model don't support response protocol)
What steps can reproduce the bug?
1.use latest codex
2.config model provider use chat protocol (wire_api = "chat")
The "chat" wire API is deprecated, and we will be removing support for it completely within about a week. Please switch to the newer "responses" wire API.
bugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)extensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems
Activity
etraut-openai commentedon Jan 22, 2026
The "chat" wire API is deprecated, and we will be removing support for it completely within about a week. Please switch to the newer "responses" wire API.