-
Notifications
You must be signed in to change notification settings - Fork 296
[Bug] Switching sessions can hang WinUI while projecting ~200 history messages (v2026.7.1) #1167
Copy link
Copy link
Open
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsBacklog
Summary
OpenClaw Companion v2026.7.1 can become unresponsive when switching to a session whose history load returns approximately 200 messages. The gateway remains healthy while the native WinUI stops updating, and Windows records
AppHangB1.This appears related to synchronous history projection/snapshot rendering, but is distinct from the per-event streaming flood tracked in #1150 and its candidate fix #1158.
Environment
4206611f2b2e47cd575e1c8aa94e3e7708f6dd96OpenClaw.Tray.WinUI.exeReproduction
Reproduced on 2026-08-16 around 12:04 local time.
Actual behavior
AppHangB1.Expected behavior
Switching sessions and loading the bounded history window should remain responsive, including for histories containing many agent/tool events.
Exact-release source path
In the v2026.7.1 source,
OpenClawChatDataProviderfolds the loaded history (up to 200 messages) into timeline state and publishes the resulting snapshot. TheChangedhandler inOpenClawReactorChatRootthen callssetSnapshot(args.Snapshot), triggering the native WinUI/React render.Even though this is one publication rather than the per-event publication storm in #1150, projecting and synchronously rendering a large snapshot immediately after a session switch can saturate the UI thread.
Relevant source:
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.csOpenClawReactorChatRootsnapshotChangedhandlerWhy this is not a duplicate of existing reports
Suggested fix/validation area
Crash scope
There was also one separate 2026-08-13 crash involving
CoreMessagingXP.dll. There is not enough evidence to attribute that crash to this history-load hang, so this report is limited to the recurring AppHang/UI-saturation behavior.