Skip to content

fix(ci): model a yielded worker in sidebar background test - #201204

Merged
vincentkoc merged 2 commits into
mainfrom
chore/diagnose-sidebar-background-state-20261118t1255
Nov 18, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
chore/diagnose-sidebar-background-state-20261118t1255

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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 subagentRunState to paused, 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

  • Main run 44304583638, UI shard 4 failed the parent background-ring count: expected 0, actual 1.
  • The unchanged fixture reproduced the same failure locally. Its bounded capture confirmed all seven child rows were loaded and the route/roster were ready, ruling out the suspected child-loading gap.
  • The corrected original case passed, then the complete file passed 2/2 in 10.46 s, using Chromium on macOS with Node 24 and pinned Bun. This is local browser evidence; normal PR CI supplies the broader hosted checks.
  • Targeted format, type-aware lint, and the owning UI E2E type graph all passed.
  • Full local ClawSweeper review of the final committed range found no actionable correctness or security findings (confidence 0.98). Its read-only runtime limit is covered by the browser runs above.

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.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc vincentkoc changed the title chore(ci): diagnose the sidebar background-work assertion fix(ci): model a yielded worker in sidebar background test Nov 18, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 13:10
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 13:12
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Marks 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.

  • Before: Without a paused state, the worker does not contribute to its parent’s working indicator, contradicting the test’s expectation.
  • After: With subagentRunState set to paused, the parent shows Subagents working while the worker remains hidden.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and matches the verified lifecycle contract; validation consists of reported focused browser-harness results rather than independently inspected passing output.
Proof confidence 🦐 gold shrimp (3/6) This test-only correction needs no separate shipped-entry-point demonstration; the supplied Chromium verification covers the corrected browser scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The sidebar browser test fails because its hidden-worker fixture no longer represents a worker that should keep its parent marked as working.
Reason: Restores a meaningful browser scenario without reverting intentional lifecycle behavior; maintainer authorship establishes direction.

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
Reviewed head: 9ecbaae426c8a4518ef35f28c12a3f938da73882

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Hidden-worker sidebar fixture keeps the original intent (0185de8: The original sidebar feature preserved hidden-subagent indicators alongside background-only child visibility; the later lifecycle repair intentionally restricted inactive child aggregation to paused workers.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0185de8 adds ui/src/e2e/sidebar-background-work.e2e.test.ts:92 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0185de8e8f0c; files: ui/src/e2e/sidebar-background-work.e2e.test.ts)
  • Vincent Koc: Raw commit 5b3ff07 adds ui/src/e2e/sidebar-background-work.e2e.test.ts:125 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5b3ff077dcbd; files: ui/src/e2e/sidebar-background-work.e2e.test.ts)
  • Ayaan Zaidi: Raw commit cf21361 adds ui/src/components/app-sidebar-session-types.ts:257 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cf213616b987; files: ui/src/components/app-sidebar-session-types.ts)

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: A focused test-fixture correction preserves coverage without changing production behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: A focused test-fixture correction preserves coverage without changing production behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 18, 2026, 8:24 AM ET / 13:24 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 18, 2026 13:29
@vincentkoc
vincentkoc merged commit 4f08bdf into main Nov 18, 2026
158 of 162 checks passed
@vincentkoc
vincentkoc deleted the chore/diagnose-sidebar-background-state-20261118t1255 branch November 18, 2026 13:36
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

roboclaw-bot added a commit that referenced this pull request Nov 18, 2026
roboclaw-bot added a commit that referenced this pull request Nov 18, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…201204)

* chore(ci): capture the earlier sidebar background assertion

* fix(ci): model a yielded worker in sidebar background test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant