Skip to content

feat: show subagent status through claw motion and tooltips - #147753

Merged
steipete merged 1 commit into
mainfrom
codex/subagent-claw-status
Sep 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/subagent-claw-status

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated status words crowd subagent names and activity previews, while changing status icons make parallel tasks harder to follow.

User Impact

Web and macOS keep one claw per subagent: it moves while running, stays still while queued, briefly turns green on completion, dims on cancellation, and gains a warning or clock badge for failure or timeout. Hovering explains the exact status; keyboard users and screen readers retain the same information. Unnamed tasks use Subagent.

Why This Change Was Made

The existing task lifecycle drives the presentation. Names and previews get more room, with detail navigation and terminal retention preserved. Reduced motion keeps the claw still.

Evidence

The 19 focused web tests pass; eight new status/accessibility cases fail against the previous implementation. The mocked Gateway browser flow covers all six states, actual animation, reduced motion, completion color recovery, hover/focus tooltips, and opening task details. All 30 focused native tests pass. Native proof uses the production SwiftUI components in a signed, isolated synthetic app and verifies all six accessible status descriptions, detail expansion, and the brief completion cue.

Changed-file checks, web typechecking, style/lint checks, and web/native localization verification pass. Independent review found no actionable issues.

All images below contain synthetic data.

Web before Web after
Web before Web after with explanatory tooltip
macOS before macOS after
macOS before macOS after

@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@steipete
steipete marked this pull request as ready for review September 14, 2026 02:45
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 11:12 PM ET / September 14, 2026, 03:12 UTC (Revision 2).

ClawSweeper review

What this changes

The PR replaces repeated subagent status text in web and macOS chat with claw motion, colors, badges, and accessible tooltips, with matching documentation and tests.

Merge readiness

✅ Ready for maintainer review

The PR remains useful: fetched main still uses the previous presentation, and the introduced changes have no actionable correctness findings. The inspected visual evidence supports the intended improvement; maintainer-authored work also remains protected from cleanup closure.

Priority: P3
Reviewed head: 448daad0ff8f0002ef488f58eae18cb98aae6513

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with useful cross-platform visual evidence and meaningful behavioral coverage; no actionable defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected web and native before/after screenshots show the changed activity-row presentation and web status tooltip. The captured body reports production-component native execution and a covering browser flow; focused tests supplement the images for motion, accessibility, completion timing, and detail navigation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected web and native before/after screenshots show the changed activity-row presentation and web status tooltip. The captured body reports production-component native execution and a covering browser flow; focused tests supplement the images for motion, accessibility, completion timing, and detail navigation.
Evidence reviewed 7 items Introduced changes and ownership: Reviewed the pinned merge-base-to-head changes. The host-verified test merge contains the same eleven introduced paths; unrelated base-branch changes are not attributed to this PR.
Current-main necessity: Fetched main still renders separate status words and replaces terminal claws with check/cross icons. It does not contain this PR's six descriptive tooltips and continuous claw presentation. No merged replacement was established; the attempted additional GitHub search was rejected by the limited-mode endpoint.
Native lifecycle and reduced motion: The native view derives its completion highlight from the existing terminal observation timestamp, cancels the highlight task on lifecycle changes, and reuses the working-claw view's parked and reduced-motion behavior. Task storage, retention, and transport contracts are unchanged.
Findings None None.
Security None None.

How this fits together

Subagent activity rows display task updates beneath an OpenClaw conversation. Existing task state feeds the web and native views, which show progress and let users open task details.

flowchart LR
  A[Gateway task updates] --> B[Session task state]
  B --> C[Visible activity rows]
  C --> D[Status and motion preferences]
  D --> E[Claw appearance]
  D --> F[Tooltips and accessible status]
  C --> G[Task details]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +38, Tests +130, Docs +11, Other +108. Total +287 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 3 111 73 +38
Tests 2 142 12 +130
Docs 2 14 3 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 4 116 8 +108
Total 11 383 96 +287

Review metrics

Metric Value Why it matters
Production versus test growth Production net +134 lines; tests net +136 lines Production growth supports status descriptions and native visual lifecycle handling; counts exclude documentation and the generated native string inventory.

Technical review

Best possible solution:

Keep task lifecycle decisions in the existing state owners and present their status consistently through compact, accessible web and native activity rows.

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

Not applicable as a bug reproduction: this is a presentation improvement, and the before screenshots directly show the repeated status text it addresses.

Is this the best way to solve the issue?

Yes. Extending the existing activity views and shared tooltip/claw components is a focused solution that preserves the task lifecycle and detail-navigation owners.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a bounded presentation and accessibility improvement without changes to task execution, persistence, or delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected web and native before/after screenshots show the changed activity-row presentation and web status tooltip. The captured body reports production-component native execution and a covering browser flow; focused tests supplement the images for motion, accessibility, completion timing, and detail navigation.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected web and native before/after screenshots show the changed activity-row presentation and web status tooltip. The captured body reports production-component native execution and a covering browser flow; focused tests supplement the images for motion, accessibility, completion timing, and detail navigation.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected web and native before/after screenshots show the changed activity-row presentation and web status tooltip. The captured body reports production-component native execution and a covering browser flow; focused tests supplement the images for motion, accessibility, completion timing, and detail navigation.

Evidence

What I checked:

  • Introduced changes and ownership: Reviewed the pinned merge-base-to-head changes. The host-verified test merge contains the same eleven introduced paths; unrelated base-branch changes are not attributed to this PR. (448daad0ff8f)
  • Current-main necessity: Fetched main still renders separate status words and replaces terminal claws with check/cross icons. It does not contain this PR's six descriptive tooltips and continuous claw presentation. No merged replacement was established; the attempted additional GitHub search was rejected by the limited-mode endpoint. (ui/src/pages/chat/components/chat-subagent-activity.ts:102, 5bdea2bb29fb)
  • Native lifecycle and reduced motion: The native view derives its completion highlight from the existing terminal observation timestamp, cancels the highlight task on lifecycle changes, and reuses the working-claw view's parked and reduced-motion behavior. Task storage, retention, and transport contracts are unchanged. (apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSubagentActivityViews.swift:217, 448daad0ff8f)
  • Inspected visual evidence: Inspected all four prepared images from the captured PR body: web before/after and macOS before/after. They show removal of repeated status words, the web explanatory tooltip, and native queued/running/completed/cancelled/failure/timeout presentations. The body identifies synthetic data and production SwiftUI components in an isolated signed app. Still images demonstrate appearance, not animation timing. (448daad0ff8f)
  • Behavioral coverage: The extended browser scenario exercises all six statuses through mocked Gateway events, inspects active animations, toggles reduced motion, checks completion-color recovery, and opens hover/focus tooltips. Existing detail-navigation assertions remain. The native test preserves the original terminal observation across a later snapshot. These tests were inspected, not executed in this read-only review. (ui/src/pages/chat/background-tasks.e2e.test.ts:753, 448daad0ff8f)
  • Prior review continuity: The previous completed review covered the identical head, retained no findings, and published no rank-up moves. The targeted comparison against that head is empty. (448daad0ff8f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T03:02:56.192Z sha 448daad :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 9a84afd into main Sep 14, 2026
206 of 207 checks passed
@steipete
steipete deleted the codex/subagent-claw-status branch September 14, 2026 03:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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