Bug
When using openai-codex/gpt-5.2-codex as a sub-agent model, the first tool call succeeds but submitting the tool result back fails with:
404 Item with id 'rs_xxx' not found. Items are not persisted when `store` is set to false. Try again with `store` set to true, or remove this item from your input.
Root Cause
OpenClaw uses the OpenAI Responses API for Codex models (openai-codex-responses api type). The Responses API defaults store to false when not explicitly set. This means the response object (with id rs_xxx) is not persisted server-side. When OpenClaw then submits tool results referencing that response id via previous_response_id, OpenAI returns 404 because the response was never stored.
Expected Behavior
OpenClaw should set store: true in the Responses API request body when using Codex models (or any model using the Responses API in agentic/tool-use mode).
Reproduction
- Configure a Codex model:
openai-codex/gpt-5.2-codex
- Spawn a sub-agent with tools enabled
- Agent makes a tool call → tool executes successfully
- Submitting tool result back fails with the 404 error
Version
openclaw 2026.2.12
Workaround
Use Anthropic models (e.g., claude-opus-4-6) instead of Codex for sub-agents that need tools.
Bug
When using
openai-codex/gpt-5.2-codexas a sub-agent model, the first tool call succeeds but submitting the tool result back fails with:Root Cause
OpenClaw uses the OpenAI Responses API for Codex models (
openai-codex-responsesapi type). The Responses API defaultsstoretofalsewhen not explicitly set. This means the response object (with idrs_xxx) is not persisted server-side. When OpenClaw then submits tool results referencing that response id viaprevious_response_id, OpenAI returns 404 because the response was never stored.Expected Behavior
OpenClaw should set
store: truein the Responses API request body when using Codex models (or any model using the Responses API in agentic/tool-use mode).Reproduction
openai-codex/gpt-5.2-codexVersion
openclaw 2026.2.12
Workaround
Use Anthropic models (e.g., claude-opus-4-6) instead of Codex for sub-agents that need tools.