Skip to content

fix(ui): restore inline per-subagent activity - #168102

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/subagent-activity-view-changed-to-waiting-screen
Oct 10, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/subagent-activity-view-changed-to-waiting-screen

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #159179

What Problem This Solves

Fixes the loss of inline per-subagent activity after the Tasks/TaskFlow removal: a parent chat showed only an aggregate waiting count.

User Impact

Each unfinished subagent is visible again with its name and current activity while the parent works or waits. Rows remain in launch order, distinguish queued and delegated work, and open the correct subagent details. On narrow screens, activity appears below the name.

Why This Change Was Made

Restore the useful presentation without restoring TaskFlow. The view reuses the current child roster and safe observer headlines, with no child-transcript polling or additional execution state. Live headlines are fenced to the current run, session incarnation, agent, and connection. Completed children leave the inline list; existing failure/attention notices and the Subagents panel remain available.

The mocked Gateway now mirrors the existing broad observer-headline delivery contract, while keeping raw messages and tool arguments individually scoped.

Evidence

  • Red/green regression: the initial per-agent projection case failed on base 4ac1a8028b31 before the repair (activity was undefined instead of three rows; the other 19 cases passed). The same restored-status coverage passes with the fix. The Before capture also reproduces the missing rows through the actual chat UI.
  • Focused unit/lifecycle/mock-Gateway coverage: 35 tests passed (3.16s test-run wall time; 4.81s wrapper).
  • Browser coverage: 3 tests passed (45.58s including a production UI build), covering live updates, handoff/resume, subagent navigation, split panes, and stream isolation.
  • Deterministic actual-UI captures inspected in dark/light at 1280px and dark at 390px. All names/headlines visible with no overflow; live observer updates cause zero child history reads.
  • Independent P2 autoreview is clean after fixing and testing a queued-update/disconnect listener leak. Final changed-file gates passed: selected type graphs, UI types, lint/styles, formatting, i18n, dead-export checks, and source ratchets.
  • CI passed on the reviewed head. Measured CI wall time: UI unit shards 252–346 seconds; browser shard 1/9 took 439 seconds (whole-job time including setup, not per-file cost). Local changed unit files ran with --maxWorkers=1; added cases take milliseconds and reuse existing browser flows.

Before

Before: aggregate waiting line

After

After: inline per-subagent names and activity

Light theme and mobile

After: light theme

After: mobile layout

Worked on by:

Work sessions

Show each unfinished subagent with its current activity using the existing roster and observer stream, without restoring TaskFlow or reading child transcripts.

Co-authored-by: steipete <[email protected]>
@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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 10, 2026 02:29
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L 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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 shows each unfinished subagent’s name and current activity beneath the parent chat’s working or waiting line.

Example: A parent chat waits for Backend implementation, UI regression tests, and Review accessibility.

  • Before: The chat shows only “Waiting on 3 subagents.”
  • After: Three inline rows show their names and activity, including “Running focused UI regression tests,” with activity below each name on mobile.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent restoration with inspected visual proof and meaningful lifecycle/browser coverage; no introduced defect found, and CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected actual-UI before/after screenshots demonstrate the changed transcript presentation in desktop dark/light and mobile environments; supplied mock-Gateway browser coverage supports updates and navigation without claiming live-provider execution.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A parent chat gives only an aggregate waiting count, leaving users to open another panel to see each subagent’s current work.
Reason: The collaborator-authored restoration makes progress visible in the conversation while retaining existing counts, navigation, and execution owners.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is collaborator-authored, restores useful inline progress, and has no concrete introduced correctness or security finding. Required CI is still running.

Priority: P2
Reviewed head: 833e8ee674e734176100d5a6c09bafd3b1266ebb

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported regression-test results do not show the added cases failing on the base.
Agent review details

How this fits together

The Control UI projects the Gateway-owned child-session roster into transcript rows and consumes existing observer headlines for live presentation; selecting a row opens the child’s details or session.

flowchart TD
  A[Gateway child session roster] --> C[Subagent status projection]
  B[Gateway observer headlines] --> D[Scoped live view cache]
  C --> D
  D --> E[Inline transcript rows]
  E --> F[Subagents panel or child session]
Loading

Technical review

Best possible solution:

Restore inline activity through the existing session roster and observer stream while keeping TaskFlow retired.

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

Current-main source and the inspected before screenshot establish the aggregate-only presentation; no target code was executed during this review.

Is this the best way to solve the issue?

The approach preserves Gateway ownership, uses existing safe observer delivery, and adds scoped presentation rather than restoring the retired task ledger.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • TaskFlow retirement keeps the original intent (6652f7e: Remove duplicated task execution/completion ownership and retire Task-specific surfaces.)
  • Aggregate working and waiting status changes intended behavior with a stated reason (6fe508a: Reuse the loaded child roster for a shared count while preserving the Subagents panel as the detailed view.)
  • Mock session-scoped delivery keeps the original intent (8279835: Avoid unrelated raw-stream fanout while preserving chat subscriptions and bounded activity collection.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit 6fe508a adds ui/src/pages/chat/components/chat-working-indicator.ts:30 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6fe508acb488; files: ui/src/pages/chat/components/chat-working-indicator.ts)

PR surface

Source +327, Tests +230, Docs +9. Total +566 across 14 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 332 5 +327
Tests 6 257 27 +230
Docs 1 9 0 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 598 32 +566

Review metrics

Metric Value Why it matters
Production versus test growth Production +332/-5 lines; tests +226/-2 lines; test support +31/-25 lines. Growth provides the responsive renderer and bounded live-view lifecycle without adding execution state, transcript polling, or a replacement TaskFlow owner.

Labels

Label changes:

  • add P2: Restores useful progress visibility in Control UI chat with a limited presentation-only blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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:

  • P2: Restores useful progress visibility in Control UI chat with a limited presentation-only blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • 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.

Reviewed October 9, 2026, 10:35 PM ET / October 10, 2026, 02:35 UTC.

@roboclaw-bot
roboclaw-bot merged commit a285e8b into main Oct 10, 2026
165 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/subagent-activity-view-changed-to-waiting-screen branch October 10, 2026 02:39
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

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: L 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