Skip to content

fix(chat): adopt Reactor preview.16 session-switch crash workaround - #1549

Merged
shanselman merged 9 commits into
mainfrom
karkarl-reactor-version-update
Oct 30, 2026
Merged

shanselman merged 9 commits into
mainfrom
karkarl-reactor-version-update

Conversation

@karkarl

@karkarl karkarl commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #1424

Merge HOLD. Published head 801f5ce01ebf8e4a98f0ca78d101cf0bd1d9a601 was rebased onto main snapshot 46062f01511d43c08fd541a6297e2479348a165a, after #1898 (chore: update Windows App SDK to 2.6.4). Required local unit suites pass and CI attempt 2 is green, but full-product native proof remains incomplete. The exact upstream invalid-anchor sample crashes with preview.15; preview.16 completes twelve replacements on the same old native SDK and current SDK 2.6.4 Debug/Release. This verifies the reduced mechanism, not complete Companion acceptance. Strict final-marker clipping remains reproducible before the upgrade and without Reactor.

What Problem This Solves

Adopts the published Reactor mitigation for native chat session-switch crashes while preserving pooled accessibility and tooltip metadata.

User Impact

User impact: native chat uses the upstream recycled-anchor workaround alongside Windows App SDK 2.6.4 inherited from main. A local, unpushed test repair removes a selection-automation race; slow cycles and clipping remain unresolved. No new production scrolling fix is claimed.

Why This Change Was Made

Both Reactor packages move from preview.12 to 0.1.0-preview.16, still the latest on both authoritative NuGet feeds. Package commit 459f7234dc2b0b72125f833ba86c051a554c12cf includes microsoft/microsoft-ui-reactor#1214. Reactor's recycled-container workaround and native WinUI anchor safety address different parts of the failure.

The production delta is the package project plus three chat files, not a scrolling redesign:

Compatibility change Why the version bump needs it
Move the Markdown factory to Advanced and remove the preview.12 list callback Advanced owns the wrapping Grid layout. The old callback expected a horizontal stack and would throw for the new shape. Sanitization, parser flags, inert links/images and block presentation remain application-owned.
Welcome alignment, HelpText and ToolTip use tracked modifiers Preview.16 reports REACTOR_POOL_001 for direct writes inside .Set(...). Reactor must track these properties so reconciliation and pool reset update or clear them.
Timeline/composer use .ItemStatus(...) Preserve accessibility and fixture observations without stale pooled metadata, analyzer suppression or disabling pooling.
Drawing moves from 10.0.11 to 10.0.12 Meet Reactor's dependency minimum.

The unchanged published nine-file delta is 161 insertions / 49 deletions. It does not import #1449 (improve(chat): remove an unnecessary wait when opening chat history), replace StartBringItemIntoView, or add extent-driven retries.

Evidence

Original invalid-anchor mechanism: the exact source from microsoft/microsoft-ui-reactor#1213, SHA256 D8ED327C3704B56153D9791C932DD5F60D4BF3290BB8EB538D20AD95F88F31F7, starts a native bring to item 76 of 77, then immediately replaces keyed history through Reactor state. It has no OpenClaw, Gateway, Markdown, explicit collapse, forced layout or correction timer. Three separate package variants share this unchanged source:

Reactor / native SDK Configuration Recorded result
preview.15 / SDK 2.4.0 Debug First replacement failed; uninstrumented native exit 0xC000027B.
preview.16 / SDK 2.4.0 Debug 12/12 selected-history transitions; driver 0, clean app exit 0.
preview.16 / SDK 2.6.4 Debug 12/12 selected-history transitions; driver 0, clean app exit 0.
preview.16 / SDK 2.6.4 Release 12/12 selected-history transitions; driver 0, clean app exit 0.

The preview.15/preview.16 old-SDK outputs contain byte-identical native WinUI DLLs matching the original report's version, isolating the Reactor change from the SDK upgrade. A separate read-only observer run recorded bring return, state replacement/render, then unhandled ArgumentException, HRESULT 0x80070057, Handled=false, and native exit 0xC000027B. An additional native-debugger run resolved ScrollingAnchorRequestedEventArgs::AnchorElement, ItemsView::OnScrollViewAnchorRequested, and ScrollPresenter::EnsureAnchorElementSelection through ArrangeOverride, matching the invalid-anchor path in microsoft/microsoft-ui-xaml#11865. This is not exact equality with the original full Measure-path stack. The debugger itself failed in its exception callback during detach; its c0000005 is not an app access violation, and that run's STILL_ACTIVE receipt is not the uninstrumented crash-exit evidence.

These are reduced-mechanism checks, not full Companion/Gateway scheduling, sustained-stress or final-tail acceptance. Visible selected-history rows were verified in two successive UIA samples after each transition, not an independent compositor fence or measurement of native pending-operation duration. All nine attempts, including early runner/cleanup defects, are retained. Historical driver hashes distinguish the passing helper from the later failed-window-preserving helper. Sources, receipts, stack logs and owned-window captures are local artifacts, not public proof links.

Pre-upgrade clipping control: a separate, uninstrumented Release build uses the pre-upgrade chat sources from 46062f0 and core/Advanced preview.12, Drawing compile dependency 10.0.11, SDK/WinUI 2.6.4 and the unchanged scroll controller. Archived source Git blobs match after LF/CRLF normalization. Both Reactor DLLs match official package payloads; package archives match the NuGet catalog SHA512. Separate output/intermediate directories and a fresh synthetic Gateway profile were used, without simultaneous builds or UI runs.

The identical standalone UIA probe completed twelve natural-tail switches, then failed on the third narrow resize after the original single 0%/100% scrollbar sequence per width. The END marker remained clipped for 20s. The inspected owned-window image shows the final message's first paragraphs, but its final marker below the composer. A second 100% request recovered it only as a diagnostic after failure. This proves the strict symptom can occur before the upgrade, not that every failure shares a cause or that preview.16 cannot add another regression.

Reactor-free native control: a separate unpackaged Release ARM64 diagnostic uses SDK/WinUI 2.6.4, native ItemsView, StackLayout, AnnotatedScrollBar, ordinary TextBlock fixture rows, and the current VerticalAnchorRatio=1 configuration. There is no Reactor package, Markdown renderer, Gateway, application reconciliation or extent correction. In resize-only mode ItemsSource never changes. Both traced and scroll-event-tracing-disabled runs established the natural final marker, qualified the first 900/1300-width pair, then clipped the END marker on the second narrow resize for twenty seconds after the original single 0%/100% sequence per width. Actual window widths and transcript-width changes greater than 200 physical pixels were measured; qualifying visibility required two successive UIA samples. Inspected owned-window captures show message240's heading with the final marker below the composer.

The traced control ended at offset 35456.5674; a subsequent extent increase raised the maximum to 35499.4275 without another view adjustment, leaving about 43 DIPs unscrolled. The trace-disabled run ended at scroll 99.879265%. These diagnostic builds have different recorded hashes because the event-subscription gate was added between them, not a same-binary A/B. A later unchanged untraced instance failed its initial natural-tail precondition before any switching/resizing; that failure is retained, not a passed stress control. This establishes that the endpoint failure mode can occur without Reactor under the tested native configuration. It does not establish identical causality for every product failure or exclude additional upgrade regressions. Sources, receipts and captures are retained locally, not represented as public artifact links.

Application lifecycle trace: a trace-only preview.16 build captured an extent increase after the final ViewChanged, without another offset adjustment. Suppressing resize-triggered chat-width state updates still reproduced clipping on the third narrow resize; other reconciliation activity was not eliminated. Two extent-driven bring prototypes were rejected: one blocked during a pending initial bring; the guarded variant conflicted with explicit scrolling and failed its first narrow pass. No application crash or layout-cycle exception was established by either prototype. Neither entered repository production source.

The pinned upstream parking fixture explicitly separates fixed-height exact-end checks from variable-height estimated-extent behavior. This is supporting context, separate from the native control above, and is not proof of framework-only ownership of every application failure.

Retained executions, failures and comparison limits
Execution Actual result and limit
Initial Debug fixture Profile/app 32/32; UI 19 passed / 13 failed / 0 skipped. Final marker clips after widening from 900x720 to 1300x950; stress reached 7/12 before its 150s watchdog. Other failures included fixture projects.list rejections, activation, an MCP-token file-sharing error and a rejected blank capture.
Initial Release Profile/app 32/32. Full UI produced no completed TRX before 10 minutes, then output-pipe capture failed. Partial evidence retained; exact owned leftover app stopped. Not a passed suite.
Focused Release 4 passed / 1 failed / 0 skipped. Both-width tail, fractional voice, late-history isolation and populated pages passed; stress failed in SelectSessionAsync with a test-side NRE before cycle output.
Mounted Debug 14/14 passed, zero skipped: Markdown, disposal, welcome metadata, composer observation and queued-message lifecycle. Not the full proof pool.
Earlier local harness repair Expanded Debug profile/app 32/32 and UI 30 passed / 2 failed (projects.list cases). Its target stress/tail cases passed. Focused Release 2/2 passed. The runner's accidental expanded selection is retained, not relabeled a focused pass.
Final reviewed harness Debug 2/2 passed: 12 cycles in 14.222s, tail in 13.743s. Release 0/2: wide-tail timeout, stress 7/12 in 152.215s including cleanup, about 21s/cycle. App responding; no selector NRE or native layout-cycle exception.
Subsequent ordinary Release, unchanged test DLL 2/2 passed: 12 cycles in 15.000s, strict tail in 7.044s. Earlier 0/2 retained. An external CPU sampler failed serializing its own final receipt after the test runner completed; completed TRX and runner output remain.
Independent ordinary preview.16 UIA instances Twelve natural-tail switches succeeded. Original scrollbar/resize sequence clipped on third and first wide pass respectively, outside xUnit. One capture ends at message 238, with 239/240 offscreen for 20s. A second 100% diagnostic recovered one instance but failed in the other. Neither is acceptance.
Other diagnostics Instrumented test-source copy 2/2, max measured UIA call 347ms: diagnostic only. Resize-only control stopped after 14 pairs on stale UIA. Suppressed-width control observed 50 pairs without independently qualifying settled rendering; not acceptance. Its scrolled-up control failed to establish the early marker. Inactive/attempted covered-window probes did not reproduce slow cycles; foreground qualification was refused. No foreground/occlusion cause established.

Build and Test 40720588483, attempt 1 failed while disposing the fixture after the question-recovery test: Shared 4,665 passed / 8 skipped / 1 failed, aborted WebSocket/transport read. The stack ends in FixtureGatewayServer.DisposeCoreAsync, not a failed question assertion. CI Gate failed and revocation recovery E2E was cancelled. Hosted UI succeeded, but does not replace custom acceptance. Relevant published fixture sources match the frozen main snapshot; no independent main execution proved that CI failure baseline or flaky. CodeQL 40720588401, including actual Actions/C# analysis, passed.

CI follow-up, 2026-10-29: attempt 2 passed, including CI Gate, after one gh run rerun 40720588483 --failed --repo openclaw/openclaw-windows-node. The fresh Core job passed Shared 4,666 / 8 skipped, Connection 1,694 / 1 skipped and WinNode CLI 129 / 0 skipped. The exact newly uploaded TRX confirms Interactive_QuestionRecoveryAcrossSocketsAndResolutionBroadcast passed in 151ms. Fresh revocation-recovery E2E passed 1/1 against the recorded Gateway 2026.10.8. Both fresh jobs checked out merge dd5991ccae058caa6bbc833bdc57c0908809a420, combining unchanged head 801f5ce0 with base 46062f01. Previously successful jobs, including hosted UI, were reused, not rerun. This confirms the original shutdown failure is intermittent on that unchanged candidate; it neither tests the local repair nor clears custom stress/scrolling acceptance.

Latest local follow-up, 2026-10-29: the receive loop now treats an OperationCanceledException as expected only when its connection is cancelled or its socket is already Aborted/Closed, matching the existing WebSocket exception filter. Responder failures are still awaited separately; the expanded guard preserves the exact unowned cancellation exception as well as InvalidOperationException. This is an uncommitted test-support repair, not production behavior or a hosted-CI result. The original question-recovery test passed 100/100 locally before the repair, so its original timing was not reproduced. A new faithful real-WebSocket regression now reads a partial synthetic 32MiB response, pauses its reader through the existing fixture peer, and requests restart. The original receive filter fails disposal with OperationCanceledException: Aborted, inner transport IOException/SocketException 995 and the same receive-to-disposal stack; the repaired filter passes. All 101 protocol tests then passed, including both exact responder-fault guards. This proves the shutdown boundary with real backpressure, not the original question scenario's exact interleaving. The regression costs about five seconds because it exercises the fixture's existing restart deadline, with no new timeout, process, desktop or exported seam.

One new phase-timed Release diagnostic completed 12/12 cycles. It did not reproduce the retained four-second gaps: the largest measured call was a 429ms tree lookup; activation, dropdown expansion/collapse and MCP history reads stayed below 40ms. An uninstrumented control then passed both original cases, with twelve cycles totaling 14.158s and the strict both-width tail test passing. Earlier failures remain retained, and slow-cycle attribution remains unresolved. The diagnostic and control used the unchanged frozen Release app and existing Release fixture dependencies; they do not prove the new receive filter. Ordinary UI tests were force-recompiled afterward and instrumentation absence checked, rather than assuming an incremental build restored them. All three new app identities and both fixture-process identities were verified absent; all 602 frozen runtime hashes still match.

A subsequent diagnostic removed per-call filesystem pacing by buffering timings in memory and flushing after the bounded test. It also completed 12/12, with the largest measured call 407ms; it does not explain the earlier slow instance. Separate same-binary native anchoring controls were inconclusive: bottom and top anchoring failed the initial natural-tail precondition before any resize pairs, and the disabled-anchor run failed its process-identity precondition before UI observations. An earlier runner attempt failed while recording its source inventory. Those attempts are retained as failures, not qualifying comparisons or a proposed configuration fix. The last identity failure was subsequently traced to Process.MainModule reporting ntdll.dll, not proven PID reuse. A fresh audit against the intended executable and creation time confirmed the process absent. The session-only runner now uses the native executable-image query, requires the expected image, and checks creation time before PID-reuse handling. A controlled non-UI child verified expected-image qualification, preservation of a deliberately stale identity and exact-owned cleanup. Ordinary UI test instrumentation was removed again, the original 602-file app runtime still matched, and the desktop was released for the separately owned cron proof.

CI 40728085479 at ff1ca7f, attempt 1 used x64 Debug, preview.12 and SDK 2.6.4. It shares 30 cases with this PR, but does not run the twelve-cycle stress case. Its 31 cases add a question scenario; this PR's 32 add stress and a fixture guard. The published GatewayFixtureUiTests.cs files are identical before the local repair, but production UI differs. Its 28 failures were 25 unexpected question.list cleanup assertions, 1 width delta of 900 to 1044 (less than 200), and 2 stream-visibility timeouts. Its geometry failure and question-recovery panel are not this PR's wide-tail assertion. Protocol/hosted geometry repairs remain separately owned.

Historical 31fff448 results/images and e28 clipping captures remain relevant negatives/limits, not current-head acceptance. Earlier 31fff44 Debug/Release completed 12 cycles in 22.871s/21.150s; slow stress is not consistent. Public links were verified.

Local repair and review: four uncommitted test-only files now differ. The two UI-test files retain the successful selector lookup instead of repeating a nullable search, inspect already-enumerated elements, and add timings/metrics; the fixture server and protocol test add the shutdown filter, real-socket regression and exact responder-fault guard above. Twelve cycles, the 150s watchdog, natural-tail checks and exact width/visibility assertions remain. Only optional metrics catch ElementNotAvailableException, outside actions/assertions. Independent rubber-duck review found no blocking UI helper defect and supported the preview.12 proof classification. Follow-up independent rubber-duck review checked the native-only and original-overlap sources, hashes, receipts, stack/observer logs and upstream report: no blocking evidence flaws or overclaims found. That review verified evidence integrity, not an independent rerun or full-product acceptance, and predates the new fixture repair. Whole-tree shared autoreview remains blocked by the previously documented canonical installation/authentication issue, not reported clean.

All failed attempts remain recorded. The original invalid-anchor path is now reproduced in the reduced sample; exact full-product scheduling, clipping ownership across every application failure, and slow-cycle attribution remain unresolved. The normal-source forced Release rebuild passed; the frozen original DLL/PDB were then restored. A fresh read-only audit on 2026-10-29 confirms all 602 original runtime file hashes match and no task-owned process remains among all 20 recorded overlap app/driver/debugger identities, including runs missing cleanup files: 19 PIDs absent, one reused by an unrelated process and untouched. Native-only app/driver cleanup was previously verified; the desktop reservation is released. No production source, commit, push, merge, runtime install, display setting or #1449 edit changed during this follow-up. The observed live main tip is now 5daead32131b9b0a7b90dd11ad98ced6da147d61; these results remain tied to the recorded candidate, not claimed as a fresh rebase or combined-tree acceptance.

One further native diagnostic explicitly switched to short history after loading and then back to long history before attempting resize. The short marker qualified, but the long final marker did not become visible within the unchanged 20-second stage limit, so zero resize pairs ran and no anchor alternative was accepted. This run recorded 3,638 view/extent events while long history was active, with repeated offset/extent changes. That describes an unsettled diagnostic state, not an attributed Companion crash or proof of a scrolling fix. The screenshot and source/binary receipt were retained, both owned processes were verified absent, and the desktop was released. The corrected driver's independent non-UI checks accepted the expected image and creation time, rejected wrong-image and stale-time manifests, and left its helper alive until exact-owned cleanup.

A separately verified upstream lead is microsoft/microsoft-ui-xaml#12085 and its still-open fix microsoft/microsoft-ui-xaml#12086: a non-animated bring after content reset can be clamped against stale compositor bounds even when UI-thread extent is current and ScrollCompleted reports completion. This is a matching failure class, not attribution of the local clipping or slow cycles. The upstream patch also explains why simply enabling animation is not a valid ItemsView workaround: the virtualizing viewport forces animation off for an anchor outside the realized range. No production animation, retry, anchor or timing change was adopted.

An observer-only follow-up now captures the native request/completion mismatch directly: long-history bring correlation 3 requested offset 34,522 with scrollable height 34,621; its ScrollCompleted event arrived 5.879s later at offset 0, with scrollable height still 34,619. This happened before app closure, not just during teardown. The final marker remained absent through the 20-second stage limit, so no resize pairs ran. The observer adds only request-event logging; its native WinUI DLL matches the preceding control byte-for-byte, the independent driver is unchanged, and both owned processes were verified absent. The SDK does not expose a public completion-result property here, so the event is not labeled a success result. This directly shows that completion is not tail arrival in this native, Reactor-free control; it does not independently inspect compositor bounds or attribute every Companion failure. The upstream reset/bring lead was already noted earlier and is reconfirmed, not a newly discovered framework issue.

Two further bounded controls did not supply a safe workaround. The first valid disabled-anchor run used the same app and driver hashes as the bottom-anchor baseline; it also failed long-tail arrival at offset 0 before any resize pairs. An ordinary ScrollView.ScrollTo variant used the identical native SDK DLL and unchanged driver, but still failed the final-marker precondition: completion offset 34,002 lagged scrollable height 34,997, and the final observation was 97.296% with no final marker. Both failures are retained, all owned processes were verified absent, and the desktop was released. No production anchor or navigation change was adopted. Cancelling native bring and substituting another scroll operation was not implemented: current upstream ItemsView bookkeeping requires the original correlation's completion before releasing its retained target, so a different operation cannot be assumed equivalent or safe.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: native Markdown/metadata, session switching and final-marker visibility. Incomplete, with retained failures.
  • windows-11-arm64: native ARM64 Debug/Release builds and isolated fixtures. Not complete pool acceptance or x64 runtime proof.

Validation

Windows 11 ARM64, .NET SDK 10.0.403; OPENCLAW_REPO_ROOT set to the task worktree. Full build, Shared and Tray were freshly rerun after the local fixture repair on 2026-10-29; other rows below remain their separately recorded executions.

Exact command Result
.\build.ps1 Passed, full Debug repo build and documentation checks.
.\build.ps1 -Project WinUI -Configuration Release Passed, non-Dev Release.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore Latest four-file local tree with the real-socket regression: 4,652 passed / 24 existing skips / 0 failed. Earlier local runs: 4,651 and 4,650 passed, each with 24 skipped / 0 failed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 4,570 passed / 0 skipped / 0 failed.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~GatewayFixtureProtocolTests' Latest local fixture repair: 101 passed / 0 skipped / 0 failed, including the real-socket shutdown regression and both exact responder-fault guards.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~RestartClose_AbortedReceiveDoesNotFaultServerDisposal' with the original receive filter Intended negative control: 1 failed / 0 passed / 0 skipped, aborted receive propagated through disposal. Original filter was restored only for this check, then the narrow repair reapplied before the 101/101 run.
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 -p:DevBuild=false --verbosity quiet Passed.
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Release -r win-arm64 -p:DevBuild=false --verbosity quiet Passed.
git diff --check Passed.

Supplemental session-only native diagnostic commands: dotnet build .\App\NativeItemsViewProbe.csproj -c Release --no-restore -v:quiet and dotnet build .\Driver\NativeItemsViewDriver.csproj -c Release --no-restore -v:quiet, both passed with zero warnings/errors after the final diagnostic edits. .\Run.ps1 -Mode resize-only failed on second narrow resize with tracing; .\Run.ps1 -Mode resize-only -WithoutEventTrace also failed on second narrow resize. .\Run.ps1 -Mode switch-resize -WithoutEventTrace failed its initial-tail precondition before cycles began. These are local diagnostic executions from a separate artifact directory, not repository test counts or proof-pool passes.

The optional -p:Platform=ARM64 adds an output segment causing 260-character SVG copy failures. Successful commands omit that optional segment, retaining the ARM64 RID; no copied-asset workaround or weakened assertion.

Supplemental original-source diagnostic executions, from the separate overlap artifact directory: .\Run.ps1 -Variant p15-sdk24 -Configuration Debug failed the first replacement with native exit 0xC000027B; .\Run.ps1 -Variant p16-sdk24 -Configuration Debug, .\Run.ps1 -Variant p16-sdk264 -Configuration Debug, and .\Run.ps1 -Variant p16-sdk264 -Configuration Release each completed 12/12 transitions with driver/app exit 0. All four app configurations built with zero warnings/errors. The observer run .\Run.ps1 -Variant p15-sdk24-diag -Configuration Debug separately captured unhandled HRESULT 0x80070057; the debugger run .\Run.ps1 -Variant p15-sdk24 -Configuration Debug -CaptureCrashStack supplied the anchor-setter stack, with the debugger failure and STILL_ACTIVE limit described above. These are retained reduced-mechanism executions, not new repository tests or complete proof-pool acceptance.

Earlier full and focused selections used these exact commands with the same explicit app/profile settings. Their results and incomplete attempts are retained in the execution table above:

$profileFilter = 'FullyQualifiedName~GatewayFixtureProfileTests|FullyQualifiedName~GatewayFixtureRunTests|FullyQualifiedName~GatewayFixtureAppTests'
dotnet test .\tests\OpenClaw.Tray.IntegrationTests\OpenClaw.Tray.IntegrationTests.csproj -c $configuration -r win-arm64 -p:DevBuild=false --filter $profileFilter --results-directory $results --logger 'trx;LogFileName=fixture-profile-app.trx'
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c $configuration -r win-arm64 -p:DevBuild=false --filter 'FullyQualifiedName~GatewayFixtureUiTests' --results-directory $results --logger 'trx;LogFileName=fixture-ui.trx' --no-build
$reactorFilter = 'FullyQualifiedName~RepeatedSessionSwitchingKeepsNativeTimelineResponsive|FullyQualifiedName~SidebarSwitchesRealHistoriesAndShowsMessage240AtBothWidths|FullyQualifiedName~HistoricalFractionalVoiceConversationRendersWithoutLoadingPlaceholder|FullyQualifiedName~LateHistoryForPreviousSessionCannotReplaceSelectedTranscript|FullyQualifiedName~PopulatedPagesPreserveSelectionAndPreferencesStayInDisposableProfile'
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Release -r win-arm64 -p:DevBuild=false --filter $reactorFilter --results-directory $results --logger 'trx;LogFileName=reactor-fixture.trx' --no-build
$mountedFilter = 'FullyQualifiedName~ReactorMarkdownListProofTests|FullyQualifiedName~ReactorMarkdownTableProofTests|FullyQualifiedName~MountedReactorChatDisposalProofTests|FullyQualifiedName~Welcome_RecentChatsRefreshAndFallBackToWorkingSuggestions|FullyQualifiedName~ComposerInput_FixtureObservationSurvivesNarrowLayoutChanges|FullyQualifiedName~QueuedMessages_RenderPendingBubblesAndPreserveSendLifecycle'
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 -p:DevBuild=false --filter $mountedFilter --results-directory $results --logger 'trx;LogFileName=mounted-reactor.trx' --no-build

The final two-case invocation uses the explicit isolated app, OPENCLAW_RUN_GATEWAY_FIXTURE_UI=1, disposable profiles and screenshot capture:

$stressFilter = 'FullyQualifiedName~RepeatedSessionSwitchingKeepsNativeTimelineResponsive|FullyQualifiedName~SidebarSwitchesRealHistoriesAndShowsMessage240AtBothWidths'
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c $configuration -r win-arm64 -p:DevBuild=false --filter $stressFilter --results-directory $results --logger 'trx;LogFileName=stress-scroll.trx' --no-build

Actual original final-source outcomes: Debug 2/2; Release 0/2, then a separate unchanged ordinary Release 2/2. The latest 2026-10-29 uninstrumented Release control also passed 2/2, zero skipped: tail test 12.585s and stress test 17.494s including setup/cleanup. Its UI test DLL is 6C60730DBEC213B0A0D9C22CB01142021AF4945CDF0FBC98D417EFBA48B9A4F2, with diagnostic methods absent. A distinct session-only phase-timed build passed its one selected twelve-cycle case; this is diagnostic evidence, not the ordinary control. Full/expanded fixture selections and earlier focused/mounted results are retained above; none is silently substituted for a failed attempt. Standalone dotnet UiaProbe.dll <owned-run.json> <metrics.json> resize-soak is session-only diagnostic tooling, not a shipped repository test or additional xUnit acceptance.

Real Behavior Proof

  • Environment tested: unpackaged WinUI on Windows 11 ARM64, synthetic loopback Gateway, disposable profiles. No live provider, real Gateway, runtime install or machine display changes.
  • PR head or commit tested: published 801f5ce01ebf8e4a98f0ca78d101cf0bd1d9a601; local helper results additionally record dirty diff/source hashes. Final source: GatewayFixtureUiTests.cs SHA256 B7AB791902249040A4605C52B1B1E3F7D7EBA610D88FB4DEFC5DA16F135F45AD, Reactor proof file 425113561FDF969A158231C4CEB3AA17D9D47D0EBDB2A77410E85E5B54FCE707.
  • Exact steps or command run: required builds/tests and bounded fixture selection above; standalone probes stop at first strict failure. Only an explicitly diagnostic extra scroll follows failure, never counted as acceptance.
  • Evidence after fix: frozen normal Debug app SHA256 65D9C620A19C9FF403FAE5BEC6AFABCF99D21F7787B3C7698356C879E94C7E2A; frozen normal Release 4802D8F0C6F1452F75D310CBFCFA229D8068AC27BA453AA52EC94156D249F0CE; earlier ordinary Release test DLL F924141704888B83202FC649AC6162189227639EB4D2885D5140115953D55030; latest ordinary Release control DLL 6C60730DBEC213B0A0D9C22CB01142021AF4945CDF0FBC98D417EFBA48B9A4F2. Per-invocation source/binary receipts, completed TRX, partial attempts and owned-HWND PrintWindow captures are retained.
  • Observed result: the exact upstream sample reproduces the invalid-anchor crash on preview.15 and completes 12/12 replacements on preview.16 with the same old SDK, plus current SDK Debug/Release. This is reduced-mechanism verification, not full-product crash acceptance. Bounded ordinary Companion passes coexist with retained clipping and 7/12 slow-cycle failures. The strict marker failure also occurs in the pre-upgrade preview.12 control and in a separate Reactor-free native ItemsView control. The native control output's WinUI DLL matches the Companion output byte-for-byte; packages resolve SDK/WinUI 2.6.4 and no Reactor. Selection NRE repaired locally; no safe production scrolling correction established.
  • Screenshot or artifact links verified? (Yes/No/N/A): Public CI/comment/upstream links verified. Fresh screenshots/logs are local session artifacts, not public GitHub attachment links.
  • Not verified or blocked: hosted verification of the unpushed test-only repair, incomplete full Release UI, sustained Companion stress, exact live-Gateway/product scheduling trigger, native pending-operation timing in the original Reactor sample, arrivals while scrolled up, x64 runtime, complete proof pools and structured shared review. CI attempt 2 is green on the unchanged published candidate, not the local repair. The original sample now directly exercises bring followed by immediate history replacement; it does not fill those product-level gaps. improve(chat): remove an unnecessary wait when opening chat history #1449 and combined-tree acceptance remain separate.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): No
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: N/A. Markdown sanitization and inert link/image policy remain.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes, no public command/settings schema change.
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A. SDK 2.6.4 is inherited from main. Same-repository PR maintainer-edit setting is inapplicable.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

No review thread was resolved, #1449 edit made, merge requested or auto-merge enabled. The earlier authorized rebase preserved merge history, was lease-pushed, and retargeted from the obsolete SDK mirror to main after #1898 merged. This follow-up's four-file test-only repair remains uncommitted/unpushed.

Upgrade both Reactor packages, use the relocated Markdown factory, and retire the preview.12 list override. Align System.Drawing.Common with the new package minimum and retain native regression coverage and proof guidance.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 825b1d26-b68a-4248-8325-17f54dcbbdd4
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge. Reviewed September 30, 2026, 7:03 PM ET / 23:03 UTC (Revision 4).

ClawSweeper review

What this changes

The branch upgrades the native chat’s Reactor packages to preview.16, delegates Markdown list layout to Reactor, and updates a contract test and proof documentation.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this collaborator-owned draft open. Current main and the latest release retain the preview.12 mitigation. Reactor preview.16 offers a published replacement, but the branch’s latest native runs do not yet satisfy the retirement gates.

Priority: P2
Reviewed head: 9b0526eea672fdfddc2331df613812a3acaaa902
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and validation have useful signal, but native proof currently fails a required visible behavior and leaves crash coverage open.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 11 items Introduced package change: The pinned PR delta upgrades both Reactor packages together to preview.16 and raises System.Drawing.Common to 10.0.12.
Markdown ownership change: The changed timeline removes the preview.12 list callback and calls Reactor Advanced’s Markdown factory while retaining sanitization and inert link and image handling.
Current main still uses the pin: Current main retains both Reactor packages at preview.12 and explicitly ties their retirement to a validated WinUI fix.
Findings None None.
Security None None.

How this fits together

Windows Companion Chat receives conversation history from the Gateway and renders it as virtualized native message rows. Reactor formats message content and manages recycled rows while WinUI moves the viewport toward the newest message.

flowchart LR
  A[Gateway chat history] --> B[Selected conversation]
  B --> C[Reactor message rows]
  C --> D[Recycled row handling]
  C --> E[Markdown list layout]
  D --> F[WinUI row targeting]
  E --> G[Visible conversation]
  F --> G
Loading

Decision needed

Question Recommendation
May Reactor preview.16’s published workaround replace the preview.12 pin before a released native WinUI fix, once this app’s retirement proof gates pass? Prove and adopt Reactor: Keep this draft until the native gates pass, then explicitly approve the published Reactor workaround as the pin replacement.

Why: The existing tracker requires a released native fix, while the proposed interim dependency path changes that compatibility decision; upstream release status and local test counts cannot authorize the change.

Before merge

  • Resolve merge risk (P1) - Replacing the shipped preview.12 pin may restore native session-switch crashes if the published Reactor workaround does not cover this app’s pending row-targeted requests. Sustained current-head switching proof is still absent.
  • Resolve merge risk (P1) - The latest current-head Debug and Release real-app runs each failed a 240-message final-row visibility check, stopping at message 237. The cause is not attributed to this diff, but release with that unresolved behavior would leave users above the newest message.
  • Resolve merge risk (P1) - The retirement tracker calls for a released and validated native WinUI fix. This PR proposes the Reactor workaround as an interim replacement, and no target-repository decision has explicitly accepted that changed gate; streaming follow and scrolled-up reader behavior also remain unverified.
  • Complete next step (P2) - Keep the PR in draft; diagnose the final-row failures, complete current-head native and rubber-duck proof, and obtain explicit approval for retiring the preview.12 pin through Reactor’s interim workaround.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Latest native fixture Debug 4/5 UI; Release 4/5 UI; both 30/30 integration Both configurations exercised the real app, but neither latest full native UI run met the final-message acceptance check.

Root-cause cluster

Relationship: partial_overlap
Canonical: #1424
Summary: The tracker owns the wider dependency-retirement gates; this PR proposes the package and Markdown portion, while final-row behavior has a separate report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete native retirement proof (recommended)
    Diagnose the final-row failures and show stable current-head switching, crash avoidance, streaming follow, and scroll-away behavior before adopting the new package pair.
  2. Retain the shipped pin
    Pause this branch and keep preview.12 if the interim workaround cannot satisfy the application’s native proof gates.

Technical review

Best possible solution:

Retire the preview.12 pin only after the interim Reactor path receives explicit approval and current-head native proof establishes stable switching, actual final-row visibility, streaming follow, and reader-position preservation.

Do we have a high-confidence way to reproduce the issue?

No high-confidence current-main crash reproduction was run in this review. The branch’s latest ARM64 fixture runs observed intermittent final-row failures in both Debug and Release, but do not establish whether the dependency change caused them.

Is this the best way to solve the issue?

Unclear. The paired upgrade follows a released upstream workaround and preserves row-targeted scrolling, but the app’s negative final-row runs and incomplete crash proof prevent accepting it as the pin replacement yet.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e00ce903eda5.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded dependency and native chat improvement while the shipped preview.12 mitigation remains in place.
  • merge-risk: 🚨 compatibility: The PR replaces an intentional shipped dependency pin before its documented retirement gate is satisfied.
  • merge-risk: 🚨 availability: The package change targets a native session-switch crash path whose sustained application-level avoidance is not yet demonstrated.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Barbara Kudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the Debug and Release final-row failures with redacted current-head fixture diagnostics and show reliable visibility of message 240.
  • Show repeated switching with a pending bring request, streaming tail-follow, and a scrolled-up reader after arrivals on the native release path.
  • Complete the repository’s rubber-duck review and attach redacted screenshots or logs to the PR body.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-29T22:39:13.932Z sha 9b0526e :: blocked before merge. :: none
  • reviewed 2026-09-29T22:56:39.625Z sha 9b0526e :: blocked before merge. :: none
  • reviewed 2026-09-30T17:32:18.434Z sha 9b0526e :: blocked before merge. :: none

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions

Copy link
Copy Markdown
Contributor

Closing due to inactivity.
If this PR should be revived, reopen it with current context and a fresh validation plan.

@github-actions github-actions Bot closed this Oct 22, 2026
@karkarl karkarl reopened this Oct 22, 2026
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 22, 2026
Recheck latest published Reactor versions and retain the strict final-row proof gate.

Co-authored-by: Copilot App <[email protected]>
@karkarl

karkarl commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

Current-head runtime proof for a7fb98c (2026-10-22). Windows 11 ARM64, fresh isolated profiles, real app against the checked-in synthetic loopback Gateway. Debug and non-Dev Release each passed 30/30 integration checks and 6/6 native UI tests. The separate 12-cycle A/B scrolling/session-switch smoke passed in 17.7s Debug and 17.8s Release. The unchanged strict test showed message 240 at both 1000x720 and 1400x950 window bounds. Captures below were inspected: Debug narrow tail, Release wide tail, Release alternate session after 12 cycles. No app crash log or surviving owned app process was found. This is bounded fixture proof, not real Gateway/reporter-history reproduction, guaranteed overlap with a native bring request, or proof that the layout-cycle crash is fixed. Historical intermittent 237/240 failures remain relevant; the PR stays draft pending remaining proof and structured-review authentication.

Debug native chat with final marker 240 at narrow width

Release native chat with final marker 240 at wide width

Release alternate session after twelve scrolling and switching cycles

Keep identical responsiveness smoke and helpers in a focused partial test file, matching main without importing unrelated production changes.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot removed the stale label Oct 23, 2026
@karkarl

karkarl commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

Corrected-head CI update: Build and Test run 39995505630 completed successfully for 31fff448d11131f28a7842e6f04534fcadbd087a.

This is hosted CI for the standalone PR, not acceptance of combined 583ce764. Draft/merge HOLD remains: the final combined report retains local unit/UI failures, zero completed Release stress cycles, and missing original-crash/real-Gateway proof. Passing CI does not erase those results.

@RomneyDa

Copy link
Copy Markdown
Member

Current-head standalone Debug proof: 4 passed, width proof blocked

Head 31fff448d11131f28a7842e6f04534fcadbd087a, Windows 11 ARM64, .NET 10.0.402, synthetic isolated Gateway/profile. No source edits, assertion changes, shared-runtime changes, or merge.

  • ./build.ps1 -Configuration Debug: passed (87.81 seconds).
  • Fixture profile/run/app integration selection: 32 passed, 0 failed/skipped.
  • Five selected native chat cases: 4 passed, 1 failed, 0 skipped.
  • Fractional voice history, stale-history isolation, and page/preference preservation passed.
  • Switching stress completed all 12 cycles in 14.41 seconds. The captured final research conversation is visibly rendered.
  • The both-width case passed natural-tail checks through three conversation switches and displayed the complete final message 240 at 900x720, but failed its independent width-difference assertion. Narrow capture: 900x720. Attempted wide capture: 1044x788. The guest desktop is 1024x768; it did not supply the required second width. A separate display-mode preflight did not advertise the requested 1920x1080 mode, so no display setting was changed and no replacement test pass is claimed.
  • Explicit current-build app path and recorded app/Reactor/XAML hashes were unchanged after the run.

The inspected captures below support these narrow passing observations. They do not erase earlier clipping, Release/combined-tree failures, or establish that the reported sustained hang is fixed. This is not Release, combined #1449 interaction, active-turn/reader non-stealing, or real-Gateway/reporter proof. Full Shared/Tray suites were not rerun for this source-unchanged proof attempt. The existing draft/runtime HOLD remains.

Current-head fractional voice history reaches the final reply

Complete final message 240 at the measured 900x720 narrow window

Rendered research conversation after all 12 switching cycles

karkarl and others added 2 commits October 27, 2026 17:42
Keep the shared SDK version for all four WinUI consumers. Leave Reactor and chat scroll behavior unchanged.

Co-authored-by: Copilot App <[email protected]>
Stack the Reactor upgrade on the exact SDK update from PR #1898, preserving the existing pooled-control metadata fixes.

Co-authored-by: Copilot App <[email protected]>
@karkarl
karkarl changed the base branch from main to karkarl-winappsdk-2-6-4-upgrade October 27, 2026 21:58
@karkarl

karkarl commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator Author

Stacked on #1898 (chore: update Windows App SDK to 2.6.4).

  • Parent: 8e60c80577f83ce32e9f706e04ce49e16f88df9a.
  • This PR: 8f438effdd81bd4beae6e5b66e2c8e4a15cdf2cb. Existing Reactor history and pooled-control metadata repairs are preserved through a clean merge, not a rewrite. The diff against the parent remains nine Reactor-related files.
  • Resolved packages: Microsoft.WindowsAppSDK and .WinUI 2.6.4, Reactor and Reactor.Advanced 0.1.0-preview.16.

Cross-fork limitation: #1898's head is in karkarl/openclaw-windows-node, while this PR's head is upstream. GitHub native stacks do not support this combination. This PR therefore targets an upstream karkarl-winappsdk-2-6-4-upgrade mirror at the exact #1898 head. This is a dependent-PR chain, not registered native stack metadata. If #1898 changes, refresh the mirror and this PR; after #1898 merges, retarget this PR to main. Neither PR was merged or replaced.

Validation of the merged source (the same tree committed as 8f438eff):

  • .\build.ps1: PASS, all five Debug ARM64 projects and documentation checks.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet: initially blocked by missing project.assets.json; no tests ran.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet: initially blocked by missing project.assets.json; no tests ran.
  • Repeated each command without --no-restore to restore the missing assets and actually execute the tests. Shared: 4,647 passed, 1 failed, 26 skipped. Failure: symbolic-link fixture creation lacks Windows privilege. Tray: 4,566 passed, 4 failed, 0 skipped. Failures: the four BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver theory cases still observe ARM64 despite requesting AMD64. TRX/logs retained locally; these match the failure categories reported on the SDK prerequisite, not a green local closeout.
  • git diff --check 8e60c80577f83ce32e9f706e04ce49e16f88df9a HEAD: PASS for this layer. Whitespace diagnostics from the imported main history are not repaired here.
  • Independent bounded rubber-duck integration review: no introduced blockers found.

Draft/runtime HOLD remains. No new native UI or original-crash reproduction was performed for this head. Earlier standalone 31fff448 and combined 583ce764 results remain historical, not acceptance of 8f438eff; their negative evidence is preserved. No claim that all scrolling/layout failures are fixed. New CI is not yet verified.

@karkarl
karkarl marked this pull request as ready for review October 27, 2026 22:35
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@karkarl

karkarl commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

Parent sync completed: #1898 (chore: update Windows App SDK to 2.6.4) is now mirrored at exact 5ce60c4772845b4ce732b8b6d4dbc731d581db7f. This PR is fast-forwarded to 1c900fc1e7c931ecd39abfaf4d151e6f9fa344fd, preserving its nine-file Reactor-only delta. Only the parent's two test repairs were added; no production or documentation behavior changed during this sync. Both branches were advanced atomically with explicit expected-tip leases, without rewriting history. Existing non-draft review state is preserved; no merge or auto-merge was requested.

Current-head validation:

  • .\build.ps1: PASS, all five Debug ARM64 projects and documentation validation.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet: PASS, 4,650 passed, 24 skipped, zero failures.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet: PASS, 4,570 passed, zero skipped/failures.
  • git diff --check 5ce60c4772845b4ce732b8b6d4dbc731d581db7f HEAD: PASS.

The prior failed unit attempts remain historical evidence, not erased by these results. No native UI/crash scenario was rerun for this head; original-crash and scrolling acceptance limits remain. Cross-fork native stack registration is still unsupported; the existing exact-parent mirror chain remains in place. If #1898 changes again, refresh this chain; once it merges, retarget this PR to main. New hosted CI is not yet verified.

@karkarl
karkarl force-pushed the karkarl-reactor-version-update branch from 1c900fc to 801f5ce Compare October 28, 2026 15:53
@karkarl
karkarl changed the base branch from karkarl-winappsdk-2-6-4-upgrade to main October 28, 2026 15:53
karkarl and others added 2 commits October 30, 2026 17:36
…ing input

Add a one-shot, follow-gated tail correction after viewport reflow in
InitialTailPositioner, and address dual-model review findings:

- A reflow correction never starts while initial history positioning is
  pending, so it cannot impose its follow requirement on the initial bring.
  TailNavigationPolicy.CanDispatch keeps initial positioning un-gated.
- Input cancellation recomputes follow from the current position instead of
  clearing it, so a click or key press at the tail keeps following replies.
- Correction dispatch rechecks follow so a newer UIA scroll-away wins.
- Fixture Gateway ignores cancellation from an aborted/closed socket; UI proof
  waits for the mounted timeline and records scroll metrics.

Co-authored-by: Copilot App <[email protected]>
Resolve docs/CHAT_VISUAL_DESIGN.md by keeping both the tail-navigation and main's question-dock/working-claw paragraphs.

Co-authored-by: Copilot App <[email protected]>
@shanselman
shanselman merged commit a4dd026 into main Oct 30, 2026
28 checks passed
@shanselman
shanselman deleted the karkarl-reactor-version-update branch October 30, 2026 22:58
larroy added a commit to larroy/openclaw-windows-node that referenced this pull request Nov 3, 2026
…citations

The static ScrollToAsync refactor kept the old instance-method logging
block, so GatewayFixtureUiTests did not compile (CS0103 scroll/before,
CS9105 output in static context) and the UI job failed all three steps.

Restore main's ScrollToAsync verbatim, with its scroll diagnostics, and
the one end-scroll followed by passive visibility polling in the
resize test, so the clipping regression from openclaw#1549 stays covered.

Also correct two CI_FAILURES.md review findings: run 41532119336 is a
fork run about hosted fixture startup, not the local pristine
reasoning-picker crash, and the 90 s fail-fast wait, phase-bearing
message, and bootstrap/window-creation markers are existing fixture
diagnostics, not new in this change.
larroy added a commit that referenced this pull request Nov 4, 2026
* test: stabilize flaky UI-job and SetupEngine CI failures

- Serialize the UITests assembly and lock the testhost PerMonitorV2 DPI
  context at assembly load so launched-app collections cannot poison it
  before the UIThreadFixture initializes (mode A).
- Re-issue the chat timeline end-scroll while waiting for message 240
  instead of one scroll followed by a passive 20 s wait (mode B).
- Poll the retained composer draft instead of asserting it once, tolerate
  the handoff receipt temp-file/move race, and raise the handoff settle
  budget to 45 s (modes C, C2).
- Re-check WaitForRenderedConditionAsync on a dispatcher timer so off-screen
  windows and dynamically inserted children settle, accept XamlRoot as
  in-tree for the wizard More button, wait for Gateway request quiescence
  before request-count asserts, bound SVG decode with the real
  queue-wait-plus-decode product bound, and invoke SettingsBack only when
  it is enabled (modes D, G1-G4).
- Close composer flyouts by awaiting real closure, close stray popups
  before Reactor teardown, and mark teardown phases in the console
  (modes E, F1); bracket the dispose finalizer drain (mode F2).
- Raise the GatewayPackageCleanup worker timeout to 120 s (mode H).
- Record proven unresolved modes in docs/CI_FAILURES.md.

* docs: attribute the hosted-runner fixture window-creation hang

* docs: attribute the reasoning-picker in-body testhost crash

* docs: add fork CI run evidence to the retained-draft loss entry

* test: restore single-scroll clipping coverage and correct CI-failure citations

The static ScrollToAsync refactor kept the old instance-method logging
block, so GatewayFixtureUiTests did not compile (CS0103 scroll/before,
CS9105 output in static context) and the UI job failed all three steps.

Restore main's ScrollToAsync verbatim, with its scroll diagnostics, and
the one end-scroll followed by passive visibility polling in the
resize test, so the clipping regression from #1549 stays covered.

Also correct two CI_FAILURES.md review findings: run 41532119336 is a
fork run about hosted fixture startup, not the local pristine
reasoning-picker crash, and the 90 s fail-fast wait, phase-bearing
message, and bootstrap/window-creation markers are existing fixture
diagnostics, not new in this change.

* test: address review of the More-button wait and SVG decode bound

- Keep IsLoaded as the wizard More-button readiness check. The poll timer
  already covers the no-frame case, and a bare XamlRoot check let the
  automation peer invoke a button a user could not yet click.
- Restore the single-decode SVG bound to SvgRenderTimeout + 2 s. The
  single-load tests arrange no queue contention, so the doubled
  queue-plus-decode budget only hid a real overshoot: the decode cap fires
  on time but SvgImageSource.SetSourceAsync blocks the UI thread past it.
  Assert the decode slots are idle before timing and include timestamped
  resolver warnings in the failure message.
- Add Load_QueuedBehindBusyDecodeSlots_CompletesOnceASlotFrees to cover
  queue wait plus decode deterministically.
- Record the UI-thread blocking attribution in docs/CI_FAILURES.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants