Skip to content

bug: Azure OpenAI Responses API — store: false regression in 2026.3.8 breaks all multi-turn cron jobs #42800

@nusquama

Description

@nusquama

Bug type

Regression (worked before, now fails)

Summary

After upgrading from 2026.3.7 to 2026.3.8, all Azure OpenAI models using the Responses API fail on multi-turn with HTTP 400 "Item not found — store is set to false". All cron jobs using azure-openai/* models are broken.

Steps to reproduce

  1. Configure an Azure OpenAI provider with api: "openai-responses" and baseUrl: "https://<resource>.openai.azure.com/openai/v1/"
  2. Create a cron job (sessionTarget: isolated, payload.kind: agentTurn) using an azure-openai/* model
  3. Run the cron — first turn succeeds
  4. On the next scheduled run (or any multi-turn), it fails with HTTP 400

Expected behavior

Azure OpenAI multi-turn conversations work correctly, as they did in 2026.3.7.

Actual behavior

All subsequent turns fail with:

HTTP 400: Item with id 'rs_041aff174232596c0169b0be0c8f3481979e0e6eb656c4a181' 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.

OpenClaw version: 2026.3.8 (3caab92)

Operating system: Ubuntu 22.04 (Linux 5.15.0-138-generic x64)

Install method: npm global

Model: azure-openai/gpt-5-mini, azure-openai/gpt-5.2

Provider / routing chain: openclaw -> azure-openai -> Azure OpenAI Service (*.openai.azure.com)

Config file / key location: ~/.openclaw/openclaw.json ; models.providers.azure-openai.baseUrl

Additional provider/model setup details:
Provider configured as azure-openai with api: "openai-responses" and baseUrl: "https://<resource>.openai.azure.com/openai/v1/". No proxy or routing gateway in between.

OpenClaw version

2026.3.8 (3caab92)

Operating system

Ubuntu 22.04 (Linux 5.15.0-138-generic x64)

Install method

npm global

Model

azure-openai/gpt-5-mini, azure-openai/gpt-5.2

Provider / routing chain

openclaw -> azure-openai -> Azure OpenAI Service (*.openai.azure.com)

Config file / key location

~/.openclaw/openclaw.json ; models.providers.azure-openai.baseUrl

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

  • Affected: All cron jobs and embedded agent runs using Azure OpenAI models
  • Severity: High (blocks all automated tasks using Azure)
  • Frequency: 100% repro on every multi-turn
  • Consequence: 6 active cron jobs broken with 44+ consecutive errors, no automated memory sweeping, no daily reviews, no sync tasks running since March 10

Additional information

Last known good version: 2026.3.7. First known bad version: 2026.3.8.

Root cause: shouldForceResponsesStore() only returns true when isDirectOpenAIBaseUrl() matches hostname === "api.openai.com". Azure URLs (*.openai.azure.com) are excluded, so store: false (hardcoded upstream in pi-ai) is never overridden to true. PR #39219 (merged in 3.8) changed store stripping behavior which surfaced this gap.

Related issues: #16803, #39219, #39540

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions