Repository navigation
fix(tests): stop the panel tab overflow proof racing the native selected-tab scroll - #2423
Conversation
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThe PR selects the first panel tab before testing overflow and verifies arrow scrolling by observing that tab’s left edge. Example: Five tabs overflow a 280-DIP panel.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused test reliability repair that is absent from main; no definite introduced code defect was established. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe in-process WinUI test mounts ReactorConversationPanelHost, supplies five panel tabs, invokes the native TabView overflow arrow, and checks rendered geometry and retained panel state. flowchart LR
A[Test panel state] --> B[ReactorConversationPanelHost]
B --> C[Native TabView]
C --> D[Selection and overflow arrow]
D --> E[Rendered geometry assertions]
Technical reviewBest possible solution: Keep the repair within the existing UI test and resolve the hosted caption-row failures before landing. Do we have a high-confidence way to reproduce the issue? Main visibly selects the last tab before resetting the offset, matching the reported competing-scroll setup; the original late-scroll mechanism was not independently executed during this read-only review. Is this the best way to solve the issue? Selecting the first tab aligns test positioning with native selection behavior, while the left-edge assertion avoids mistaking a small automatic alignment for an arrow click. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 30d159c66030. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 30, 2026, 9:15 PM ET / December 1, 2026, 02:15 UTC. |
ba8eeb2 to
eb29ce2
Compare
TabView brings its selected tab into view after selection and presenter resizes. The overflow proof selected the last tab and then called ChangeView(0); a late native bring-into-view of that tab scrolled the strip back to the end, so the increase arrow stayed disabled and the wait timed out. Select the first tab instead, so every native bring-into-view agrees with the start position. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
eb29ce2 to
866569e
Compare
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
866569ea5d86255183e67230f49c132fc54f5791↑ PR CI on this exact head is green on the first attempt, including the x64 Tray UI shard and the new-test soak (10 iterations, 3 under CPU contention).
↑ CI and local x64 traces explain every intermediate failure, and the dual-model review has no open blocking code finding.
↓ Native ARM64 (Crabbox) and local x64 repeats ran on earlier heads, not this one: RTX 2 is screen-locked and the local desktop is disconnected.
↓ GPT-6 Astra leaves one MEDIUM evidence question open (see Review).
↑ CI and local traces show TabView's delayed request for the selected tab landing milliseconds after the click, the same mechanism the original ChangeView(0) raced.
↓ The original CI failure left no scroll trace, so which late request hit tab 4 there is inferred.
↓ No screenshot or offset was captured for the original failure.
What Problem This Solves
The Tray UI shard test
PanelTabs_LongTitlesStayBoundedAndNativeOverflowScrollsWithoutDroppingTabscan time out with "native overflow can scroll toward the hidden tabs". It failed #2416's first CI attempt (run 46519382652, Light/joinsCaptionRow=False), and #2416 doesn't touch panel tabs.User Impact
No user-visible change. CI stops failing on this test when TabView's own tab-strip scroll lands late.
Why This Change Was Made
Cause (class 3, scroll read mid-layout).
ChangeView(0).TabViewbrings its selected tab into view through asynchronous requests (TabViewItem::StartBringTabIntoView, raised as an async routed event). If one landed afterChangeView(0), the strip went back to the end and the increase arrow stayed disabled.Fix.
filesselection-sync assertion moved to that step.ViewChangingtargets. It requires one inside a ±25-DIP band around TabView's fixed 50-DIP step from the click-time offset, with an unclamped step.Why the arrow proof changed. Traces from CI x64, local x64 and Crabbox ARM64 show TabView's delayed request for the newly selected tab landing 1–3 ms after the click. That request cancels the arrow's scroll after the scroll has started.
offset > 0afterChangeView(0)) proved the strip moved but couldn't tell which request moved it. Its race path timed out, which is this flake.Ownership. This is the panel
TabViewstrip inReactorConversationPanelHost, not the transcript scroll owned by #2126. No otherChangeViewor scroll-arrow code exists in this test file.Evidence
GatewayFixtureUiTests.SharedRootDialogNRE in the Mock Gateway job, now in the flake ledger)[]or[6.29]only.reswkeys and Hub-window timeouts)./build.ps1, Shared tests (6235 passed, 29 skipped), Tray tests (7227 passed), timing ratchet,git diff --checkHistory. Intermediate heads failed CI: 8b60dd2 (left-edge check), 1c8e029 (focus gate). A temporary diagnostic commit captured the CI trace that led to this design; it was squashed away before this head.
Review. Dual-model review ran on every head (Claude Opus 5.5, and GPT-6 Astra with long context, both at high reasoning). All MEDIUM findings were fixed, including the weakened arrow proof, the focus-request ordering, attribution of the scroll, and the clamped-end collision. Remaining:
Not verified.
Required proof pools
none: test-only change to one UI proof test.