Repository navigation
fix(ci): model a yielded worker in sidebar background test - #201204
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. What this changesMarks the sidebar test’s hidden background worker as paused so it represents a yielded worker. Example: The hidden worker agent:main:subagent:build-worker has one background process.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR makes the smallest correct fixture repair without weakening assertions or changing runtime behavior; the failed UI check still needs attribution. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser test supplies session rows through a mock Gateway; production sidebar projection folds yielded-worker activity into the parent, and browser assertions check the resulting indicators and child visibility. flowchart LR
A[Session fixtures] --> B[Mock Gateway]
B --> C[Sidebar session projection]
C --> D[Child activity summary]
D --> E[Sidebar indicators]
E --> F[Browser assertions]
Technical reviewBest possible solution: Keep the existing lifecycle owner and assertions, with the hidden-worker fixture explicitly marked paused. Do we have a high-confidence way to reproduce the issue? The fixture defaults to hasActiveRun false and omits the paused state required by childShowsParentWorking, explaining the failed parent-indicator assertion; the author reports reproducing it, but this read-only review ran no tests. Is this the best way to solve the issue? The one-field correction models the intended yielded worker using the existing contract, preserves all observable assertions, and adds no unnecessary machinery or test groups. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f7c680434384. 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
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. 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 November 18, 2026, 8:24 AM ET / 13:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Main already supplies the same paused state via #201204. Retain one property in the merge, with all sidebar assertions and roster synchronization unchanged. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
…201204) * chore(ci): capture the earlier sidebar background assertion * fix(ci): model a yielded worker in sidebar background test
What Problem This Solves
The sidebar background-work test expected a hidden worker to keep its parent marked as working, but its fixture described an already-finished worker. After the completed-worker cleanup change, that fixture correctly stopped contributing to the parent’s working state and the test failed.
User Impact
No runtime behavior changes. The test now exercises a yielded worker that is still waiting on its background command.
Why This Change Was Made
Set the existing hidden worker’s
subagentRunStatetopaused, matching the current lifecycle contract. All original assertions and timing remain intact, including the quiet-child cap, hidden worker row, background indicator, and parent subagent indicator. Temporary diagnostic changes are removed.Related: #201157
Evidence
CI Qualification
PR CI run 44310989266, attempt 1, failed one unchanged unit case in
chat-position-rail.test.tsx: “keeps the focused run marker through streaming and retargets its persisted answer” (expected true, received false). The CI log omitted the assertion location. The unchanged named case passed locally; this is a non-reproduction, not a fix.The tested merge and its first parent have identical chat, fixture, UI configuration, runner, and dependency inputs. This PR only changes the sidebar E2E fixture, which the failing unit project excludes. The failure remains unresolved and is attributed as unrelated under the native inherited-failure policy; CI is not being reported as green. The exact-head security checks passed.