Repository navigation
feat(subagents): show executor agent in list rows - #186845
moonbow0407 wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesAdds the resolved executor agent ID to active and recent subagent list rows. Example: A completed research child uses the same model as other agents.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it provides a focused usability improvement absent from current main, with no concrete introduced bug found. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared subagent list formatter combines selected registry runs with session metadata and produces rows consumed by chat commands and readable tool output. flowchart TD
A[Selected registry runs] --> C[Shared list formatter]
B[Session metadata] --> C
D[Existing child owner resolver] --> C
C --> E[Slash command reply]
C --> F[Readable tool output]
Technical reviewBest possible solution: Use the existing owner resolver in the shared formatter to display executor identity under the presentation policy chosen by the feature owner. Do we have a high-confidence way to reproduce the issue? Source confirms that current main omits executor identity from shared list rows; this read-only review ran no product code or tests. Is this the best way to solve the issue? The implementation is the smallest complete display change: it reuses the authoritative resolver, preserves unresolved-owner omission, and adds one meaningful handler regression without new state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0ebeb475e394. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +34, Docs +3. Total +38 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 28, 2026, 11:26 AM ET / 15:26 UTC. |
Closes #186424
What Problem This Solves
/subagents listdoes not identify the agent executing each child. Labels describe the task, and several agents can use the same model, so operators must inspect children individually to check routing.User Impact
Active and recent rows now include
[agent: <id>], including children running under the requester's own agent. For example:research worker [agent: research] (shared-model, 2s) done.Why This Change Was Made
The shared row formatter reuses the existing child-owner resolver. This covers both slash-command replies and the subagents tool's readable text, including recorded owners for raw session keys. Unresolved owners remain omitted; structured results and authorization are unchanged.
The simplification pass retained one formatter change and one regression using existing fixtures. Production: +2/-1; tests: +34; docs: +3.
Evidence
handleSubagentsCommandpath: unchanged maina29646098fails because the three rows omit agent identifiers; the final change identifies same-agent, cross-agent, active/recent, and raw-key children sharing a model. The new case took 369 ms on Linux.node scripts/run-vitest.mjs src/agents/subagents/registry/subagent-list.test.ts src/auto-reply/reply/commands-subagents.test.ts --maxWorkers=1selected within the focused run: 30/30 passed. The command file shared a 31.93 s shard with ownership tests; the list suite took 38.32 s including transforms and teardown. CI timing is pending.src/agents/tools/subagents-tool.registry.test.ts: 3/3 passed on Windows.tsconfig.core.json), test typecheck (tsconfig.core.test.messaging.json), type-aware oxlint for the touched TypeScript, oxfmt, andgit diff --check: passed.a29646098: no actionable findings. Local autoreview/ClawSweeper was not run.EPERM; the complete Linux list suite, including teardown, passed.Partial Gateway evidence (2026-10-30)
On Windows with Node 24.22.1 at head
921358f85cfcc591c2f63099ff20eb02eac3804a, an isolated Gateway acceptedsessions_spawnthrough a deterministic local OpenAI Responses fixture. A realchat.sendof/subagents listreturned:This confirms a same-agent active row through the Gateway command path. It is partial evidence only: the cross-agent recent child did not reach the list in this fixture, the overall test failed, and the recorded-owner raw-key case was not exercised. No live model or channel is claimed. The reviewer-requested full real-behavior proof and maintainer presentation decision remain open.