Repository navigation
test(ui): avoid repeated Appearance boots in rail checks - #180369
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR replaces six repeated Appearance document loads with application-router navigation in the chat-position rail tests. Example: The dark-theme test changes the saved message width from 100% to none.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR makes a focused test-only optimization while preserving saved-width persistence coverage; no actionable correctness or security findings were identified. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser E2E suite drives the bundled Control UI against a mock Gateway, saves message widths through Appearance, and checks persisted settings, rendered Chat widths, and rail visibility. flowchart LR
A[Browser E2E case] --> B[Application router]
B --> C[Appearance width input]
C --> D[Persisted UI settings]
D --> E[Cold Chat document load]
E --> F[Width and rail assertions]
Technical reviewBest possible solution: Retain this small router-based setup change if the existing CI timing output meets the predeclared performance acceptance rule. Do we have a high-confidence way to reproduce the issue? Source confirms four Appearance document loads per reader case on main, although the runtime cost was not independently measured during this read-only review. Is this the best way to solve the issue? The patch uses existing navigation and committed-route owners, retains one cold Appearance entry per theme and every cold Chat persistence check, and introduces no redundant machinery or test groups. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 63415c568253. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +12. Total +12 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 follows the weaker of proof and patch quality; ✨ 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 October 22, 2026, 2:45 AM ET / 06:45 UTC. |
|
Merged via squash.
|
What Problem This Solves
The reader-position rail tests cold-boot the app to reopen Appearance for every saved width. Those repeated Appearance boots prepare the next edit; the subsequent cold Chat loads prove persistence.
User Impact
Test-only speed improvement. Native file duration falls from 56.070 s to 40.901 s (15.169 s, 27.05%). Production behavior and startup assets are unchanged.
Why This Change Was Made
Keep the first cold Appearance entry in each theme and all twelve cold Chat entries, including all eight width reloads. Use the existing application router and committed-route wait for the six later Appearance edits. Every fill/Tab, storage, computed-width, rail, gutter, keyboard, animation, focus, and continuation assertion remains. No direct settings writes or shared browser contexts.
Evidence
Frozen acceptance: at least 10% lower native file duration including hooks, the same four ordered cases, every strict per-case ceiling, and all 14 UI jobs passing. All gates passed on head
23e63b8a62e636f43ab01ef42e3c40c1b1b9ee6fin CI 39734399436.Baseline: scheduled main 39728678350, head
0d0df35a139ac9e71a830691bcd115764740e585. Target source was unchanged at the branch base.Strict ceilings remained 30.1692, 30.5988, 3.0948, and 3.2484 seconds in case order. The 76 s shard-step reduction is observational because membership changed. Shard weights await the canonical refitter's two eligible matching-source scheduled-main samples.
pnpm tsgo:ui, targeted formatting, whitespace checks, and complete-context independent review through P2 passed. Full CI supplied browser proof; no local E2E, build, or parity run. All assertions, timeouts, and screenshots remain. Native review initialization is queued on the shared allocator; no merge request is armed.