item not found in turn state when use chat/completion protocol (wire_api = "chat")

Resolved 💬 1 comment Opened Jan 22, 2026 by huntkalio Closed Jan 22, 2026

What version of Codex is running?

0.88.0

What subscription do you have?

azure

Which model were you using?

gpt-5.2

What platform is your computer?

MINGW64_NT-10.0-19041 3.3.6-341.x86_64 x86_64 unknown

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

1) Fallback to codex_vscode/0.61.1-alpha.1 will resolve this bug.
2) 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")

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗