openclaw - 💡(How to fix) Fix [Regression][v2026.4.5] session-recovery drops assistant messages with incomplete thinking [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#62463Fetched 2026-04-08 03:04:00
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

Code Example

[agent/embedded] [session-recovery] dropped latest assistant message with incomplete thinking: sessionId=19ad28e8-c305-4586-a190-7478a1e64ceb
RAW_BUFFERClick to expand / collapse

Bug Description

Session recovery is dropping latest assistant messages that contain incomplete thinking, causing conversation context loss. This appears to be a regression introduced in v2026.4.5.

Frequency

2 observed incidents on 2026-04-07

Log Evidence

[agent/embedded] [session-recovery] dropped latest assistant message with incomplete thinking: sessionId=19ad28e8-c305-4586-a190-7478a1e64ceb

Impact

  • User loses in-progress reasoning/responses
  • Session continuity broken
  • Appears related to context compaction timing

Affected Version

v2026.4.5 (confirmed introduced in this release)

extent analysis

TL;DR

Reverting to a version prior to v2026.4.5 or adjusting the context compaction timing may mitigate the session recovery issue causing conversation context loss.

Guidance

  • Review the changes introduced in v2026.4.5 to identify potential causes of the regression, focusing on session recovery and context compaction.
  • Investigate adjusting the context compaction timing to prevent it from interfering with the processing of latest assistant messages.
  • Verify the issue by testing session recovery with messages containing incomplete thinking in different versions, including the one before v2026.4.5.
  • Consider temporarily disabling context compaction to assess its impact on the session recovery process.

Notes

The exact cause of the regression is unclear, and further investigation into the changes made in v2026.4.5 is necessary to determine the root cause.

Recommendation

Apply workaround: Adjusting the context compaction timing or temporarily disabling it may help mitigate the issue until a 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