Repository navigation
fix: keep spawned-session tests independent of sidebar sort - #180666
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 selects spawned sidebar sessions by their session keys instead of their positions. Example: The sidebar sorts agent:main:verify-tests away from the second child position.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused test repair that preserves the existing behavioral assertions while removing an obsolete ordering assumption; no actionable defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser suite supplies synthetic Gateway session rows, renders the production sidebar, and checks child status, nesting, actions, and navigation. flowchart LR
A[Session fixtures] --> B[Simulated Gateway]
B --> C[Production sidebar]
C --> D[Sorted child rows]
D --> E[Session key locators]
E --> F[Behavior assertions]
Technical reviewBest possible solution: Use the existing session-key attributes for identity-dependent checks and retain separate coverage of sidebar ordering. Do we have a high-confidence way to reproduce the issue? Source confirms that identity-dependent assertions use positions despite sorted children, and the PR reports matching red-before/green-after browser runs. Is this the best way to solve the issue? Selecting the existing fixture identities is the smallest complete correction and preserves the status, menu, nesting, pin, and navigation contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 33553e6a18f5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 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, 10:00 AM ET / 14:00 UTC. |
|
Merged via squash auto-merge.
|
Related: #172189
What Problem This Solves
The spawned-session sidebar tests time out after child sessions follow the selected sidebar sort. They identify the active and completed children by ordinal position, which no longer identifies those sessions reliably.
User Impact
No production behavior changes. The existing tests continue to verify active, completed, stale, and failed child states, nesting, personal pins, row actions, and navigation while allowing the sidebar to honor its selected sort.
Why This Change Was Made
Select the active and completed fixture sessions by their existing
data-session-key, then reuse the completed row for its action menu and navigation checks. This removes the obsolete positional assumption without changing the assertions or sorting behavior.Evidence
nests spawned sessions (personal pin: false/true)cases on clean protected main3f2d28fa4f6ee41685bfe390e4867bce51091738Active runicon; 65.24 s totalThe browser proof used the supported prebuilt-assets contract with a single clean build of the actual failing CI base. The relevant sidebar/test inputs match the failing PR, so the red proof attributes these failures to main. Only the two changed cases were run locally. Normal PR selection supplies broad validation; this test-only correction does not need
ci:full.Production LOC changed: 0. Test diff: +5 / −4 (one net line); no new test cases or runtime abstractions. No leases used.