openclaw - 💡(How to fix) Fix Session conversation history not restored after OpenClaw update (LCM "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#60424Fetched 2026-04-08 02:51:24
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1locked ×1
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, as documented

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 the session ID format and derivation in OpenClaw versions 2026.3.28 and 2026.4.2 to ensure compatibility and proper migration.

Guidance

  • Verify the session ID format in both OpenClaw versions to check for any changes that might affect LCM's session-to-conversation mapping.
  • Investigate if there's a migration step for LCM's SQLite database that should have been executed during the update process to ensure a smooth transition.
  • Compare the session key derivation process in both versions to identify any differences that could lead to the observed issue.
  • Check the LCM database schema and data to confirm if the conversation records are correctly linked to the session key.

Example

No code snippet is provided as the issue does not explicitly mention specific code changes or requirements.

Notes

The issue seems to be related to the session ID format or derivation changes between OpenClaw versions, which affects the mapping between the session key and conversation history in LCM. Further investigation into the migration process and database schema is necessary to resolve the issue.

Recommendation

Apply a workaround by checking the session ID format and derivation in both OpenClaw versions and ensuring a proper migration of the LCM database, as the issue appears to be related to compatibility and mapping rather than data loss.

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 "Not found") [1 participants]