openclaw - 💡(How to fix) Fix Session JSONL lock can remain held after synthetic tool-result flush [1 pull requests]

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…

Follow-up for the lock-scope field report in #88168 after landing the focused synthetic-placeholder race fix in #88588.

A user reported that the synthetic tool-result flush path can coincide with a per-session .jsonl.lock file staying write-held by the live gateway process. The visible symptom is subsequent turns failing with session file locked (timeout 60000ms) until the lock expires or the gateway is killed.

Source report: https://github.com/openclaw/openclaw/issues/88168#issuecomment-4583036868

Root Cause

Follow-up for the lock-scope field report in #88168 after landing the focused synthetic-placeholder race fix in #88588.

A user reported that the synthetic tool-result flush path can coincide with a per-session .jsonl.lock file staying write-held by the live gateway process. The visible symptom is subsequent turns failing with session file locked (timeout 60000ms) until the lock expires or the gateway is killed.

Source report: https://github.com/openclaw/openclaw/issues/88168#issuecomment-4583036868

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Summary

Follow-up for the lock-scope field report in #88168 after landing the focused synthetic-placeholder race fix in #88588.

A user reported that the synthetic tool-result flush path can coincide with a per-session .jsonl.lock file staying write-held by the live gateway process. The visible symptom is subsequent turns failing with session file locked (timeout 60000ms) until the lock expires or the gateway is killed.

Source report: https://github.com/openclaw/openclaw/issues/88168#issuecomment-4583036868

Scope

  • Version reported: openclaw 2026.5.27
  • Channel: webchat
  • Model API family: Anthropic Messages-compatible
  • Trigger reported: adjacent long-running exec/process polling turns where synthetic missing-result insertion happened while real tool results were racing
  • Impact: session/channel can remain blocked even after the placeholder race itself is fixed

Desired proof

  • Reproduce or disprove that synthetic tool-result writes can acquire a session JSONL lock without releasing it.
  • Confirm whether #88588 eliminates the trigger or only reduces the probability.
  • If the lock leak remains possible, route the synthetic write path through the same acquire/release discipline as normal appends, or remove the stale synthetic write path entirely where no longer needed.

Notes

#88588 fixes the central transcript placeholder race by avoiding synthetic insertion at the new assistant tool-call boundary and letting transcript repair move late real results. This issue tracks the separate lock-lifetime claim so #88168 can close for the placeholder behavior without losing the lock report.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Session JSONL lock can remain held after synthetic tool-result flush [1 pull requests]