Skip to content

improve(chat): remove an unnecessary wait when opening chat history - #1449

Merged
karkarl merged 5 commits into
openclaw:mainfrom
dotMorten:user/dotmorten/scroll_fix
Nov 3, 2026
Merged

karkarl merged 5 commits into
openclaw:mainfrom
dotMorten:user/dotmorten/scroll_fix

Conversation

@dotMorten

@dotMorten dotMorten commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1437. This PR does not claim to fix the separate recycled-anchor crash addressed by #1549 (fix(chat): adopt Reactor preview.16 session-switch crash workaround).

Latest October 23 update: user-directed rebase and CI repair complete; runtime HOLD retained. Published head 3dc43d1bcd59938dd1f16876e6f5863cefc0d6dd, rebased onto main fb45902950fd4f62d20a37dbbafac27e916917f2; hosted merge c9169dbfc761d0664a891e905619bc4d2d3e235c. Original contributor and maintainer patches are unchanged by git range-diff. The only added fix serializes fixture-startup port-release assertions in the existing nonparallel test collection, preserving every assertion. Build and Test 40006500973 and CI Gate PASS, including Tray, integration, setup, UI and accessibility. Exact commands, counts, local environmental failures and retained runtime gates. CodeQL setup passed but analyses were skipped, not scan-passed. No Reactor upgrade, #1549 integration or PR merge. Historical head-specific evidence and earlier pending/failed CI statements below are retained chronology, not claims about the final head. Green selected CI does not clear final-head crash/scroll acceptance.

What Problem This Solves

Opening or switching chat histories can leave initial scrolling waiting for an additional layout event rather than positioning at the latest message.

User Impact

Intended user impact: initial scrolling toward the latest message no longer requires an additional layout event after the view loads. Runtime HOLD remains: the authorized maintainer patch fixes the source-level lost-request defect, but earlier standalone native Debug natural-tail and Release delayed-history proof failed. The corrected Pages capture attempt was incomplete, not a passing run. Earlier hosted CI failed separately in unchanged onboarding OCR; the final rebased CI now passes as linked above. Source review, unit tests and responsive fixture apps do not establish scrolling or layout-cycle/anchor-crash acceptance.

Why This Change Was Made

The native bring-into-view request handles target realization and layout. InitialTailPositioner remains the owner and waits for the ItemsView and ScrollView to load, retaining the dispatcher handoff outside Reactor reconciliation. Generation checks, tail-identity validation, unload/disposal cleanup, and ordinary follow guards remain.

At the previously reviewed head 113416a4, removing the base retry could lose an initial request if its tail index changed while its displayed key stayed the same. The user-authorized maintainer commit 96dfba0e3059c8d3ef5e87259b9fd71a475257d4 now retains only the originating generation before dispatch, then resolves the current tail inside the callback after generation/load checks. A small pure request resolver provides executable same-key/index-shift, stale-generation, and empty-tail coverage; source wiring guards prohibit copying coordinates before dispatch. Ordinary follow, reader scroll-away guards, and the contributor's load-only approach are unchanged. No forced-tail loop, dependency upgrade, or preview.16 change was added.

Evidence

October 23 historical standalone and isolated combined native proof: negative

Latest isolated combined-tree result: HOLD. The separate proof-only integration 583ce764d2f556ff1f7a775e334caaef347aec16 (tree 135449b2653a43ba1c167d5f87cd5cbf648db649) contains main fb45902950fd4f62d20a37dbbafac27e916917f2, published corrected #1549 31fff448d11131f28a7842e6f04534fcadbd087a and complete pre-rebase #1449 96dfba0e3059c8d3ef5e87259b9fd71a475257d4. Both builds pass, but required tests and native proof are not green. Integration passed 32/32 each configuration; native UI Debug 29 passed/3 failed, Release 28 passed/4 failed. Both completed under independent 600-second wall-clock watchdogs, no retries. Fractional-voice natural-tail and two Composer New projects.list METHOD_NOT_FOUND failures remain; Release stress additionally fails before any completed cycle with Chat timeline is not mounted. Sidebar natural-tail/narrow-wide, delayed-history and Pages pass both, without erasing the failures. Cleanup verified and desktop released. This is not the standalone PR head, real-Gateway/reporter or active-turn/streaming proof, and it does not supersede the historical or standalone negatives below. Neither contributor branch received the integration; no PR was merged. Final distinct combined report.

Full standalone report, exact commands, artifact hashes, bounded CI attribution and three uploaded screenshots. Tested standalone 96dfba0e3059c8d3ef5e87259b9fd71a475257d4, native Windows ARM64, committed Reactor preview.12. No main or preview.16 integration was used.

Lane Integration Native UI Observed result
Debug initial 30 passed, 0 skipped 2 passed, 2 failed Picker timed out at natural tail at message 240, before manual scrolling. Pages case separately failed capture infrastructure because winapp was missing from inherited PATH.
Release, production-shaped 30 passed, 0 skipped 3 passed, 1 failed Delayed-history case timed out at cached delayed history when actually selected. Inspected failure PNG shows a connected selected long session with blank transcript. Picker, Pages and empty-session cases passed.
Debug Pages-only tooling-corrected attempt Not rerun Incomplete; no TRX/completed result Retained run report records Sessions-page action routes to long chat timeout. Inspected PNG shows messages 1-3, not the final message. Runner was stopped after overnight interruption. No completion or pass is inferred.

Product-failing cases were not retried for green. Only the initial Pages capture infrastructure failure received one tooling-corrected attempt using the existing isolated WinAppCLI 0.7.1 and PowerShell 7.6.8. Both failures are retained. The corrected attempt's missing completed result remains explicit.

Release picker proof passed three A/B switches with natural-tail checks before manual scrolling, then explicit-scroll width checks at physical windows 1000x720 and 1400x950. Both inspected captures show actual FIXTURE LONG FINAL MESSAGE 240 and FIXTURE LONG END 240. A passing adjacent case does not erase the delayed-history failure. No retained crash.log was found, but this is not reporter-crash acceptance.

Release delayed-history failure:

Release delayed-history timeout: connected selected long session has blank transcript

October 22 authorized maintainer correction

Commit 96dfba0e is an additive maintainer patch on the existing contributor branch, parent 113416a4fbb6d26bd3db37b065c9c0d905d52aae. At that stage no replacement PR, rebase, main integration, dependency upgrade, or merge was performed. The later user-directed rebase is recorded above.

Repeat review used actual models claude-opus-5.5 (high) and gpt-6-astra (high, long_context), with identical prompts and evidence. The named skill was unavailable in this checkout, so its canonical workflow supplied by the coordinator was followed directly. Both verified final packet SHA256 15396E71F48B8680900033D5A0DB5D1E48410C12D6A50209F654772CBEF5A401. Both final reviews report no accepted/actionable findings in the authorized patch. This is source-review consensus, not native acceptance.

HIGH consensus (agreement, not severity)

Issue Opus 5.5 GPT-6 Astra Fix Confidence
Initial capture lost after a same-key index shift before dispatch Resolved (was MEDIUM) Resolved (was MEDIUM) 95% for this narrow source correction
Reload can force the tail after a reader scrolled up LOW, inherited LOW, inherited 70%, separate behavior-design work; not changed here

LOW consensus

Issue Opus 5.5 GPT-6 Astra Fix Confidence
Wiring test should also prohibit copying coordinates into locals before dispatch LOW, fixed and re-reviewed not flagged initially; final hardening accepted 99%
Same-key stale index on ordinary queued follow LOW, inherited not flagged 75%, separate follow-policy work; outside this patch

Both reviewers reject the earlier missing-inner-ScrollView allegation as an established bug: no concrete production lifecycle was demonstrated, and a present-but-unloaded child is handled. No speculative polling was added. The standalone repository autoreview helper was attempted but could not launch because Python resolves only to a Microsoft Store alias and no Codex CLI is installed; no standalone helper success is claimed.

The regression test queues a callback, inserts a row before the unchanged thinking key, proves the old capture fails final validation, and confirms the production resolver returns the current index. It is pure behavioral coverage plus a source-wiring contract, not a native WinUI scheduling or scrolling test.

Retained earlier review and negative evidence

The author's clarification distinguishes scroll restoration from the separate Reactor anchor crash and reports local x64/ARM64 testing. The prior ClawSweeper review and September 30 dual-model review both identified the source defect now corrected. Those reviews' native proof gates are not cleared by this patch.

September 30 tested unpushed local integration 2985083d7030329a4f9bcf64bdb739f0898aed8e, merging then-main 1b334e36d83d2643025992170169772e3711113d into 113416a4. It was not the live contributor head and is not this patched revision. Its contributor controller SHA256 was 3D004E6B23EFF60D1ECB9261FB4037E0D08A90C728DD18FFAAAAD9D488D81EE5; Reactor remained preview.12. Source request loss and the static browse fixture's blank transcript are separate observations; the static fixture has no active thinking/tool-arrival race.

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: historical standalone and isolated combined fixture proof collected, with negative natural-tail/delayed-history outcomes above. Stable scrolling, real-Gateway/reporter crash reproduction, active-turn/streaming non-stealing and final-head acceptance remain outstanding.
  • windows-11-arm64: historical ARM64 Debug/full and production-shaped Release builds passed, native fixture results are negative/mixed. Final rebased full Debug build also passed. This is not runtime acceptance.

Validation

Final rebased head 3dc43d1bcd59938dd1f16876e6f5863cefc0d6dd

Full final-head validation and CI report. Native Windows ARM64 local closeout: powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 PASS; dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet: 4,642 passed, 1 failed, 26 skipped (existing symlink privilege failure); dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet: 4,467 passed, 4 failed (existing ARM64 prerequisite subprocess fixtures). dotnet test .\tests\OpenClaw.Tray.IntegrationTests\OpenClaw.Tray.IntegrationTests.csproj --no-restore --filter 'FullyQualifiedName~GatewayFixtureStartupTests|FullyQualifiedName~GatewayFixtureRunTests|FullyQualifiedName~GatewayFixtureProfileTests' --verbosity quiet: 34 passed, no failures/skips. git diff HEAD~1..HEAD --check: PASS, clean worktree.

Hosted 40006500973: PASS including CI Gate, Tray 4,471 passed, integration 55 passed/3 skipped, SetupEngine 2,436 passed/1 skipped, Dev containment 31 passed, Functional UI 19 passed, Tray UI 511 passed/33 skipped, accessibility 23 passed, Local AI hardware-profile capture 12 passed. Core/CLI, WSL E2E and release/package jobs were skipped by existing classification. CodeQL 40006500904: setup gate passed; Actions/C# analysis skipped, not scan-passed. Rebase compatibility rubber-duck review found no blocking source issue; final test-collection fix retains all assertions. Canonical autoreview installation was unavailable, no helper success claimed.

Historical committed head 96dfba0e3059c8d3ef5e87259b9fd71a475257d4

Native Windows ARM64, committed preview.12 dependencies. OPENCLAW_REPO_ROOT selected the dedicated worktree. Tests used session-owned OPENCLAW_TRAY_DATA_DIR directories, not normal user settings. Fresh-worktree projects had already been built/tested with restore so required --no-restore commands executed real tests.

Exact command Result
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 Passed: all five Debug projects and documentation validation, RID win-arm64. Process-only policy bypass because direct script execution is Restricted; no persistent policy changed. Repeated after final hardening and after commit.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet Passed: 4,094 passed, 34 skipped, 0 failed. Final post-commit run completed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet Passed: 3,073 passed, 0 skipped, 0 failed. Final post-commit run completed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet --filter FullyQualifiedName~ChatTimelinePresentationTests Passed: 28 passed, 0 skipped, 0 failed, including three new behavioral resolver tests.
git diff HEAD^..HEAD --check Passed.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 -Project WinUI -Configuration Release Passed: native ARM64, non-Dev Release app; System.Diagnostics.Debugger.IsSupported=false.
Debug fixture integration/UI commands in the historical standalone proof note Integration 30 passed; UI 2 passed/2 failed. Debug Pages-only corrected invocation incomplete, no TRX.
.\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Release\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -Configuration Release -ArtifactsDirectory '<session-files>\pr1449-head-release' -Screenshots Failed on delayed-history native UI case. Integration 30 passed; UI 3 passed/1 failed, 0 skipped. Invoked using PowerShell 7.6.8, WinAppCLI 0.7.1 on process PATH, telemetry opt-out.

Controller SHA256: A97137832F45100A9768C7F9EA413E9E9C4A416E707888997470A53BEDF43550.
Debug DLL SHA256: 7C5BA47B67CA91298C475E5DD4F2BDB5187F4852C9FCA63466314A0DDD1EC81B.
Release DLL SHA256: CA9220CBB34BB4CF05FDD6CD8644F5093224306FD931D9E5B11D1EF7606A73DD.

Historical hosted CI and bounded failure attribution

Build and Test 39851922781 is FAILURE, not awaiting approval or green. UI job 120086135403 failed LocalAiHardwareProfileTests.Onboarding_OffersOnlyFittingProfiles(vramGiB:0, theme:Light) with TaskCanceledException in OnboardingNativeProof.AssertLabelsAsync, line 723.

The exact CI checkout was merge a890e64f28aed63b861d40d55d3d687838876c6a, the old head against then-main bef07da01911fa78ed5ab728ab9248bbb1ec0466, not newer main fb459029. Both failing onboarding proof files are byte-unchanged between that main and the CI merge. The helper invokes Windows OCR RecognizeAsync with a 3-second cancellation token; the test constructs onboarding/Local AI controls, not the chat timeline. This is bounded evidence for an unrelated OCR/runner timing path, not a baseline-proven flake or definitive causal finding. At that stage CI remained a landing blocker. No broad fix, retry for green or override was performed. The later user-directed rebase and distinct fixture test-isolation fix now pass selected CI, as recorded above, without relaxing OCR assertions.

CodeQL 39851922753 concluded success at the setup gate, but C# and Actions analysis jobs were skipped. No passed security analysis is claimed. The green older Build and Test run belongs to 113416a4, not this head.

Retained historical validation, not acceptance for this head

September 30 local integration 2985083: .\build.ps1 and .\build.ps1 -Project WinUI -Configuration Release passed. Shared final rerun: 4,169 passed, 33 skipped; Tray: 3,345 passed; focused chat tests: 28 passed. An initial Shared run had one failure in unchanged McpHttpServerTests.Dispose_DuringInFlightHandler_DoesNotSurfaceObjectDisposedException; its targeted diagnostic and final full rerun passed, without proving the initial failure was a flake.

  • .\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe' -Configuration Debug -Screenshots -ArtifactsDirectory '<session-files>\pr1449-fixture-debug': Failed, integration 30/30; UI 4 passed/1 failed/0 skipped.
  • .\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Release\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe' -Configuration Release -Screenshots -ArtifactsDirectory '<session-files>\pr1449-fixture-release': Passed, integration 30/30, UI 5/5, 0 skipped.
  • Exact-main 1b334e36 Debug control, dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 -p:Platform=x64 -p:DevBuild=false --filter FullyQualifiedName=OpenClaw.Tray.UITests.GatewayFixtureUiTests.SessionPickerSwitchesRealHistoriesAndShowsMessage240AtBothWidths --logger 'trx;LogFileName=base-picker.trx' --results-directory '<session-files>\pr1449-base-debug' --verbosity quiet: 1 passed, 0 skipped, 0 failed. A single bounded control, not deterministic causal proof.

September 23 at 113416a4: ARM64 Debug/full and non-Dev Release builds passed; Shared 4,093 passed/35 skipped, Tray 3,070 passed, focused 25 passed. Debug fixture: integration 30 passed, UI 2 passed/2 failed; Release: integration 30 passed, UI 3 passed/1 failed. Exact-base controls passed Debug 2/2 and Release 1/1. Original f683edca ARM64 Release build passed; Shared 3,983 passed/33 skipped, Tray 2,980 passed. These results do not validate the current patch.

Real Behavior Proof

Final rebased head has green selected hosted UI/integration CI, not a new standalone desktop/crash acceptance pass. The following native proof applies only to the specified historical standalone revision. Current-head crash/scroll, real-Gateway/reporter and active-turn/reader proof remain blocked/unverified; no new desktop run was requested for the fixture-collection fix.

  • Environment tested: native Windows ARM64, synthetic loopback Gateway/local MCP fixture and actual WinUI/UIA, isolated app profiles, Debug and non-Dev Release. Not real-Gateway pairing or node.invoke proof.
  • PR head or commit tested: historical standalone 96dfba0e3059c8d3ef5e87259b9fd71a475257d4, committed preview.12. No preview.16 overlay or main integration.
  • Exact steps or command run: fixture commands/results and artifact identity above and in the historical standalone proof note.
  • Evidence after fix: Debug picker run 116185234f0d46b197cb3ecf2c4f6422 failed natural-tail assertion after history returned ok; first capture tooling failed. Release delayed-history run 4ec103165ddd45a097c395df785a7b61 failed with blank transcript; picker run 91c48eac027c421aa3da434cf1213a7e passed natural switching and final-row width checks. Corrected Debug Pages run c79686c63c7b441fb84d929495d3d551 retained timeout/first-row image but no completed TRX. Native UI behavior is not inferred from the 28 pure presentation tests.
  • Observed result: source request-loss finding corrected; native acceptance remains HOLD. No product-failure green retry. No retained crash log, not crash-resolution proof.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes for historical publication. Exact posted comment read back; all three paths became GitHub user-attachment URLs, all returned HTTP 200 by GET. Debug Pages diagnostic, Release blank delayed history, Release passing actual final message.
  • Not verified or blocked: stable Debug/Release natural-tail placement; real-Gateway/reporter crash reproduction; active-turn/tool-arrival race; streaming growth/reader non-stealing; final-head standalone/interaction acceptance and non-skipped security analysis. The later main/preview.16 combined 583ce764 run completed negative, not pending or green. Historical standalone committed harness had four UI cases, not the newer six-case/12-cycle smoke. Final selected hosted CI is now green.

Owned fixture processes/profiles from completed runs were cleaned. The overdue Pages-only process tree was stopped; recorded app PID 35220 was absent and its exact inspected fixture temp root removed. No unrelated process was stopped. Desktop explicitly released for #1549's next standalone pass. Future combined passes require a real finite wall-clock process-tree watchdog, not only the test-runner timeout.

Historical negative evidence retained

September 30 integration 2985083 used isolated Windows 11 x64, synthetic multi-session-browse Gateway, five sessions and 240 mixed-height messages. Debug picker timed out at natural tail at message 240 before manual scrolling. Inspected PNG showed a connected selected long history with blank transcript and no final marker; chat.history returned ok, app reported responding. Other four Debug UI cases passed. Release passed all five; inspected PNGs showed FIXTURE LONG END 240 at physical windows 1500x720 and 1900x950. Exact-main Debug control passed the failed picker once. These differential observations do not establish deterministic cause or erase failures.

Historical artifact groups: pr1449-fixture-debug run f88dbf19362c4660b7db39623cde1aea, pr1449-fixture-release run cac7f1e6ade646a3854bd228b04cbde0, base 50f3d2d0659c4b55a54895b6c40fc0a8. Report subdirectories: 5b94111062194030ab683b3418397beb, c4dfd0abfd4544808e945db1f4aab898. Historical screenshots remain local. DLL hashes: integration Debug BC2F51D5A965565C0AB37FD0A366EBDD3736CA964816F9119A50BDC2A53D37B4, integration Release EA363F3AD715614751786D8B74041CB466B6926B95CC5B578CA77D41F6D699C6, baseline Debug FC46CC2DB3631736F48CFBD81386E12ABF93306AAC518F22DB9D46B32DB2EA0D.

September 24 hash-identical 113416a4 Release split-predicate diagnostic used temporary test-only instrumentation, restored afterward. Selection succeeded in 85/86 observations; natural final-marker visibility failed 86/86, scroll percentage 0, history returned ok. No crash artifact. Run e014901c2d724a689ad373aca3259774; older groups pr1449-integrated, pr1449-baseline, pr1449-diagnostic. This resolved selection-versus-tail ambiguity, not cause. Historical Debug/Release DLLs: B5B34C5E2F1E981BCCD96CD6595D406F33E1BA91A5521F05B3A47AD2F7D73467, 9A75549272672873C4E60419A091DA30DF7AD331769788982B52E650278CBE7D.

Original f683edca 77-message ARM64 Release experiment used an explicit temporary package/Markdown compatibility overlay. Initial viewport was blank; first switch reproduced ItemsView::OnScrollViewAnchorRequested -> ScrollingAnchorRequestedEventArgs::AnchorElement, E_INVALIDARG (0x80070057), surfaced as 0xC000027B, zero completed switches and process exit. This remains negative diagnostic evidence, not committed-dependency acceptance or attribution that this PR causes/fixes the separate anchor crash. No real conversations were used.

Landing order and pending upstream dependency

Validate #1549 (fix(chat): adopt Reactor preview.16 session-switch crash workaround) independently first. The requested isolated combined proof has now completed at 583ce764 with the negative Debug/Release outcomes above, not a green landing gate. Neither contributor branch received that proof integration. The separate later user-directed #1449 rebase imported main only, not #1549; no PR merge is authorized. Its final-head runtime acceptance cannot be borrowed from either historical standalone or combined trees.

Actual main was verified fb45902950fd4f62d20a37dbbafac27e916917f2, newer than the old hosted CI base bef07da. It includes localized bundled chat welcome commit ef05d53a77392ac798676dc32774d087b8f74029, touching chat state/projector/root/composer/welcome/presentation tests, so it is not merely a workflow-only base update. Preview.16 proof cannot establish that this patch fixes initial-tail failures.

External microsoft/microsoft-ui-xaml#12085 and microsoft/microsoft-ui-xaml#12086 were verified OPEN; the latter is unmerged. The proposed fix describes compositor InteractionTracker stale min/max after content reset clamping nonanimated bring-into-view back to offset 0 while reporting completion. This is a plausible inherited mechanism/pending upstream dependency, not root-cause proof for these failures. No WinUI upgrade or workaround scope is added.

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.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes for public/config contracts; native acceptance remains blocked above.
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A.

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.

October 22 API read found zero inline review threads. The prior source finding is corrected and both requested final reviews are clean, but existing CHANGES_REQUESTED reviews are not dismissed and native proof gates remain open. Selected final-head hosted CI now passes. No merge was attempted.

@clawsweeper

clawsweeper Bot commented Sep 19, 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR requests initial chat-history scrolling after the native views load, removing the additional layout-event wait.

Example: Open a conversation containing 240 messages.

  • Before: Initial positioning waits for another LayoutUpdated event.
  • After: Initial positioning is requested after both native views load, with a dispatcher handoff.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The useful, focused change retains an actionable request-loss defect, and mixed native results do not establish reliable behavior.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Opening or returning to a populated conversation can leave the latest messages outside the viewport.
Reason: The reported navigation problem has concrete native-fixture evidence and maintainer engagement; the requested narrow lifecycle correction preserves the existing product contract.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this PR addresses a real chat-navigation problem, but still drops a pending initial-scroll request when its target index changes before dispatch.

Priority: P2
Reviewed head: 113416a4fbb6d26bd3db37b065c9c0d905d52aae

Before merge

  • Add real behavior proof - InitialTailPositioner was exercised through the real WinUI app and synthetic Gateway on Windows x64 and ARM64, with positive Release observations, but the maintainer reports failed natural-tail visibility in Debug and earlier Release runs. The latest run used an explicitly identified unpushed integration preserving this patch, and its screenshots remain local. Provide repaired-head visible evidence for repeated history switching and Sessions-page opening, retaining the failed natural-tail checks and showing streamed arrivals preserve a reader's scroll-away position; redact private endpoints and credentials. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Recapture the tail after the initial dispatcher handoff (P2) - The callback retains coordinates captured before dispatch, but UpdateTail schedules a replacement only when the displayed tail key changes. If a first tool row is inserted before the stable-key thinking row, its index can change from 1 to 2 while the request key and tail key remain unchanged. CanExecute rejects the old index, and this unconditional call now silently discards the initial navigation instead of using the base's recovery. Capture the current tail inside the callback after its generation and load checks, retaining final validation and the separate ordinary-follow guards, and cover the unchanged-key index transition behaviorally.
  • Explain or restore the original intent of Recovery after rejecting a stale initial capture - ca8fb4a: The anchoring repair validated queued targets against reconciled state and retried initial positioning after rejection; this PR acknowledges removing that recovery without supplying an equivalent.

Findings

  • [P2] Recapture the tail after the initial dispatcher handoff — src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:187-188

Provenance

  • Recovery after rejecting a stale initial capture changes intended behavior without addressing why it exists (ca8fb4a: The anchoring repair validated queued targets against reconciled state and retried initial positioning after rejection; this PR acknowledges removing that recovery without supplying an equivalent.)

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/ChatTimelinePresentationTests.cs: Replace ReactorTimeline_InitialTailWaitsForLoadWithoutLayoutSubscription's source-string assertions with behavioral coverage: they pin helper spelling and implementation shape while passing despite the lost-request race.
  • Missing end-to-end proof: Retain natural-tail assertions before manual scrolling and supply repaired-head native session-switch evidence; no behavioral test demonstrating this race failing on base and passing after repair is shown.
Agent review details

How this fits together

The Reactor timeline passes session identity and keyed tail-row coordinates to InitialTailPositioner, which coordinates native view readiness and issues row-targeted ItemsView navigation.

flowchart TD
A[Session history and live events] --> B[Reactor timeline rows]
B --> C[InitialTailPositioner]
C --> D[Dispatcher callback]
D --> E[TailNavigationPolicy]
E --> F[Native ItemsView scrolling]
Loading

Technical review

Best possible solution:

Keep InitialTailPositioner as the owner, capture the current tail inside its validated initial dispatcher callback, and preserve ordinary follow and scroll-away guards.

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

The introduced request-loss path is source-reproducible: a same-key tail moving from index 1 to 2 before dispatch fails CanExecute without replacement; supplied native failures were not rerun during this review.

Is this the best way to solve the issue?

Removing the extra layout wait is a focused approach, but the implementation must preserve initial-request delivery when reconciliation changes its coordinates.

Full review comments:

  • [P2] Recapture the tail after the initial dispatcher handoff — src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:187-188
    The callback retains coordinates captured before dispatch, but UpdateTail schedules a replacement only when the displayed tail key changes. If a first tool row is inserted before the stable-key thinking row, its index can change from 1 to 2 while the request key and tail key remain unchanged. CanExecute rejects the old index, and this unconditional call now silently discards the initial navigation instead of using the base's recovery. Capture the current tail inside the callback after its generation and load checks, retaining final validation and the separate ordinary-follow guards, and cover the unchanged-key index transition behaviorally.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b860572cb515.

Provenance checked

  • Initial native readiness and layout wait changes intended behavior with a stated reason (9acafa6: The Reactor migration deliberately waited for the ItemsView, inner ScrollView, and usable layout to preserve initial-history tail positioning.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • ./build.ps1
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~ChatTimelinePresentationTests

What I checked:

Likely related people:

  • Karen: Raw commit ca8fb4a adds src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:217 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ca8fb4a404ad; files: src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs)

Labels

Label changes:

  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: The change concerns initial chat-history positioning and introduces a bounded lost-navigation case without establishing a process outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-21T22:05:34.413Z sha f683edc :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-23T20:57:31.173Z sha 113416a :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-23T21:16:03.287Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when ScrollView appears after ItemsView loads
  • reviewed 2026-09-23T21:38:02.984Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when the ScrollView appears after ItemsView loads
  • reviewed 2026-09-24T05:30:33.874Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when ScrollView appears after ItemsView loads
  • reviewed 2026-09-30T17:46:17.565Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when the inner ScrollView appears after ItemsView loads
  • reviewed 2026-09-30T17:52:06.013Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when the inner ScrollView appears after ItemsView loads
  • reviewed 2026-09-30T18:06:54.405Z sha 113416a :: needs real behavior proof before merge. :: [P2] Retry when the inner ScrollView appears after ItemsView loads | [P2] Recapture the tail after the dispatcher handoff

Reviewed October 20, 2026, 12:55 AM ET / 04:55 UTC (Revision 11).

@karkarl

karkarl commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Global repo triage reviewed exact head f683edcae3b4405316149980b78a28ea5f49291f.

Decision: HOLD_FOR_AUTHOR. Take confidence: 25%. Recommendation confidence: 98%. Risk: High.

I found no separate static defect in the load-only refactor, but current-head native proof is negative, and this head still relies on StartBringItemIntoView, the API #1407 removes for the confirmed anchor crash. The proof reports a blank viewport, E_INVALIDARG, zero completed switches, and process termination. Hosted Build/Test checks are also absent.

Resolve #1407 first, then rebase or redesign this timing change against the selected navigation mechanism. Add ordinary hosted CI and successful windows-winui-interactive plus windows-11-arm64 proof showing final-row visibility, repeated switching, and crash-free behavior.

@dotMorten

Copy link
Copy Markdown
Contributor Author

Clarification: #1407 is unrelated and will be fixed by upgrading to the latest reactor version. This scroll restore issue is separate and caused by relying on LayoutUpdated delays that are unnecessary and have unpredictable timing. It is not clear from history why the LayoutUpdated code was there, but it's typically used as a "hack" to work around timing issues equivalent to using Thread.Sleep to solve threading issues. This PR cleans up the code, and I was not able to observe any regression caused by this, but it resolved the scroll restore so it now consistently scrolls to the bottom.

I tested locally on both x64 and Arm64

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. labels Sep 23, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Thanks for the clarification, Morten. I kept the scroll timing change separate from the older anchor-crash workaround and tested committed dependencies without the compatibility overlay.

Your branch was refreshed with current main by a clean ordinary merge to 113416a4fbb6d26bd3db37b065c9c0d905d52aae. The scroll controller bytes and stable author patch ID are unchanged; no semantic fix or dependency upgrade was added.

There is positive evidence: natural initial tail placement and three A/B history switches passed, and the production-shaped Release run passed both narrow and wide viewport checks. No anchor crash was observed in these bounded runs.

One result needs investigation before merge:

Existing native fixture case PR Debug PR Release Exact fb8b9e7 base control
SessionPickerSwitchesRealHistoriesAndShowsMessage240AtBothWidths Fails the final wide-width marker check Passes Debug passes
PopulatedPagesPreserveSelectionAndPreferencesStayInDisposableProfile Fails “Sessions-page action routes to long chat” Same failure Debug and Release pass

The base controls used the same native test source and committed dependency manifests, once per configuration. The second assertion is a conjunction of the expected picker selection and final-marker viewport bounds. The Gateway successfully returned the requested long history, but the retained diagnostics do not separate the two UI predicates, so I am not claiming this is specifically a routing defect rather than tail positioning or timing.

Reproduction uses the existing scripts\test-gateway-fixture.ps1 with the actual native ARM64 Debug and non-Dev Release app paths. The focused native methods are in GatewayFixtureUiTests; Release has System.Diagnostics.Debugger.IsSupported=false. Full build, Shared (4,093 passed / 35 skipped), Tray (3,070 passed), and 25 focused presentation cases passed.

Could you look at the Sessions-page transition and the dropped/retried initial-tail request lifecycle with this differential? I am holding the merge for this current-head native result, not treating the historical overlay crash as a blocker or asserting a deterministic root cause from one run per case. The fuller commands, identities, and limitations are preserved in the updated PR body.

@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
@dotMorten

Copy link
Copy Markdown
Contributor Author

I still think this clean-up is good to have, but as pointed out, there are still a few cases where scroll restore fails, which is likely the reason for update-layout event handlers this PR removes. This is tracked in microsoft/microsoft-ui-xaml#12085 with a (currently) pending PR: microsoft/microsoft-ui-xaml#12086

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 30, 2026

@shanselman shanselman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holding this for one introduced source defect and separately unresolved native evidence. The September 30 validation details are now in the PR body.

MEDIUM: pending initial-tail positioning can be lost. In ReactorItemsViewScrollController.cs:171-188,247-253, the initial callback retains an index captured before dispatch. If a reconciliation adds a row before the same last-row key (for example, the first tool row before the thinking row), UpdateTail at 130-144 changes the index/count but schedules no replacement because its changed check compares only the key. CanExecute then rejects the captured index and StartTailRequest silently returns. Current main still recaptures through AwaitLayout when that call returns false; this PR removes that recovery. Opus 5.5 and GPT-6 Astra independently flagged this same case, and the control flow was verified.

Please capture the current tail inside the initial dispatcher callback after its generation/load checks, preserving the ordinary _following guards, and add behavioral coverage for an index change with an unchanged tail key before dispatch. No layout subscription, forced-tail loop, or Reactor upgrade is needed for that narrow correction.

This source finding does not diagnose the runtime failure. I normally merged exact main 1b334e36 locally as 2985083; your two-file patch remains byte-identical and Reactor stays preview.12. This integration is unpushed, so live PR head is still 113416a4. On the local integration, full Debug fixture results were 30 integration passed and 4 UI passed/1 failed: SessionPickerSwitchesRealHistoriesAndShowsMessage240AtBothWidths timed out waiting for the natural message-240 tail before manual scrolling. Its inspected capture shows the long session selected, a connected responsive app, and a blank transcript. The synthetic gateway returned the long history successfully. One clean exact-main Debug control of that same case passed 1/1. This is differential negative evidence, not deterministic causal attribution or a demonstrated flake.

Production-shaped non-Dev Release passed 30 integration + 5 UI cases, with inspected final-marker captures at 1500x720 and 1900x950. That positive result does not erase the Debug failure or the earlier 0/86 Release natural-tail observations. No PR fixture retries were used to obtain green.

Full builds passed; final required reruns were Shared 4,169 passed/33 skipped/0 failed and Tray 3,345 passed/0 failed; focused history tests were 28/28. The initial Shared run had one failure in the unchanged MCP dispose test; its one targeted diagnostic and final full rerun passed, without an unrelated code change or a blanket flake claim.

Please keep the narrow source correction separate from diagnosing native positioning, and retain natural-tail checks before manual scroll. Streaming arrivals while a reader is intentionally scrolled up remain unverified by this browse-only fixture. No preview.16 changes, semantic maintainer patch, force push, or merge was made. Owned fixture apps/profiles are cleaned and the desktop lane is released.

@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 30, 2026
@karkarl

karkarl commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Global triage: HOLD_FOR_AUTHOR. Take confidence 20%; recommendation confidence 98%; effort small; risk medium.

Reviewed exact head 113416a4fbb6. GitHub currently reports CLEAN with 36 passing, 0 failing, and 0 pending checks. needs-proof label is present. Durable automated signal: Codex review: needs real behavior proof before merge..

Author: resolve the current durable review findings, add focused regressions, and request a fresh exact-head review.

This is a triage classification, not a merge action. No branch changes were made.

@bkudiess
bkudiess requested a review from karkarl October 20, 2026 17:36
@bkudiess

bkudiess commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

@karkarl I'm reviewing open PRs and would appreciate your take on this one, since you have context on the chat scrolling issues. Could you look into the remaining concerns and what needs to be addressed before merging?

bkudiess added a commit that referenced this pull request Oct 22, 2026
Adapt only the two-file feature delta from PR #1449 (fb8b9e7..113416a), not its merge side. Capture the current tail inside dispatch, position once per request key, and protect visible reader anchors with native behavior cases.

Co-authored-by: Morten Nielsen <[email protected]>

Co-authored-by: Copilot App <[email protected]>
@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 22, 2026
@karkarl

karkarl commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Current-head native proof: HOLD

Tested existing PR #1449 (improve(chat): remove an unnecessary wait when opening chat history), exact standalone head 96dfba0e3059c8d3ef5e87259b9fd71a475257d4, native Windows ARM64, committed Reactor preview.12. No main/#1549 integration, product changes, or dependency overlay was used.

The authorized same-key/index-shift source correction remains validated by the required build/unit tests and both final requested-model reviews. It does not resolve the native acceptance failures below.

Lane Integration Native UI Result
Debug initial pass 30 passed, 0 skipped 2 passed, 2 failed, 0 skipped Picker timed out at natural tail at message 240, before manual scrolling. Pages case was interrupted at configuration screenshot because winapp was missing from inherited PATH.
Release, production-shaped 30 passed, 0 skipped 3 passed, 1 failed, 0 skipped Delayed-history case timed out at cached delayed history when actually selected. Picker, Pages and empty-session cases passed.
Debug Pages-only tooling-corrected attempt Not rerun Incomplete; no TRX/completed result Retained run.json records Sessions-page action routes to long chat timeout. Inspected failure image shows the selected long history at messages 1-3, not the tail. The runner remained active across overnight interruption and was explicitly stopped; this is not a completed pass.

The product-failing picker and delayed-history cases were not retried for green. Only the Pages case whose first failure was capture infrastructure was attempted once after supplying the existing isolated WinAppCLI 0.7.1 and PowerShell 7.6.8. Both its earlier infrastructure failure and incomplete later attempt are retained.

Observed native behavior

  • Debug picker failure run: 116185234f0d46b197cb3ecf2c4f6422. Long-history chat.history returned ok; app reported appResponding=true. No failure PNG was available in that first attempt because screenshot tooling was missing.
  • Release delayed-history failure run: 4ec103165ddd45a097c395df785a7b61. Inspected PNG shows a connected app and selected long-history session with a blank transcript. Requested long/other histories returned ok; app remained responsive.
  • Release picker run: 91c48eac027c421aa3da434cf1213a7e. Three A/B switches passed natural-tail checks before manual scrolling. Subsequent explicit-scroll width checks passed at physical windows 1000x720 and 1400x950. Both inspected PNGs show the actual FIXTURE LONG FINAL MESSAGE 240 and FIXTURE LONG END 240, not merely a nearby row.
  • Corrected Debug Pages attempt: c79686c63c7b441fb84d929495d3d551. Configuration capture succeeded, then the retained timeout/PNG showed wrong tail placement. No finished test-run result is inferred from its diagnostic report.

All are synthetic fixture histories. No real conversations, provider account, node command execution, or real-Gateway pairing were used. No retained crash.log was found for these runs, but bounded fixture non-crash observations are not proof the reporter's crash is fixed.

Commands and artifacts

The session artifact root below is abbreviated as <session-files>. OPENCLAW_REPO_ROOT selected this worktree. UI opt-in, explicit app path, screenshots, and isolated fixture artifact root were set before launching tests.

Debug integration:

dotnet test .\tests\OpenClaw.Tray.IntegrationTests\OpenClaw.Tray.IntegrationTests.csproj -c Debug -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false --filter 'FullyQualifiedName~GatewayFixtureProfileTests|FullyQualifiedName~GatewayFixtureRunTests|FullyQualifiedName~GatewayFixtureAppTests' --results-directory '<session-files>\pr1449-head-debug\trx' --logger 'trx;LogFileName=fixture-profile-app.trx' --verbosity quiet

Debug UI used the same configuration/RID/platform/DevBuild/results arguments with project .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj, filter FullyQualifiedName~GatewayFixtureUiTests, and logger trx;LogFileName=fixture-ui.trx. The Pages-only corrected attempt used filter FullyQualifiedName=OpenClaw.Tray.UITests.GatewayFixtureUiTests.PopulatedPagesPreserveSelectionAndPreferencesStayInDisposableProfile and artifact group pr1449-head-debug-pages-capture-corrected. It produced no TRX.

Release build and fixture (the fixture script was invoked through the supplied native PowerShell 7.6.8, with WinAppCLI on process PATH and WINAPP_CLI_TELEMETRY_OPTOUT=1):

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 -Project WinUI -Configuration Release
.\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Release\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -Configuration Release -ArtifactsDirectory '<session-files>\pr1449-head-release' -Screenshots

Release build passed. The fixture command failed on the reported native UI case; its integration suite passed. Reports are in pr1449-head-release\55da49890b194f7aaa6c0aee80736bc1. Release runtime configuration has System.Diagnostics.Debugger.IsSupported=false; no DevBuild/debugger was used.

Artifact SHA256
Standalone Debug app DLL 7C5BA47B67CA91298C475E5DD4F2BDB5187F4852C9FCA63466314A0DDD1EC81B
Standalone Release app DLL CA9220CBB34BB4CF05FDD6CD8644F5093224306FD931D9E5B11D1EF7606A73DD
Scroll controller source A97137832F45100A9768C7F9EA413E9E9C4A416E707888997470A53BEDF43550

Original completed Debug/Release fixture app PIDs were absent and their synthetic profiles removed. The overdue Pages-only process tree was explicitly stopped; recorded app PID 35220 was absent, and its inspected exact task-owned temp root was removed. No unrelated process was stopped. Desktop released to #1549.

Hosted CI: separate blocker, bounded attribution

Build and Test run 39851922781 failed. The UI job failed LocalAiHardwareProfileTests.Onboarding_OffersOnlyFittingProfiles(vramGiB:0, theme:Light) with TaskCanceledException in OnboardingNativeProof.AssertLabelsAsync.

The job checked out merge a890e64f28aed63b861d40d55d3d687838876c6a, merging this head into then-main bef07da01911fa78ed5ab728ab9248bbb1ec0466. Both failing onboarding proof files are byte-unchanged against that main. The failing helper invokes Windows OCR RecognizeAsync with a 3-second cancellation token at line 723; the test constructs onboarding/Local AI UI, not the chat timeline. This is evidence for unrelated onboarding/OCR timing, not proof of a flake, and does not make CI green. No broad fix, CI rerun, or override was performed.

CodeQL run 39851922753 concluded success at its setup gate, but C# and Actions analysis jobs were skipped. No passed security analysis is claimed.

Remaining gates and upstream context

The static browse fixture does not exercise active-turn/tool-arrival timing or streaming reader non-stealing. Real-Gateway/reporter reproduction, stable final-tail behavior in both configurations, and exact combined-tree validation remain outstanding. Earlier September negative proof remains relevant and is not overwritten by passing adjacent cases.

Upstream microsoft/microsoft-ui-xaml#12085 and microsoft/microsoft-ui-xaml#12086 are OPEN; the latter is unmerged. The proposed fix describes stale compositor InteractionTracker min/max limits clamping nonanimated bring-into-view to offset 0 after collection reset. This is a plausible pending dependency, not established root cause for these runs. No WinUI upgrade or workaround is added here.

Next validation surface is an isolated combined tree of actual current main, final #1549, and this authorized #1449 commit, after #1549's next desktop pass. It will not be pushed into either contributor branch. No merge is authorized.

Attached images, in order: incomplete Debug Pages diagnostic failure, Release delayed-history failure, and the passing Release wide final-message view. These are fixture-only captures, not acceptance claims.

Incomplete Debug Pages attempt: selected long history shows first messages rather than final message240

Release delayed-history timeout: connected selected long session has blank transcript

Release picker passing wide view: actual final message240 and END240 visible

Isolated combined candidate: build-blocked, not native acceptance

The standalone results above remain unchanged. A separate, unpushed proof worktree composed these complete constituents cleanly without conflict resolution:

Constituent Exact revision
Current main fb45902950fd4f62d20a37dbbafac27e916917f2
Published #1549 (fix(chat): adopt Reactor preview.16 session-switch crash workaround) e28a044e8dc46e69c958c7dd5514c4b5465ee5b9
Complete #1449 (improve(chat): remove an unnecessary wait when opening chat history) 96dfba0e3059c8d3ef5e87259b9fd71a475257d4
Proof-only integration commit aeec4ba90e78937d5c99821faf805e37f02f330d
Proof-only tree e9a8abb13b8d326c6eeb5e4c9111282448194043

This includes main's localized bundled welcome commit ef05d53a77392ac798676dc32774d087b8f74029; it is not the older CI merge or either standalone PR head.

Required full build failed, exit 1, with preview.16 REACTOR_POOL_001 diagnostics for attached properties on pooled controls:

  • ReactorChatWelcome.cs:106: AutomationProperties.HelpText and ToolTipService.ToolTip.
  • ReactorChatTimeline.cs:418: AutomationProperties.ItemStatus.
  • ReactorChatComposer.cs:428: AutomationProperties.ItemStatus.

The compiler reported five diagnostics, including a duplicate HelpText diagnostic. No source repair or analyzer suppression was applied in the proof worktree, and no combined native app/UI pass is claimed from this failed build. Remaining unit/Release compile evidence is being retained.

The coordinator assigned narrowly coupled supported-property/pooling/automation repair to the existing #1549 owner, not this PR. A corrected hash and revalidated composition are pending in the same proof worktree. The first candidate failure will not be erased or retried with hidden suppression. Desktop order remains the corrected upgrade's standalone pass, then the sole combined-proof session with finite process-tree watchdogs.

This PR's branch/head remains unchanged at 96dfba0e. No integration was pushed into either contributor branch, no replacement PR was created, and no PR was merged. Readiness remains HOLD.

First candidate required validation closeout

These are results for the failed aeec4ba9 combined tree only, not replacement results for standalone 96dfba0e and not acceptance of a future corrected upgrade:

Exact command Exit Result
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 1 Shared, CLI, WinNode CLI and SetupEngine built; WinUI failed on the five REACTOR_POOL_001 diagnostics above.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 -Project WinUI -Configuration Release 1 WinUI failed on the same five diagnostics.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --results-directory '<proof-files>\required-results' --logger 'trx;LogFileName=shared-restored.trx' 1 4,642 passed, 1 failed, 26 skipped, 4,669 total.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --results-directory '<proof-files>\required-results' --logger 'trx;LogFileName=tray-restored.trx' 1 4,467 passed, 4 failed, 4,471 total.

<proof-files> is the isolated proof session's artifact directory. OPENCLAW_REPO_ROOT selected its worktree; Shared/Tray had separate isolated settings directories and Shared integration/GPU opt-ins were unset. Initial required --no-restore invocations each exited 1 with NETSDK1004 and no tests executed. The restore-enabled commands above resolved that observed missing-assets prerequisite and actually ran tests. Product-failing tests were not retried for green.

The Shared failure is MxcFolderAdmissionTests.OwnedJunctionAndSymbolicLinkAreRejectedWithoutFollowingTheirChildren(symbolic: True): Directory.CreateSymbolicLink throws A required privilege is not held by the client at line 230. No host privilege/developer-mode change was made.

The four Tray failures are the BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver cases: subprocesses reported ARM64/all prerequisites met instead of the expected VC runtime diagnostics, despite the test setting PROCESSOR_ARCHITECTURE=AMD64. This is bounded host/test-path attribution, not a proven root cause or authorization for unrelated fixes.

Bounded setter provenance confirms these are existing-main/preview.16 upgrade interactions, not setters introduced by the narrow #1449 patch. Welcome HelpText/ToolTip writes originate in 61979d6170a0bd3351e21ca5053d6fca5be959c6 (welcome/recent-chat work, before ef05d53 localization); Timeline ItemStatus in 820cffe89; Composer ItemStatus in c1d8953cf. The analyzer explicitly requests tracked .HelpText(...), .ToolTip(...), and .ItemStatus(...) modifiers rather than untracked .Set(...) writes. This proof session did not modify them.

Resolved app assets SHA256: CEE347202F2F93D2FFA93D361E5A7ECEADBA46FBFA620B9F2E4823B721BF6FDB, both Reactor packages preview.16, native ARM64/.NET SDK 10.0.402. No successful combined Debug/Release app binary, app hash, native run, image, profile or desktop acquisition exists for this candidate. No native watchdog timeout occurred because native launch was never reached.

The failed commit/tree and full compiler logs/TRX are retained in the isolated proof session. Its next candidate awaits the upgrade owner's corrected hash; both this build failure and the standalone negative proof above remain part of the landing record.

Corrected upgrade interaction candidate: validation in progress

The upgrade owner supplied corrected local #1549 revision 31fff448d11131f28a7842e6f04534fcadbd087a. It composed cleanly in the same isolated proof worktree with refreshed main (still fb45902950fd4f62d20a37dbbafac27e916917f2) and complete #1449 96dfba0e3059c8d3ef5e87259b9fd71a475257d4.

  • Proof-only integration commit: 583ce764d2f556ff1f7a775e334caaef347aec16.
  • Proof-only tree: 135449b2653a43ba1c167d5f87cd5cbf648db649.
  • Full Debug build and production-shaped Release WinUI build: passed.
  • Required actual Shared run: 4,641 passed, 2 failed, 26 skipped. Failures retain the symlink privilege issue plus a WebSocket retry-generation assertion (expected 1, actual 2).
  • Required actual Tray run: 4,467 passed, 4 failed, the same ARM64 prerequisite resolver cases.

No failed product case was retried for green and no unrelated test/product repair was made in the proof tree. These are corrected-candidate results, not an erasure of the first candidate's failures and not changes to the existing #1449 branch.

Native Debug/Release proof is still pending the upgrade owner's corrected standalone pass and explicit desktop handover to the single combined-proof session. Its passes require independent finite wall-clock process-tree watchdogs. No combined UI, crash, active-turn/streaming or real-Gateway acceptance is claimed.

@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 23, 2026
@karkarl

karkarl commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Final combined-tree result: HOLD

The completed native interaction proof is negative. It is separate from the standalone #1449 results and does not erase them.

Constituent Exact revision
Main fb45902950fd4f62d20a37dbbafac27e916917f2
Published #1549 (fix(chat): adopt Reactor preview.16 session-switch crash workaround) 31fff448d11131f28a7842e6f04534fcadbd087a
Complete #1449 (improve(chat): remove an unnecessary wait when opening chat history) 96dfba0e3059c8d3ef5e87259b9fd71a475257d4
Unpushed proof integration commit 583ce764d2f556ff1f7a775e334caaef347aec16
Proof tree 135449b2653a43ba1c167d5f87cd5cbf648db649

Both native passes completed with final TRX before independent 600-second wall-clock watchdog deadlines. Neither was retried for green.

This is a distinct combined-tree report, not the earlier standalone #1449 proof. Both contributor heads and main were reverified after publication.

Configuration Integration UI Negative observations
Debug 32 passed 29 passed, 3 failed Fractional-voice natural-tail timeout; two Composer New cases fail with projects.list METHOD_NOT_FOUND.
Release 32 passed 28 passed, 4 failed Same three failures; repeated-switch smoke additionally fails Chat timeline is not mounted on its first ScrollToAsync(0%), line 23, zero completed cycles.

Sidebar natural-tail/narrow-wide, delayed-history and Pages cases passed in both configurations. Those adjacent passes do not override the remaining native failures or establish that the original smaller-window clipping or real-Gateway crash is fixed.

Exact commands, watchdog receipts and artifact identity

The proof worktree was C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-sturdy-meme. <proof-files> denotes C:\Users\biilai\.copilot\session-state\02a04046-c657-4025-bc50-1945e2d25c3f\files. These local paths identify retained artifacts, not public download links.

Each native command used native PowerShell 7.6.8 with -NoProfile -File, invoking:

.\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -Configuration Debug -ArtifactsDirectory '<proof-files>\583ce764-fixture-debug' -Screenshots
.\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Release\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -Configuration Release -ArtifactsDirectory '<proof-files>\583ce764-fixture-release' -Screenshots

The session-local wrapper used no-console .NET ProcessStartInfo, asynchronously redirected streams, independent 600-second wall-clock deadlines and owned-root Kill(entireProcessTree: true) on expiry only. WinAppCLI 0.7.1 was on child PATH with telemetry opt-out; captures used the existing owned-HWND PrintWindow helper. No tool install, real settings or real conversation data was used.

Lane Owned launcher PID Start/end UTC Elapsed Watchdog Script exit
Debug 39484 17:30:55.798 / 17:37:09.294 373.4960767 seconds timedOut=false, deadline 17:40:55.798 1
Release 54016 17:37:22.612 / 17:43:12.361 349.7488833 seconds timedOut=false, deadline 17:47:22.612 1

The watchdog kill branch was not needed. Both suites have final TRX and zero skips, unlike the earlier interrupted standalone Pages attempt. Exact native TRX paths relative to <proof-files>:

583ce764-fixture-debug\6f733eff58f7482586c1712b3a19fb0e\fixture-profile-app.trx
583ce764-fixture-debug\6f733eff58f7482586c1712b3a19fb0e\fixture-ui.trx
583ce764-fixture-release\7a63bc5ac5804e9eb7d8fc4f5c2a9826\fixture-profile-app.trx
583ce764-fixture-release\7a63bc5ac5804e9eb7d8fc4f5c2a9826\fixture-ui.trx
Binary SHA256
Apphost EXE, both configurations 2CB69FE0789614DEF3DD15311CB62F09F5B258D077DC0381901334861CAB8307
Debug managed DLL FB9550B3C3E65B166C7B639F2B1ADEC7FA16FDCEB321459F3199693E76C953CE
Release managed DLL D4CE223135AFB9363D50DC15FEA55B694216D06A6C36F83FDE920954F3721B12

The EXE hashes identify apphost stubs, not identical managed builds. Per-run reports agree with their configuration's distinct DLL hash and source identity 583ce764. Reactor and Advanced resolve to preview.16; native ARM64, .NET SDK 10.0.402. Reactor.DevtoolsSupport=false. Full stdout/stderr, outcome receipts, case inventories, TRX, window observations and a 721-file SHA256 evidence manifest are retained in the proof session.

Executed coverage and inspected captures

  • Both configurations passed three A/B natural-tail cycles before any manual scroll. The subsequent narrow/wide captures are explicitly scrolled final-row states, not images of the earlier natural-tail moments.
  • Delayed A history released while B remained selected, render acknowledgement, then selecting cached A with natural tail: passed both.
  • Pages navigation and Sessions-page Open in chat: completed and passed both. This does not retroactively complete the interrupted standalone attempt.
  • Debug responsiveness smoke completed 12 logged cycles and its alternate-session image was inspected. Release completed zero cycles, failing its first 0% scroll with InvalidOperationException: Chat timeline is not mounted. The failure image nevertheless shows message 240 at capture time; it does not erase the earlier exception or establish persistent mount state/root cause.
  • Fractional stored voice-history case failed both: inspected images show early messages 01-07 rather than the final reply. No microphone or real voice/Gateway proof is claimed.
  • Both Composer New failures occur at the shared wrapper's unexpected-request assertion for projects.list METHOD_NOT_FOUND. These remain failures, not silently excused fixture passes.

Eight active-state PNGs were visually inspected by the proof session. The four final-240 images show full FIXTURE LONG END 240, assistant footer and composer without marker overlap at actual physical 1400x980 and 1800x980, in both configurations. Same-owned-PID/HWND independent samples reported 168 DPI (175%); DPI was not embedded/synchronously sampled in every PNG. These are not the historical 720-high clipped geometry, so no clipping-resolution claim is made.

The four attached captures are ordered: Debug voice-tail failure, Release voice-tail failure, Release stress failure, and passing Debug wide final-row state. Their source identities:

Capture Run SHA256
Debug voice failure 26dc95ecabad45899c09010041857900 D5E6DA1DC4BEEDBCD28461E23A233191513F1A2C3F6FF99A0828418F8C340E87
Release voice failure e0ade13832a14612a178ecce107cba79 0C9D6EC892F8D02771317959567EC4DF3D826B45E65E962E4E46DF3313169792
Release stress failure 0d7933f1f0a74ff687be7b4365ca9570 F13CEA340E4B01ED8F9A3C718E13D67D83ECBFD4945BA9F0B64AEC76D511F014
Debug wide final row e9599c63e924479a8b0bfb365f9bd638 3E26016C16AA914EF3C3DCDCC7611D25848D4EC80D919AA19153E91A96EC2872

Required full Debug and production-shaped Release WinUI builds passed on this corrected candidate. Shared tests retained 4,641 passed, 2 failed, 26 skipped (symlink privilege plus WebSocket retry-generation assertion); Tray retained 4,467 passed, 4 failed (ARM64 prerequisite resolver cases). These failures were not repaired or retried as part of this validation-only work.

Exact command, isolated proof worktree/settings Exit/result
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 0, all five Debug projects passed
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 -Project WinUI -Configuration Release 0, Shared/WinUI Release passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --results-directory '<proof-files>\candidate2-results' --logger 'trx;LogFileName=shared.trx' 1, 4,641 passed/2 failed/26 skipped, 4,669 total
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --results-directory '<proof-files>\candidate2-results' --logger 'trx;LogFileName=tray.trx' 1, 4,467 passed/4 failed, 4,471 total

Shared ConnectAsync_TimedOutRetry_DoesNotDisposeNewerConnectionDuringBackoff expected 1, actual 2 at line 535; bounded diff shows neither its test nor WebSocketClientBase changed from the pinned main. No baseline runtime or definitive flake attribution is claimed. The symlink failure is a host privilege error; the four Tray subprocess cases observe ARM64 rather than their expected runtime diagnostic. Initial first-candidate missing-assets failures and restore-enabled actual runs are preserved in the earlier evidence, not misreported as no-op success.

The first combined candidate aeec4ba90e78937d5c99821faf805e37f02f330d, tree e9a8abb13b8d326c6eeb5e4c9111282448194043, failed both builds on preview.16 pooling diagnostics. That negative evidence remains preserved. The #1549 owner made the narrowly coupled compatibility correction on its existing branch; no repair or analyzer suppression was applied to this proof tree and no #1449 change was added.

Cleanup verified zero recorded owned app/fixture PID-and-start-time matches, zero fixture profile directories, and no live process at the task-owned app path. The sole proof child explicitly released the desktop after both passes. No unrelated process was stopped.

No integration was pushed into either contributor branch. Existing #1449 remains open at 96dfba0e; no replacement PR or merge was performed. The conditional landing order remains #1549 first only after its own gates, followed by exact resulting-main validation of #1449. Neither PR is ready on the present evidence.

Remaining limitations include real-Gateway/reporter reproduction, active-turn/tool-arrival streaming and reader non-stealing, stable final-tail behavior across configurations and bounds, existing CI failure, and skipped CodeQL analysis. Pending upstream microsoft/microsoft-ui-xaml#12086 is plausible context only, not root-cause proof.

Hosted #1449 CI remains separate exact merge a890e64f28aed63b861d40d55d3d687838876c6a against bef07da01911fa78ed5ab728ab9248bbb1ec0466, not this combined candidate. Its unchanged onboarding OCR cancellation failure is bounded unrelated-path attribution, not green CI or a proven flake. CodeQL analyses were skipped, not passed. Source-review cleanliness and fixture non-crash do not prove crash resolution.

Combined583ce764 Debug voice-history failure: early messages01to07 instead of final reply

Combined583ce764 Release voice-history failure: early messages instead of final reply

Combined583ce764 Release stress failure capture shows240 after earlier timeline mount exception; zero completed cycles

Combined583ce764 passing explicitly scrolled final240 at1800x980; not historical short-window proof

@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 23, 2026
dotMorten and others added 2 commits October 23, 2026 14:15
Resolve the current tail after the initial dispatcher handoff while retaining the originating generation and ordinary follow guards. Cover same-key index shifts, stale generations, and empty tails.

Co-authored-by: Copilot App <[email protected]>
@karkarl
karkarl force-pushed the user/dotmorten/scroll_fix branch from 96dfba0 to ca3dac7 Compare October 23, 2026 18:26
Run startup cleanup checks in the existing nonparallel fixture collection so concurrent tests cannot reclaim released ephemeral ports before rebind assertions.

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

karkarl commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Rebase and CI repair complete; runtime HOLD retained

User-directed rebase preserved both original patches without content changes (git range-diff equal), onto main fb45902950fd4f62d20a37dbbafac27e916917f2. Rebased head was ca3dac736aa838a8479ff13c74fe281416f67230. Final published contributor-branch head is 3dc43d1bcd59938dd1f16876e6f5863cefc0d6dd; hosted merge checkout is c9169dbfc761d0664a891e905619bc4d2d3e235c. Existing PR/fork retained. No merge, Reactor upgrade or #1549 integration.

The previous onboarding OCR lane failure is resolved by existing current-main workflow isolation of NativeOnboardingProof, without relaxing OCR assertions or increasing timeouts. Fresh rebased CI 40003273854 passed the UI lane but exposed GatewayFixtureStartupTests.BrowserControlStartup_TransfersLiveResources(foreign: true) failing the immediate post-disposal port-rebind assertion at line 60. Child exit had already been confirmed; the unreserved ephemeral port could be reclaimed by concurrent fixture allocation. Commit 3dc43d1b puts startup tests into the existing DisableParallelization fixture collection. All occupied-port, child-exit, readiness-file removal, cancellation/failure cleanup and released-port rebind assertions remain. No retries, sleeps, assertion removal, production changes or CI filtering were added by this fix.

Exact final-head hosted result

Build and Test 40006500973: SUCCESS, including CI Gate. This was the first run of the committed fix, not a rerun of the failed candidate.

Hosted lane Actual result
Tray 4,471 passed
Tray integration (OPENCLAW_RUN_INTEGRATION=1) 55 passed, 3 skipped; previously failing foreign cleanup case passed
SetupEngine 2,436 passed, 1 skipped
Dev containment settings 31 passed
Functional UI 19 passed
Tray UI 511 passed, 33 skipped
Accessibility 23 passed
Local AI hardware-profile capture 12 passed
Fast validation / proof-pool contracts / CI Gate Passed

Core/CLI, WSL E2E, release and package jobs were skipped by the existing path/event classifier, not passed. CodeQL 40006500904 passed its setup gate; Actions and C# analyses were skipped. No security-scan pass is claimed.

Local exact-head validation

Native Windows ARM64. OPENCLAW_REPO_ROOT selected this worktree; Shared and Tray each used a separate session-owned OPENCLAW_TRAY_DATA_DIR. Tests executed, not fresh-worktree no-ops.

Command Result
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 Passed. Process-only policy bypass, no persistent policy change.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet 4,642 passed, 1 failed, 26 skipped. Existing symbolic-link privilege failure at MxcFolderAdmissionTests.cs:230; no privileged host changes made.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet 4,467 passed, 4 failed. Existing BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver subprocess fixtures observe host ARM64 rather than their synthetic x64 inputs. Hosted x64 Tray suite passes all 4,471.
`dotnet test .\tests\OpenClaw.Tray.IntegrationTests\OpenClaw.Tray.IntegrationTests.csproj --no-restore --filter 'FullyQualifiedName~GatewayFixtureStartupTests FullyQualifiedName~GatewayFixtureRunTests
git diff HEAD~1..HEAD --check Passed; worktree clean.

Rebase compatibility rubber-duck review found no blocking source issues; the final narrow collection-only fix retains all behavioral assertions. Canonical autoreview installation remains unavailable on this host; no helper success is claimed.

Runtime and landing status, unchanged

Green selected hosted CI is not current-head crash/scroll acceptance. The standalone 96dfba0e negative report and distinct combined 583ce764 negative report remain valid historical negatives. Neither validates the rebased final head.

Combined 583ce764 included main fb459029, #1549 31fff448 and complete pre-rebase #1449 96dfba0e: integration 32/32 each configuration, native UI Debug 29 passed/3 failed and Release 28 passed/4 failed. Fractional voice natural-tail and two projects.list METHOD_NOT_FOUND failures remained both configurations. Release stress failed before any completed cycle with Chat timeline is not mounted; Debug passed 12 cycles. Historical clipped smaller-window evidence is not erased by later larger-window captures.

No new desktop run was requested or performed for this test-harness fix. Real-Gateway/reporter crash proof, active-turn/reader non-stealing proof and final-head standalone/interaction acceptance remain unverified. #1549 remains separate and must satisfy its own gates before its recommended landing order can be accepted. PR stays OPEN / runtime HOLD; no merge authorization inferred.

@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 23, 2026
@RomneyDa

Copy link
Copy Markdown
Member

Current-head native proof: HOLD remains

Head 3dc43d1bcd59938dd1f16876e6f5863cefc0d6dd, Windows 11 ARM64, .NET 10.0.402, Debug, synthetic isolated Gateway/profile. No source edits or installed/shared Gateway changes.

Check Result
./build.ps1 -Configuration Debug Passed (89.58 seconds)
Fixture profile/run/app integration selection 32 passed, 0 failed/skipped
Four selected native chat cases 2 passed, 2 failed, 0 skipped
Loaded app binary identity Explicit current-build path; recorded app/Reactor/XAML hashes unchanged after the run
Cleanup Zero task-owned app processes before removing only this attempt's generated build outputs; source and proof retained

Failures:

  • HistoricalFractionalVoiceConversationRendersWithoutLoadingPlaceholder: timed out waiting for the final voice reply. The inspected capture shows messages 01–06, not the final reply.
  • SidebarSwitchesRealHistoriesAndShowsMessage240AtBothWidths: timed out waiting for natural tail at message 240, before the explicit-scroll/both-width assertions. The inspected capture shows the selected conversation with a blank transcript.

LateHistoryForPreviousSessionCannotReplaceSelectedTranscript and PopulatedPagesPreserveSelectionAndPreferencesStayInDisposableProfile passed. These do not erase the two failures or establish a fix for the sustained native hang.

The first build attempt failed before product proof because the disposable checkout lacked GitVersion branch metadata. That failure is retained separately; adding local branch metadata left source HEAD unchanged and allowed the recorded build to run. No test assertion or timeout was weakened.

This is standalone current-head Debug proof, not Release, combined #1549 interaction, active-turn/reader non-stealing, or reporter/real-Gateway proof. Existing historical negatives remain valid. Full Shared/Tray suites were not rerun for this source-unchanged proof attempt; their existing receipts remain separate. No merge requested.

Current-head fractional voice history remains at early messages

Current-head 240-message selection has blank transcript at natural-tail timeout

karkarl and others added 2 commits November 2, 2026 14:33
…quests

Merge main 2ff4d16 into the existing contributor branch. Keep the Reactor preview.16 and WinAppSDK 2.6.4 layout, render, reflow and input gates. Resolve current tail coordinates after dispatch instead of capturing them before the dispatcher handoff. The prior load-only navigation is intentionally not restored over the landed crash and reflow fixes.

Co-authored-by: Copilot App <[email protected]>
Use one valid test reference and guard type per ledger row, preserving the existing follow-admission row and recording live-coordinate dispatch independently.

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

karkarl commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Test results and review verdict

Reviewed production head: 325c81af26d67d5189fc2c8319c8b9346c6b39da. Base: 2ff4d168588d0b94932f81f92411723407cffdfd.

Verdict: approving the scoped change. Source review, green hosted CI, and the targeted native runs provide high engineering confidence (approximately 90-95%, a judgment rather than a measured reliability guarantee). The original crash/blank-transcript scenario did not reproduce in either Debug or Release. The earlier missing targeted-runtime-proof concern is now addressed for the bounded scenarios below, not every possible native scrolling failure.

The branch already includes current main's Reactor/Advanced 0.1.0-preview.16, Windows App SDK 2.6.4, and layout/render/reflow/input fixes. Conflict resolution preserves those fixes and resolves live initial/reflow tail coordinates inside dispatch rather than restoring load-only navigation.

Native ARM64 fixture results

Scenario Debug Non-Dev Release
Repeated long/short session switching, visible transcripts, native scrolling and app survival 64/64 cycles passed, 119.343s 64/64 cycles passed, 85.829s
Natural initial tail at message 240 before explicit scrolling, three selection cycles Passed Passed
Final-message visibility after scrolling at two window widths Passed Passed
Historical fractional voice final and restored selection Passed Passed
Delayed history cannot replace the selected transcript Passed Passed
Back/forward transcript, selection and draft restoration Passed Passed
Page navigation and return to chat Passed Passed
Fixture integration selection 34 passed, 0 failed/skipped 34 passed, 0 failed/skipped
Full fixture UI category, first corrected attempt 43 passed, 1 failed, 0 skipped 43 passed, 1 failed, 0 skipped

The existing repeated-switch test was locally strengthened from 12 to 64 cycles to exceed the historical selection-15 counterexample. That test-only extension is uncommitted/unpushed, not part of the reviewed PR head. Production source remained unchanged. The existing assertions and 150-second scenario deadline were retained. The stress test verifies visible long/short histories and responsiveness, not natural-tail placement on all 64 cycles; the separate natural-tail test covers that contract.

Both corrected configurations produced final TRX without external deadline timeouts. Their first failures remain recorded:

  • Debug reconnect/send: ReconnectKeepsDefinitelyUnsentQueuedMessageFailedAndVisible failed with fixture MCP app.chat.send: Request canceled. It was not rerun or fixed.
  • Release cron editor: CronEditor_NewJobOtherJobAndScheduleKindDoNotInheritPreservedZone failed with missing CronEdit:absent. The requested single-test replay on the same binaries passed: 1 executed, 1 passed, 0 failed/skipped, 33s. That replay does not establish a root cause or fix.
  • Eight native screenshots were inspected. Final message 240 and the voice final are visible; the post-stress captures show the correct alternate research transcript. The Debug wide screenshot partially clips the assistant footer above the composer. Universal unclipped-footer/short-window behavior is not established.

These remaining observations are disclosed separately from approval of the scoped tail-dispatch change. The complete native fixture category is not being relabeled all-green.

Commands and validation

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --verbosity quiet
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --verbosity quiet

Full build passed. Shared: 4,810 passed, 24 skipped, 0 failed. Tray: 4,788 passed, 0 skipped/failed. Focused chat presentation/Markdown tests: 48 passed.

The native UI command was run once for each corrected configuration, with explicit fixture app/artifact paths and isolated child-process environment:

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c <Debug-or-Release> -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false -p:RequireSignedCleanupHost=false --no-build --no-restore --filter 'Category=GatewayFixture' --results-directory <owned-artifacts> --logger 'trx;LogFileName=ui.trx'

Integration used the matching configuration and filter:

FullyQualifiedName~GatewayFixtureProfileTests|FullyQualifiedName~GatewayFixtureRunTests|FullyQualifiedName~GatewayFixtureAppTests

The Release cron replay used the same native command with:

FullyQualifiedName=OpenClaw.Tray.UITests.GatewayFixtureUiTests.CronEditor_NewJobOtherJobAndScheduleKindDoNotInheritPreservedZone

Release builds explicitly allowed an unsigned cleanup host for local proof with -p:RequireSignedCleanupHost=false; this is not signed release-publication proof. No installation, Gateway registration or provider access occurred.

Exact-head hosted Build/Test and CI Gate passed, including tray/setup/integration and UI/functional/accessibility jobs. CodeQL setup passed, but its analyses were skipped, not completed security-scan proof.

Review and evidence limits

Actual independent reviewers: claude-opus-5.5 (high/default context) and gpt-6-astra (high/long context), identical final-head evidence. Neither found an introduced CRITICAL/HIGH/MEDIUM defect. Inherited LOW ordinary-follow stale-index and reload-tail concerns remain outside this patch. The existing title no longer accurately describes removal of the layout wait; this comment describes the actual resolved behavior.

Corrected app paths used bin\ARM64\<configuration>, with source-head/dependency guards, full pre-run file hashes, actual loaded native-module identities and post-run verification: 1,224 files unchanged. Debug app DLL SHA256: 45C6B29DA3AE60FE08845577839BEFAA8A9340687EBE0547BC423E1992459E29; Release: BDA34C631564A474DAC544A2F8D804B1D23D3A9073EFF9E117F8B81A01ACD52C.

Actual loaded XAML DLL SHA256 remains 5C804D099779B46FEB4348817F1A2D9AB71D898F3D41B117B98F7EADC104A76F with source stamp ac3d7a70. This is not a patched-versus-unpatched native DLL comparison, and the passing results cannot be attributed solely to the 2.6.4 package version.

An earlier session-only run accidentally selected stale Release 96dfba0e output. Its startup failures/interruption are preserved but excluded from current-head proof; the corrected run used verified current binaries. No earlier negative was silently erased.

TRX, exact argument/process receipts, screenshots, full binary inventory, loaded-module receipts and cleanup audits are retained in the session evidence package. They are local retained artifacts, not public downloadable GitHub artifacts. Cleanup verified zero matching task app/fixture PID+start identities and zero remaining disposable profiles, including the cron replay.

Approval is not merge authorization, a guarantee against all native UI bugs, or acceptance of the outstanding reconnect/visual observations as fixed.

@karkarl karkarl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the scoped tail-dispatch change at 325c81a. Dual-model source review found no introduced serious defect; CI passed, and native Debug/Release each completed 64/64 session-switch cycles without the original crash or blank transcript. Test results and the remaining reconnect/visual observations are documented in #1449 (comment). The strengthened 64-cycle test remains local and uncommitted. This approval does not claim the entire fixture suite is green or authorize merging.

@karkarl
karkarl merged commit 6e835ec into openclaw:main Nov 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants