OpenClaw operations guide

OpenClaw item_conflict after compaction on OpenAI

If OpenClaw reports item_conflict after compaction, keep the chat open and check whether the failed turn used native OpenAI Responses. OpenClaw 2026.11.5 includes a fix for replaying saved checkpoints on that route. Back up before updating an older build, then ask the original chat a read-only question about a fact from before compaction.

Last updated · Published

The Context Reliability Build Kit is an optional paid kit that has handoff templates and continuity checks for moving unfinished work to a fresh session.

By CWYN · Nov 26, 2026 · Checked against docs, not run · The upstream checkpoint fix documents how native OpenAI Responses replays an existing checkpoint

1. Capture the exact error and route

Save the time, session, Gateway version, model, and error code from the failed turn. Identify whether the run uses the native OpenAI Responses endpoint, Codex app-server, or a compatible proxy. This recovery targets the native Responses compaction case. The compaction reference describes the native compact endpoint and when it is used.

If auto-compaction could not recover, check the failed turn for item_conflict before changing reserveTokensFloor. If the input was too large for the model, recover a task that exceeds the context window. A partial reply can precede a provider error, so check whether the turn finished.

2. Check whether the failure follows saved context

Look for evidence of a completed compaction before the failing turn. If safe to make a model call, try a short read-only prompt in a separate test session on the same route. Success there makes a broad provider outage less likely. Keep the original thread open and preserve a short handoff with the last verified result, any actions still uncertain, and the next step.

3. Use the release fix for saved checkpoints

The 2026.11.5 release notes describe recovery from compaction item conflicts. The upstream change gives existing checkpoints a replay path on native OpenAI Responses without transcript edits. On an older build, back up and stage the update before retrying. If npm reports an engine error during the update, resolve the unsupported Node version before retrying the update. Avoid hand-editing stored item IDs or changing provider storage settings to chase the error.

4. Prove the original session can continue

Once the running version is verified and no turn is active, send a fresh, read-only question that requires a known fact from before compaction. Confirm terminal success and the correct answer, then check another short turn. Verify that both replies came from the same model on the native OpenAI Responses route.

5. Move unfinished work if recovery still fails

If the conflict recurs, retain the old chat and use the handoff in a clean session. Use the fresh-session recall test in the OpenClaw Complete Setup Pack to check which facts the new session can recall. Confirm recorded tool effects against their destination before repeating any action. Record the route, build, error, and whether the conflict happened after compaction when filing a report. Keep raw checkpoints, credentials, and conversation contents private.

Get your free CWYN Score to choose your next setup improvement.

Next steps