openclaw - 💡(How to fix) Fix Webchat sidebar 'main' session freezes after session reset - stale references not cleaned up [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#60543Fetched 2026-04-08 02:49:48
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants

Fix Action

Workaround

Use direct URL with session ID:

RAW_BUFFERClick to expand / collapse

Bug Description

After a session reset, the webchat sidebar becomes partially non-functional:

  1. Clicking the 'main' session in the sidebar causes the page to freeze/hang indefinitely
  2. The 'main' entry still references the old (now reset) session ID
  3. A new main session is created after reset but appears categorized as 'other' instead of replacing the old 'main' entry

Steps to Reproduce

  1. Have an active main agent session
  2. Wait for or trigger a session reset (daily reset at 4:00 AM, or manual reset via config change)
  3. The agent restarts with a new session ID
  4. Try clicking 'main' in the webchat sidebar
  5. Page freezes and becomes unresponsive

Expected Behavior

  • After session reset, the 'main' entry in the sidebar should point to the newly created session
  • Or, if the agent is restarted, it should update the existing 'main' reference to the new session ID
  • Stale session references should be cleaned up or replaced

Actual Behavior

  • 'main' sidebar entry still references the old/reset session ID
  • New main session appears as 'other' under the main node
  • Clicking 'main' triggers a failed load attempt for the old session and freezes

Workaround

Use direct URL with session ID:

Environment

  • OpenClaw version: 2026.3.13
  • OS: Windows 11
  • Channel: webchat
  • Session reset mode: idle (previously daily)

extent analysis

TL;DR

Update the 'main' session reference in the webchat sidebar to point to the newly created session ID after a session reset.

Guidance

  • Verify that the session reset mechanism is correctly updating the session ID and that the new ID is being propagated to the webchat sidebar.
  • Check the sidebar's session reference update logic to ensure it is correctly replacing the old session ID with the new one.
  • Consider implementing a cleanup mechanism to remove stale session references after a reset.
  • Test the direct URL workaround with the new session ID to confirm that it bypasses the freezing issue.

Example

No explicit code example is provided due to the lack of specific implementation details in the issue.

Notes

The provided information suggests a synchronization issue between the session reset mechanism and the webchat sidebar's session reference update logic. However, without more specific implementation details, it's challenging to provide a precise fix.

Recommendation

Apply workaround: using the direct URL with the new session ID until the underlying issue with the session reference update logic is resolved. This ensures that users can still access the chat functionality without the page freezing.

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 Webchat sidebar 'main' session freezes after session reset - stale references not cleaned up [1 participants]