Skip to content

fix(ui): show running swarm workers in the Subagents panel - #168162

Merged
steipete merged 1 commit into
mainfrom
codex/subagents-swarm-roster
Oct 10, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/subagents-swarm-roster

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the Subagents panel reporting no running subagents while the same conversation's parallel-tasks card shows a running swarm worker. Older running children could also be hidden behind the first page of completed children.

User Impact

Swarm workers now appear under Running and Finished and open their view-only transcripts beside the parent. Child pages load automatically, so inspecting active work does not depend on clicking Show more. Parent drafts, exact-run Stop authorization, and persistent-conversation handling are preserved.

Why This Change Was Made

Remove the swarm exclusion and the panel's manual paging path. The existing managed child-list loader supplies complete membership; the parallel-tasks card remains the owner of aggregate swarm progress. Production code shrinks by 23 lines, including removal of the obsolete paging control, style, and English string.

Evidence

  • The older-running-child regression failed on the original implementation for both ordinary and swarm children and passes after the fix.
  • 45 focused tests passed across panel data, launch navigation, waiting status, and shared child pagination (9.82 seconds wall time with one worker).
  • All six Subagents browser scenarios passed, including opening a swarm worker without replacing the parent conversation or draft, descendant waiting, Stop targeting, and desktop/mobile views (32.03 seconds wall time including the bundled UI build; 11.13 seconds test time).
  • Synthetic before/after screenshots below show the previously omitted Parallel audit worker appearing in Running.
  • Deslop completed. Changed-file formatting, type checks, i18n, ratchets, dependency guards, and dead-export checks passed. Lint caught one redundant boolean conversion; it was removed and the scoped lint and style checks passed. Independent Codex review completed with no actionable P0–P2 findings.

This changes the bundled UI only; it does not deploy or restart a running Gateway.

CI attempt 38022065866 hit an inherited failure in session-management.mutation-scope.e2e.test.ts: the All/rename case defers the rename response, then tries switching agents while the now-pending Rename dialog blocks interaction. Main commit 33f4714ef95b changed the modal contract. The same failure reproduced on the exact CI baseline bc524d890300 (3 passed, 1 failed; 69.06 seconds), with the causal test and rename/dialog owners unchanged by this PR. The native inherited-failure landing exception accounts for that failure and all fail-fast cancellations; cancelled jobs are not passing evidence. Hosted ClawSweeper review of this head found no actionable findings.

Before: swarm worker missing from Subagents

After: swarm worker visible in Subagents

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR includes swarm workers in the Subagents panel and automatically loads all child pages.

Example: Workspace review has a running swarm worker named Parallel audit worker.

  • Before: The worker is omitted and the panel shows Running (3).
  • After: The worker appears under Running (4), beside the preserved parent conversation and draft.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with inspected browser proof and meaningful pagination/navigation coverage; Gateway data is synthetic and tests were not rerun during this review.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the built Control UI with synthetic Gateway data and show the omitted worker appearing beside the preserved parent conversation and draft; supplied browser coverage also exercises swarm transcript navigation.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users can overlook running swarm workers or older active children when inspecting the Subagents panel.
Reason: The focused repair makes worker inspection consistent, explains the prior membership change, and adds no configuration, persistence, or competing progress owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR: it repairs a concrete worker-visibility gap still present on current main, and review found no actionable defects.

Priority: P2
Reviewed head: 9b35a34026e3591df99030d07861c9d329c09105

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI consumes Gateway-owned child-session membership, groups children by activity, and opens their existing view-only transcripts beside the parent.

flowchart LR
  A[Gateway child sessions] --> B[Managed session list]
  B --> C[Shared child pagination]
  C --> D[Subagents panel data]
  D --> E[Running and Finished lists]
  E --> F[View-only child transcript]
Loading

Technical review

Best possible solution:

Retain the focused repair through the shared child-list owner and existing transcript and Stop contracts.

Do we have a high-confidence way to reproduce the issue?

Current-main source shows the explicit swarm exclusion and manual pagination limitation, and supplied before screenshots demonstrate the visible omission.

Is this the best way to solve the issue?

The patch repairs membership and pagination through existing owners, removes the replaced controls, and preserves persistent-conversation exclusions and exact-run Stop checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 46d5488e8042.

Provenance checked

  • Panel membership and transcript navigation changes intended behavior with a stated reason (e25a981: The restored panel listed ordinary children while swarm workers remained in the parallel-tasks view; later navigation preserved that membership distinction.)
  • Manual panel pagination changes intended behavior with a stated reason (e25a981: Later child pages were exposed through a manual control; automatic loading now prevents older active workers from being overlooked.)
  • Shared child-list loading keeps the original intent (1ccb3e1: Managed queries own accumulated membership, pagination, refresh recovery, and connection lifecycles rather than each consumer maintaining another roster.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit e25a981 adds ui/src/pages/chat/subagents-panel-data.ts:180 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e25a98150544; files: ui/src/pages/chat/subagents-panel-data.ts)
  • Peter Steinberger: Raw commit 1ccb3e1 adds ui/src/lib/sessions/child-session-data.ts:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1ccb3e114fe3; files: ui/src/lib/sessions/child-session-data.ts)

PR surface

Source -23, Tests +22, Docs +3. Total +2 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 62 85 -23
Tests 4 60 38 +22
Docs 3 10 7 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 132 130 +2

Review metrics

Metric Value Why it matters
Production versus test changes Production +62/-85; tests +60/-38 Shared pagination reduces production code while focused coverage protects older-worker discovery and transcript navigation.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Missing workers impair inspection of parallel work while underlying execution remains available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-10T03:50:01.351Z sha 9b35a34 :: needs changes before merge. :: none
  • reviewed 2026-10-10T03:55:35.241Z sha 9b35a34 :: needs maintainer review before merge. :: none

Reviewed October 10, 2026, 12:45 AM ET / 04:45 UTC (Revision 3).

@steipete
steipete marked this pull request as ready for review October 10, 2026 03:52
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@steipete
steipete merged commit 9decc99 into main Oct 10, 2026
141 of 158 checks passed
@steipete
steipete deleted the codex/subagents-swarm-roster branch October 10, 2026 04:49
@steipete

Copy link
Copy Markdown
Contributor Author

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

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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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