Repository navigation
test(ui): share session setup and remove duplicate archive waits - #185031
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 maintainer review before merge. What this changesThis PR combines empty-group scenarios, removes a duplicate archive-Undo permutation, and retains one request-stability check. Example: Create Second group with no saved sessions.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this focused test cleanup preserves the distinct behavior checks, and no actionable patch defect was found; CI remains unresolved. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI browser suites send user interactions through the application against a controlled Gateway and inspect rendered state and recorded requests. flowchart LR
A[Session browser suites] --> B[Browser context]
B --> C[Control UI]
C --> D[Controlled Gateway]
D --> E[Session and group responses]
E --> C
C --> F[DOM and request assertions]
Technical reviewBest possible solution: Retain this focused cleanup and resolve CI attribution through the existing landing policy. Do we have a high-confidence way to reproduce the issue? This is test consolidation rather than a runtime bug fix; source inspection verifies the duplicated setup and observation window. Is this the best way to solve the issue? The patch uses existing suite owners, preserves distinct lifecycle coverage, and adds no helper layer or production seam. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 61bd9c66b59c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -40. Total -40 across 3 files. Added test files: 0. View PR surface stats
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 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 26, 2026, 5:30 PM ET / 21:30 UTC. |
|
Merged via squash auto-merge.
|
…nclaw#185031) * test(ui): share session setup and remove duplicate archive waits * test(ui): capture composer safe-area failure geometry * test(ui): follow current Daybreak access controls * test(ui): align access and typography fixture boundaries * test(ui): remove duplicate recovery cases and repair async fixtures
What Problem This Solves
Session browser coverage boots a second app for empty-group creation, repeats an attached-page archive-Undo permutation already covered by a mounted test, and checks one request-quiescence interval twice. Combine the group scenarios, retain real navigation through deferred archive completion, and keep one500ms stability check. This removes two browser contexts and one duplicate350ms real timer without production, runner, shard, timeout, fixture-owner or dependency changes.
User Impact
No production UI change. Session creation, deferred archive Undo and request-stability contracts remain.
Why This Change Was Made
Combine overlapping browser setup and retain the real navigation boundary and one intentional observation window.
Removed work and retained contract
session-management.groups.e2e.test.ts:keeps a new empty group visible before the first saved sessionrecovers an empty group catalog and creates another empty group: empty sessions, transient UNAVAILABLE/retry, exactly two catalog reads before creation, recovered section, actual group menu/input, second section, exact put names[Recovered group, Second group], original section retained.session-management.archive-undo.e2e.test.ts:offers Undo when an individual archive completes after stay on the Sessions pagesessions-page.archive-outcome.test.ts:settles archive and captured Undo across %s (%s), navigation/after row, covers attached completion and captured identity. Browser keeperoffers Undo when an individual archive completes after leaving the Sessions pageretains shell navigation, detached completion, no early Undo, exact archive/restore identity, shared pin, two patches and unchanged destination.recovers a deleted active chat without repeatedly resolving its missing sessionexpectRequestCountStable(..., 500, rosterMatch)against the actual Gateway request log, plus all route/transcript/pane/composer/roster and console-error checks. The remaining real observation window is intentional; the browser clock cannot advance this Node-side timer.Personal-pin permutations, successful bulk-delete wiring, reconnect fences, cross-agent pagination, native focus/drag and failure behavior remain. The merged group scenario exercises creation after catalog recovery; the separate cold empty-group app document is the removed setup. Existing catalog-group and compact-empty-section coverage remains in the file.
Retained optimization proof
The original three session files passed28/28 once in71.21s including14.19s normal ephemeral bundle setup, using one worker/default pinned runtime. UI types, format/whitespace, source simplification and complete isolated P0–P2 review passed. The original three session consolidation files retain this previously recorded proof. Consolidation contexts/cases remain30→28; local duration and context counts are not hosted runner-minute savings. Main's current pointer/prompt contracts remain unchanged.
Current fixture repairs
board.getwas removed from the forbidden operator-only list because main #182625 intentionally permits session-scoped dashboard reads. The test keeps fifteen virtual minutes, eight actually forbidden methods, message subscription, denied Cron access, and successful admin reconnect. Board permission coverage remains inchat-pane-board.test.tsx(“presents board permissions for %j on a %s session”) and Gateway board/Canvas authorization tests.Typography joins the existing
waitForControlUiProofSurfacebefore the original captures. The reproduced strict comparison differed by32 outer-corner pixels during an ancestor blur transition, with identical text/font/geometry. All original text/font checks and strict PNG-byte equality remain; no tolerance, masking, cropping or style change.The rail fixture now supplies distinct stable nonempty
sessionIdvalues for its two unloaded rows. The current owner requires an ID before offering Unpin, so the old key-only rows never exposed that action. The rows remain unloaded, realsessions.describebehavior remains, and all assertions stay. Current-source reproduction failed the exact case in 32.98s; the two-ID repair passed it in 24.70s. Independent round311 review was scoped-clean. The earlier1.774s diagnostic pass did not disprove this current-source failure and is superseded by this causal reproduction/fix.The pull-request browser fixture awaits the existing lazy-import settlement before measuring branch-action geometry. This one-line patch is reused exactly from the already-reviewed compiler branch. The source checkout's full browser file passed 10/10 in8.94s, and UI types passed. No assertion, viewport, timeout or product behavior changed.
The prior Daybreak fixture repair follows the existing switch, remembered choices and ArrowLeft recovery. All three real-Gateway cases and both viewports remain; queued Standard and final-dispatch authorization are retained. The obsolete Auto replay is kept cheaper by
session-access-program.test.ts(“keeps explicit Standard distinct from clearing the saved access program”) andsessions-patch-model-selection.test.ts(queued Access, reply-admission and writer-ordered admission tables).Focused proof
No inherited-failure waiver or new-head full-CI success is asserted. Exact prior-head failures stay charged in the phase evidence below.
Native-runtime recovery microcut
Remove the two
selection/non-adminandsend/non-adminexpansions fromchat-native-runtime-recovery.e2e.test.tsand simplify their unused fixture branches. Both omittedrecovery, so the owner returned at its missing-offer guard before checking admin access. They were not independent authority proof.The cheaper keeper is
chat-model-restriction-recovery.test.ts, “does not offer a bypass for write-only operator”: its fixture supplies a valid recovery offer/current session and asserts no modal, false selection, no recovery patch, and “Choose another model”. “does not offer a bypass for no feasible recovery” keeps the missing-offer guard. “does not apply confirmation after authority” and “rechecks a confirmed recovery after the shared settings tail, before dispatch” keep post-await authority revocation. Retained browserselection/mandatoryandsend/mandatorykeep refusal UI/no retry;send/cancelkeeps actual draft and attachment preservation. All first-message durable/volatile/cancel and both confirmation entry points remain.Exactly two expanded cases removed; zero added. Native-runtime file delta +3/−4. All 9 remaining browser cases passed once in 32.95s; the 29-case unit keeper passed in 10.09s. Types and formatting passed. Independent round306 review was scoped-clean. Retained passing CI callbacks for the removed pair summed5.866s; that is not a measured job or runner-minute saving. This cut is folded into the existing session PR, avoiding a separate full-CI PR.
Production Knip remains failed:
pnpm deadcode:dependenciesreported the same six unused exports in five source files on candidate and exact baseline23be3e16ae5daefdb3251b429d8254cc90759e7a(154.68s candidate /127.93s base, both exit1). The baseline restored the original native-runtime test from Git before running; the candidate was restored afterward. Matching exports:fingerprintPreparedModelCatalogPluginContext,readContainerLabel,resolveAutoLiveToolResultMaxChars,calculateMaxToolResultCharsWithCap,normalizeWhitespace,getManagedPluginCache. This attributes only that production-unused-export failure. Production unused-file output had zero entries; full-tree unused-files reported19 existing performance scripts, and the full exports scan also failed. Those separate scans were not replayed on base and are not called green or independently attributed here. No ignore or production workaround was added.Scope and LOC
Head
5ad815c40138344292689fdbc045f8e028238436, merge basef7728832eab0526d924dbfcf31a8154c902aed56: 9 files, 4,898 → 4,857 LOC, +150/−191. Counts are recomputed from Git blobs on this head. No production UI visual or startup change; product screenshots and startup byte comparisons are not applicable. Existing runner labels, fanout, worker limits and timeouts remain.ui/src/e2e/chat-daybreak.real-gateway.e2e.test.tsui/src/e2e/chat-native-runtime-recovery.e2e.test.tsui/src/e2e/gateway-status.e2e.test.tsui/src/e2e/session-management.archive-undo.e2e.test.tsui/src/e2e/session-management.archive.e2e.test.tsui/src/e2e/session-management.groups.e2e.test.tsui/src/e2e/sidebar-rail.e2e.test.tsui/src/e2e/theme-typography.e2e.test.tsui/src/pages/chat/components/chat-pull-requests.browser.test.tsxReal CI phase evidence
Target:74.20 comparable runner minutes (−30% from106.00), with path≤593s. The accepted #183498 checkpoint is 88.33 comparable /91.50 full minutes, not88.33 full. Its3.17-minute performance row is excluded only from comparable totals. A combined, qualifying after result remains outstanding; separate PR experiments cannot be added as savings.
All tables use real Actions job/step timestamps. Env/deps combines tool setup, dependency/cache restore and frozen reconciliation; exclusive install/cache timing is unobserved inside that action. An Install zero below means no separately timed install step, not no dependency work. Fixture/Gateway startup, collection and in-test cleanup remain inside inclusive tests unless independently timed. No invented split or failed-run speedup; skipped work earns no savings credit. Public producer cost is counted once when it executes.
Accepted #183498 checkpoint, run40276355362 —88.33 comparable /91.50 full minutes
Latest retained completed scheduled main
Run 40413333913, head
d209419bb9efa58aa036f85ff9e6a801b1e60ac0: completed / failure. Completed charged rows only: 126.25 full / 123.05 comparable minutes, 928s complete selected path. Fixed/other 24.92min, inclusive tests/checks 101.33min. Producer included once. This is prior-head consumption, not current-head success.Terminal prior-head PR evidence
Run 40413011171, head
ee018b6ecef62bea266963e437469fff3e838eb8: completed / failure. Completed charged rows only: 106.75 full / 106.75 comparable minutes, 727s complete selected path. Fixed/other 18.48min, inclusive tests/checks 88.27min. Producer not executed/included in this snapshot; totals are not full-campaign comparable. This is prior-head consumption, not current-head success.Newer retained prior-head partial snapshot
Run 40416446547, head
1c748f57b5a88e31e5b26e2a32039602c0268447: in_progress / no terminal conclusion. Completed charged rows only: 74.25 full / 74.25 comparable minutes, 655s partial elapsed path; not a terminal critical path. Fixed/other 12.58min, inclusive tests/checks 61.67min. Producer not executed/included in this snapshot; totals are not full-campaign comparable. This is prior-head consumption, not current-head success.