Repository navigation
Description
Problem
A Subagent's tool activity appears in its live card and the f6 Agents view, but /toolcalls lists only the top-level Subagent call. Someone reviewing a run in /toolcalls cannot discover the child Read, Grep, or other calls there.
The inspector currently scans only top-level scrollback metadata (cmd/mecatui/ui/toolcalls.go, TestMecatuiToolcallsInspector_Scenario1_TopLevelDelegationsOnly). Child calls are relayed as bounded, redacted trace previews rather than complete tool-call arguments and canonical results. Do not present those previews as if they were full top-level call details. The public delegation guide currently says ctrl+t or f6 can inspect child tool details (user-docs/building/what-you-get/subagents-teams-parallel.md); align that claim with actual behavior as part of this work.
Desired behavior
- Make Subagent child tool activity discoverable from
/toolcalls, with clear parent/child attribution and stable navigation while the run updates. The presentation should say when only a bounded preview is available; it must not invent arguments, results, targets, or success. - Keep the existing full-detail contract for top-level calls and preserve child isolation, redaction, width/terminal safety, and approval ownership.
- Specify how child activity appears after session reload. If the required child history is not durably available, show its availability honestly rather than claiming an exhaustive inventory. Coordinate with Audit and restore mecatui session reload fidelity #2114.
- Decide deliberately whether the same interaction also covers Parallel branches and Team members; their activity is held in different client projections.
Verification
Exercise a Subagent with several child tools before, during, and after completion; compare /toolcalls with the bounded activity visible in f6. Cover navigation, live updates, long traces, hostile previews, and a reload with missing child history. Confirm that no full child transcript or cross-session data is exposed.
Follow-on to #2089 and #1361. The existing delegation architecture describes the bounded child projection; implementation may need a reviewed data/identity contract rather than only an inspector list change.
Activity
jbeda commentedon Oct 7, 2026
Completed by #2139: bounded, sanitized Subagent child-call previews are now available from the parent
/toolcallsdetail, with exact ID correlation and explicit incomplete-history behavior after reload.