-
-
Notifications
You must be signed in to change notification settings - Fork 69.3k
Azure OpenAI Responses API: 'Item with id rs_... not found' when store is false #21782
Copy link
Copy link
Closed
Closed
Copy link
Description
Bug Description
When using openai-responses API with Azure OpenAI (e.g. gpt-5.2-codex-4), multi-turn conversations fail with:
HTTP 400: Item with id 'rs_...\ 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
The Responses API returns reasoning output items with an id (e.g. rs_xxx) and encrypted_content: null. On the next turn, OpenClaw includes these reasoning items in the input array. Since the items were not persisted server-side (store: false or Azure default behavior), the API cannot resolve the referenced id and returns 400.
Expected Behavior
OpenClaw should either:
- Strip reasoning items (type
reasoning) withencrypted_content: nullfrom the input when building multi-turn requests - Or set
store: trueexplicitly when using the Responses API - Or provide a model-level config option to control
storebehavior
Reproduction
- Configure a provider with
"api": "openai-responses"pointing to Azure OpenAI - Start a conversation (first turn succeeds)
- Send a second message in the same session → 400 error
Environment
- OpenClaw: 2026.2.19-2
- Provider: Azure OpenAI (
east-us-grandline-prod.openai.azure.com) - Model:
gpt-5.2-codex-4 - API:
openai-responses
Related
Same issue reported in Vercel AI SDK: vercel/ai#7543
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.