Repository navigation
fix(ui): show task names instead of UUIDs in Swarm cards - #138183
Conversation
Keep Swarm group IDs as identities rather than display titles. Resolve child names through the shared session display policy and label multi-child cards as parallel tasks, including their tooltips. Worked on by: - @obviyus Co-authored-by: obviyus <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 6:32 AM ET / 10:32 UTC. ClawSweeper reviewWhat this changesThe PR replaces Swarm progress-card identifiers with safe child task names for single-task groups and a localized “Parallel tasks” heading for multi-task groups. Merge readiness⛔ Blocked before merge - 2 items remain This remains a necessary, focused Control UI repair: current main still displays a Swarm run identifier, while the branch uses the established safe session-display policy and has no identified source-level correctness or security defect. Priority: P3 Review scores
Verification
How this fits togetherControl UI receives live and hydrated Gateway session rows and groups active subagents into Swarm progress cards. The card presents task labels to operators while preserving the group identifier only for grouping and lifecycle handling. flowchart LR
A[Gateway session rows] --> B[Swarm roster hydration]
B --> C[Swarm group collector]
C --> D{One active task?}
D -->|Yes| E[Safe task display name]
D -->|No| F[Localized group heading]
E --> G[Control UI progress card]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +82. Total +81 across 3 files. View PR surface stats
Review metrics
Mantis proof suggestionA Mantis web-chat proof run could materially provide the missing visual confirmation of the Swarm card headings in the Control UI chat surface. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the renderer-level repair using the shared display resolver, then attach sanitized isolated-Control-UI before/after evidence and mark the draft ready once it visibly shows named and multi-task Swarm cards. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the producer encodes a requester run ID in the group identifier and current main renders its tail as the card heading and tooltip. No reviewer-side live UI run was completed. Is this the best way to solve the issue? Yes: replacing identifier-derived presentation at the renderer with the existing session-display resolver preserves the group’s lifecycle identity and matches the established sidebar naming policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 984f49391f4c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Thanks @roboclaw-bot! Landed in b016a076c81c32e63d6eb7af78e1f810032bdf93 from verified source head 394a6ff8d6b33f267de69f9cdae0ae0cee5a2fcc. Ayaan's co-author credit is verified. The Swarm card now uses the shared session-display policy instead of treating a group identifier as a title.
Proof: before/after comparison, plus final-head browser captures in the PR's Evidence section. Named, multiple, unnamed, and completion states were checked through real gateway session creation. Group identity and counts were preserved; the card disappeared after completion. The disclosed older prebuilt-gateway and scripted-provider limits remain. Validation: 65 focused tests; pinned Oxfmt 0.65.0; focused lint/style checks; clean exact-head review. Exact-head CI. Scope: production +7/-8, net −1 line; tests +85/-3. Removed the identifier-derived title helper and redundant group label. Native title parity remains a separate platform-validated follow-up. |
…8183) Use the shared session-display resolver for Swarm child names and show "Parallel tasks" for multi-child groups. Keep group identifiers as lifecycle identity rather than visible headings or tooltips. Verified named, multi-child, unnamed, and completed task states through Control UI Chat connected to an isolated Gateway with a local scripted provider. Preserve the disclosed prebuilt-Gateway limitation in the PR evidence. The refreshed head passes 65 focused tests and exact-head review. Preserve main's updated Swarm description when resolving the catalog conflict. Native title parity remains a separate platform-validated follow-up. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes an issue where users watching a Swarm in Control UI Chat saw a raw parent-run UUID in the compact progress card instead of the work being performed, even when the child had a descriptive label. Unnamed children could also expose their raw session key in the expanded roster.
Why This Change Was Made
The card was deriving its heading from the last segment of
swarmGroupId, which is a grouping identity rather than a title. The renderer now names single-child cards with the shared session-display resolver and labels multi-child cards Parallel tasks, using a localized string. The tooltip follows the same display name. The ID-derived heading helper and redundant group-label field are removed; grouping IDs, lifecycle state, counts, and persistence are unchanged.User Impact
Users can identify a single delegated task without opening the roster. Multi-child groups have a readable heading, and unnamed/key-shaped child names use the existing safe session-display policy.
Evidence
main, 51 tests passed:pnpm ui:i18n:baselinecompleted without generated-file changes.pnpm tsgo:ui,pnpm ui:build, andgit diff --checkpassed after the clean rebase.Independent real-gateway visual proof — September 4, 2026
The earlier screenshot blocker was resolved in a separate isolated browser run. These are actual browser captures, not reconstructed UI. The comparison uses the same live gateway sessions for each before/after pair.
Review documentationin heading and tooltip0 of 1Parallel tasksin heading and tooltip0 of 2; both names in the expanded rosterSubagent:in heading, tooltip, and roster0 of 18a7b141688423220997c39e961794a0abed86599.c48bd508db92b0c68548e646791e1dcb3305ea7d.sessions_spawncalls withcollect: true. The real gateway created and ran the children. Their responses were held for inspection, then released.Proof limits: the UI source was exact before/after, but both versions used the same existing prebuilt gateway at
3aba444402b281026f8290d0f358f0d44d5a1f49, built September 3. This proves the changed presentation with a real gateway and scripted local provider; it is not exact-head packaged-gateway or live-provider validation. The full screenshots retain theServer updatedwarning. Unrelated old-runtime method/parameter mismatches were observed fortasks.list.sortByandsessions.github.options. No native-app validation or full integration approval is claimed.Full, uncropped screenshots
After the final child completed: no active Swarm card
Landing-head recheck
The conflict with current main was resolved at
72c894d2e0d2f533cfc37dfa29c7391e9e8c9349. The merge retains main's current Swarm description alongsideParallel tasks; the renderer's only further change is formatting.git diff --checkpass.Final formatting correction
CI found that the shared local formatter was older than the repository pin. Commit
394a6ff8d6b33f267de69f9cdae0ae0cee5a2fccapplies the pinned Oxfmt 0.65.0 output. The naming renderer is now byte-identical to the original verified renderer; no behavior changed.Scoped follow-up
The sibling audit found separate ID-derived headings in Apple
OpenClawChatUI/Swarm.swiftand Androidchat/ChatSwarmProgress.kt. Native title parity needs a platform-validated follow-up; this PR deliberately changes only the reported Control UI surface.Worked on by: