openclaw - 💡(How to fix) Fix Session conversation history not restored after OpenClaw update (LCM returns "Not found") [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#60425Fetched 2026-04-08 02:51:22
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants
RAW_BUFFERClick to expand / collapse

Problem

After updating OpenClaw (from 2026.3.28 to 2026.4.2), the PM agent's session lost access to all previous conversation history stored in LCM (lossless-claw).

Symptoms:

  • The session key appears identical before and after the update: agent:pm:direct:4f45369c7db6c212b715743c37104fbb
  • lcm_describe(sessionKey) returns "Not found" for the current session
  • However, LCM grep confirms older messages (msg#5381-5395, timestamps 16:13-16:23 GMT+8 on 2026-04-03) exist in the database and are linked to summaries (sum_0b896d5f10434f7c, sum_ac01217d3b092a04)
  • The agent cannot access afternoon's conversations from the same session key

Expected behavior:

  • Session history should be preserved and accessible after gateway restart/update

Actual behavior:

  • LCM "loses" the association between the current session key and previously stored conversation history
  • The session key looks identical, but LCM treats it as a new/unknown session

Environment

  • OpenClaw: 2026.4.2 (previously 2026.3.28)
  • lossless-claw: 0.5.2
  • Node.js: 24.13.0
  • OS: Windows_NT
  • Channel: qqbot

Steps to Reproduce

  1. Have an active PM agent session with LCM-compacted conversation history
  2. Update OpenClaw (gateway restart after update)
  3. Agent loses access to all pre-update conversation history

Questions / Debugging Info

  • Could this be related to session ID format changes between versions?
  • Is there a migration step for LCM's SQLite database that should have run but didn't?
  • Is the session key in LCM derived differently after the update?

Additional Context

The LCM database (~/.openclaw/lcm.db) still contains the old conversation records - they are not deleted. The issue appears to be at the session-to-conversation mapping level, not data loss.

extent analysis

TL;DR

Check for session ID format changes or LCM database migration issues between OpenClaw versions 2026.3.28 and 2026.4.2.

Guidance

  • Investigate potential changes in session ID format or derivation between the two OpenClaw versions, as this could cause LCM to treat the session key as new or unknown.
  • Verify if there are any migration steps for the LCM SQLite database that should have been executed during the update process, which might have been missed.
  • Review the LCM database schema and data to ensure that the session-to-conversation mapping is correctly updated after the OpenClaw version change.
  • Check the OpenClaw update documentation or release notes for any specific instructions related to LCM compatibility or migration.

Example

No specific code example can be provided without more details on the session ID format or LCM database schema.

Notes

The issue seems to be related to the session key or LCM database migration, but without more information on the specific changes between OpenClaw versions, it's difficult to provide a definitive solution.

Recommendation

Apply workaround: Check the OpenClaw documentation for any known issues or workarounds related to LCM compatibility after updating from version 2026.3.28 to 2026.4.2, as this may provide a temporary solution until a more permanent fix is available.

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 conversation history not restored after OpenClaw update (LCM returns "Not found") [1 participants]