openclaw - 💡(How to fix) Fix bug: /btw fails with cli-proxy-api OpenAI auth: 404 item not found when store=false [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60704Fetched 2026-04-08 02:48:10
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

/btw fails with OpenAI auth routed through cli-proxy-api, returning:

⚠️ /btw failed: 404 Item with id 'rs_resp_...' 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.

This appears to be a BTW-specific variant of the known Responses API store=false problem, but in this case it happens when using OpenAI auth via cli-proxy-api and invoking /btw from Control UI.

Error Message

Observed error message:

  • The error strongly suggests BTW is referencing a prior Responses item id that is unavailable because the upstream run was not stored persistently

Root Cause

Additional context:

  • Normal chat works
  • /btw is the failing path
  • The error strongly suggests BTW is referencing a prior Responses item id that is unavailable because the upstream run was not stored persistently

Code Example

⚠️ /btw failed: 404 Item with id 'rs_resp_...' 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.

---

404 Item with id 'rs_resp_...' 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.

---

⚠️ /btw failed: 404 Item with id 'rs_resp_09ca5d7d4a5dd7dd0169cf1c9a7ca0819bb6975198341f59b9_0' 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.
RAW_BUFFERClick to expand / collapse

Bug type

Bug

Summary

/btw fails with OpenAI auth routed through cli-proxy-api, returning:

⚠️ /btw failed: 404 Item with id 'rs_resp_...' 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.

This appears to be a BTW-specific variant of the known Responses API store=false problem, but in this case it happens when using OpenAI auth via cli-proxy-api and invoking /btw from Control UI.

Steps to reproduce

  1. Configure OpenClaw to use OpenAI auth via cli-proxy-api
  2. Use a model/provider path that goes through the OpenAI Responses-style flow
  3. Open a normal chat session in Control UI
  4. Send a normal message so the session has current context
  5. Run a /btw ... command
  6. Observe the failure

Expected behavior

/btw should return a side result successfully, without requiring persisted upstream item ids that are unavailable when store=false.

Actual behavior

/btw fails with:

404 Item with id 'rs_resp_...' 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.4.2 (d74a122)

Operating system

macOS 26.4 (arm64)

Install method

npm global / brew-installed local environment

Model

Observed in a setup using OpenAI auth via cli-proxy-api (exact routed upstream model may vary depending on proxy resolution)

Provider / routing chain

OpenClaw -> cli-proxy-api -> OpenAI-auth-backed upstream

Config file / key location

Configured locally via OpenClaw models/provider config using cli-proxy-api

Additional provider/model setup details

  • Auth path uses cli-proxy-api rather than direct OpenAI API key auth
  • Failure occurs specifically on /btw
  • Control UI is the triggering surface
  • There is also a separate known issue where Control UI does not yet render chat.side_result, but this report is about the backend/provider failure before rendering

Logs, screenshots, and evidence

Observed error message:

⚠️ /btw failed: 404 Item with id 'rs_resp_09ca5d7d4a5dd7dd0169cf1c9a7ca0819bb6975198341f59b9_0' 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.

Additional context:

  • Normal chat works
  • /btw is the failing path
  • The error strongly suggests BTW is referencing a prior Responses item id that is unavailable because the upstream run was not stored persistently

Impact and severity

  • /btw is unusable in this routing configuration
  • Affects side-question workflow specifically
  • Likely indicates BTW is reusing response/item references in a way that is incompatible with store=false providers or proxies

Additional information

Potential root cause:

  • /btw appears to snapshot current session context, but may still be passing provider-level prior item references (rs_* / rs_resp_*) into the follow-up request path
  • When the upstream auth/provider chain does not persist items (store=false), those references cannot be resolved and the request fails

Suggested fix directions:

  1. For /btw, prefer text/context snapshot replay instead of provider item-id chaining
  2. Avoid sending prior response/item references when the active provider/proxy path does not guarantee persistence
  3. If BTW depends on item chaining, ensure store=true is enforced when supported

Possibly related existing issues:

  • #53333 (Control UI missing chat.side_result consumer)
  • #55376 (/btw fails with 'No BTW response generated')
  • #16803 / #12885 / #25058 (Responses API store=false -> item not found family)

extent analysis

TL;DR

Modify the /btw command to prefer text/context snapshot replay instead of provider item-id chaining to resolve the 404 error when using OpenAI auth via cli-proxy-api.

Guidance

  • Review the /btw implementation to ensure it does not rely on prior response/item references when the upstream auth/provider chain does not persist items (store=false).
  • Consider enforcing store=true when supported, if /btw depends on item chaining.
  • Investigate alternative approaches to snapshot current session context without passing provider-level prior item references.
  • Verify that normal chat functionality is not affected by the proposed changes.

Example

No code snippet is provided due to the lack of specific implementation details in the issue.

Notes

The suggested fix directions are based on the potential root cause analysis provided in the issue. However, the actual implementation may vary depending on the specific requirements and constraints of the /btw command and the OpenClaw system.

Recommendation

Apply workaround: Modify the /btw command to prefer text/context snapshot replay instead of provider item-id chaining, as this approach is likely to resolve the 404 error without requiring significant changes to the underlying system.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

/btw should return a side result successfully, without requiring persisted upstream item ids that are unavailable when store=false.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING