Repository navigation
Description
Describe the bug
The Windows Companion app (OpenClaw.Tray.WinUI) crashes consistently when opening/viewing a chat session. It connects and authenticates with the Gateway successfully, then crashes ~1 second after loading the session's message history or receiving live agent events. No data loss — the Gateway, Telegram channel, and browser Control UI all keep working.
To Reproduce
- Install OpenClawCompanion-Setup-x64.exe (v2026.9.3, code-signed build) on Windows 11 (build 26200, x64)
- Pair the app to a locally running Gateway (ws://127.0.0.1:18789, token auth)
- Open a session that has a large message history (months of messages incl. tool output)
- App crashes within ~1s of loading the chat view — repeatable every time
Expected behavior
Chat view renders and stays open; can read and send messages.
Actual behavior
Unhandled System.ArgumentException: The parameter is incorrect. in the WinUI layer; app terminates. Repeatable on every open of the chat view. Crash log shows it immediately after the Gateway returns the full session payload (e.g. Wizard response payload ... len=~276321-339587), i.e. during chat-history rendering.
Crash evidence
• crash.log: System.ArgumentException: The parameter is incorrect. (multiple entries, e.g. 20:00:44, 20:05:00, 20:21:11)
• openclaw-tray.log sequence: handshake complete → chat.history sent → large Wizard response payload → CRASH
• Event Log (Application) also shows WinUI faulting module Microsoft.UI.Xaml.dll and coreclr.dll; exceptions 0xc000027b (stowed/HREXAML) and 0xc0000005 (access violation)
Check first
• Gateway is healthy: other clients (browser Control UI, Telegram) work fine
• Not auth/pairing related — handshake completes and operator scopes granted before crash
• App version 2026.9.3.0; no updates available in-app; v2026.9.4-alpha.1 published but notes mention only MSIX/Store packaging
Happy to attach crash.log and openclaw-tray.log on request.
Metadata
Metadata
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Sep 14, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 14, 2026, 10:11 PM ET / September 15, 2026, 02:11 UTC.
Summary
Keep open: the reported stable-release crash has no verified fix on current main. An assigned, draft mitigation already owns the work, but its full crash-recovery proof remains incomplete.
Reproducibility: no. high-confidence current-main reproduction is established. The reporter provides repeatable v2026.9.3 steps and crash signatures, but this read-only review did not execute Windows or the affected history.
Regression provenance
Possible regression — suspected (failure trace). No predecessor PR is attributed.
Ways to help us reproduce this
Next step
Concentrate validation and repair in #1426 (fix(chat): avoid session-switch crashes without clipping Markdown lists); keep this issue open until that candidate or another verified fix lands.
Review details
Best possible solution:
Restore stable native history rendering while preserving final-message visibility and scroll position, with a visible in-app recovery route if native chat remains unavailable.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction is established. The reporter provides repeatable v2026.9.3 steps and crash signatures, but this read-only review did not execute Windows or the affected history.
Is this the best way to solve the issue?
Unclear: the dependency rollback is a concrete existing candidate, but it needs native session-switching proof; the alternative extent-based scrolling workaround reportedly stopped before the final message.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against ddb54a9614a5.
Label changes
Label justifications:
P0: The current stable Companion repeatedly terminates when the reporter opens chat, blocking reading and sending with no reported in-app recovery.impact:crash-loop: Opening affected history consistently terminates the native Companion process.impact:ux-release-blocker: The installed app cannot complete the reported chat workflow, and its updater offers no recovery release.Evidence reviewed
What I checked:
src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:269, ddb54a9614a5)src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj:97, ddb54a9614a5)tests/OpenClaw.Tray.Tests/ChatTimelinePresentationTests.cs:56, ddb54a9614a5)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.