-
Notifications
You must be signed in to change notification settings - Fork 271
[Bug] Switching sessions can hang WinUI while projecting ~200 history messages (v2026.7.1) #1167
Copy link
Copy link
Open
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P1Urgent regression or broken agent/channel workflow affecting real users now.Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Projects
StatusShow more project fields
Backlog
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.