Repository navigation
fix(test): seed canonical progress-widget session liveness - #160463
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: needs maintainer review before merge. Reviewed September 28, 2026, 9:25 AM ET / 13:25 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch updates two Control UI browser test scenarios so canonical session snapshots and live roster replies describe the same running sessions. Merge readiness✅ Ready for maintainer review The two fixture repairs remain absent from current main. The changed seeds match the mock Gateway’s canonical-state contract, and review found no introduced defect. Priority: P2 Review scores
Verification
How this fits togetherControl UI browser tests supply session data through a mock Gateway. The progress widget reads a target-session roster to decide whether a card appears running or paused. flowchart TD
A[Scenario session rows] --> B[Mock Gateway canonical sessions]
A --> D[Filtered and target rosters]
B --> C[Startup and descriptor snapshots]
C --> E[Control UI session state]
D --> E
E --> F[Progress widget state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the mock Gateway’s canonical rows authoritative for startup and descriptors while allowing list replies to represent filtered or stale views. Do we have a high-confidence way to reproduce the issue? Yes. On current main, these scenarios seed canonical rows without the live-run metadata present in their roster replies; a startup or descriptor snapshot can therefore disagree with the roster. This review did not run the browser test. Is this the best way to solve the issue? Yes. Aligning the scenario’s canonical seed with its live roster repairs the fixture at its owner without changing production ordering or the intentionally stale gallery response. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b27c79ba1562. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
9a733f9 to
e38d804
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Re-review progress:
|
…160463) Seed the split-roster and board-less widget scenarios from the same live session rows returned by their roster replies. This keeps startup and descriptor facts consistent while preserving deliberately stale gallery responses and existing assertions. Preserves main's independently landed scope-transition fixture verbatim. Two test scenarios only; production +0, tests +36/-33. Exact-head CI and ClawSweeper review passed for e38d804; no remaining rank-up moves.
What Problem This Solves
The split-roster and board-less progress-widget E2E fixtures report running sessions in list replies while startup and descriptor replies read canonical rows without the same run metadata. The mock Gateway deliberately does not learn canonical state from list responses, which may be stale or filtered.
Related: #160010
User Impact
No production UI behavior changes. Two existing scenarios now seed the same rows used by their live roster replies. Deliberately stale gallery replies, board membership and existing assertions remain unchanged.
Why This Change Was Made
The canonical fixture owns startup and descriptor state. Reuse each scenario's live roster rows at that boundary instead of changing production ordering or teaching canonical state from list reads.
Main independently fixed the selected-agent scope case in d6aa710c509. This PR preserves that case byte-for-byte, including its delayed descriptor response, and fixes only the two remaining inconsistent fixtures.
Evidence
e38d804e3b71e65c6865dcb22ec257764293fbf2: all 51 job records are completed without failure, including all UI browser shards, the owning types and typed lint; both required CI contexts are successful. The exact-head review, reviewed 2026-09-28T13:25:25.555Z, has no findings or remaining rank-up move.ui/tsconfig.json) was kernel OOM-killed at 7 GiB. The owning E2E typecheck and typed lint passed at the same cap. That aggregate graph is tracked separately in the memory campaign.