feat(tui): unify child tool activity views - #292
Merged
tt-a1i merged 5 commits intoAug 30, 2026
Conversation
- render Direct Subagent and Workflow child tools through the shared compact activity projection\n- keep Pi-native evidence available through a page-local app.tools.expand toggle\n- inherit the parent expansion state without mutating the parent transcript\n- document and test shared compact/expanded behavior for issue openpi-dev#93
7 tasks
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #93.
Direct Subagent and Workflow child detail pages could still present tool calls as large native blocks instead of the compact activity projection already used by the parent Pi transcript. Read-heavy children therefore became difficult to scan, and the two child paths did not expose a consistent way to recover Pi's native evidence.
Value
Child transcripts now use the same one-line activity language as the parent for reading, searching, listing, shell, and file mutation work. Operators can scan parallel work quickly while retaining complete native call and result evidence on demand.
Approach
AgentSessionPageand pass it throughAgentTranscriptRendererto the existingAgentToolRenderLedger.ToolExecutionComponent; compact rendering continues to use the shared activity renderer rather than a child-specific formatter.app.tools.expandstate when a Direct Subagent or Workflow dashboard opens, while ensuring child-page toggles do not mutate the parent transcript.docs/design/CHILD_TOOL_ACTIVITY.md.Validation
bun run check— passed on the latestupstream/mainbase, including config-contract, discipline, formatting, lint, and TypeScript checks.bun run test— passed with 1,017 Node tests, 0 failures, 1 platform skip, and 30 Vitest tests.pi listidentified the local checkout as the single OpenPI source. Direct Subagent and Workflow child pages were verified for compact icon rows, Pi-native expanded evidence, collapse restoration, inherited parent state, page-local toggling, and Nerd Font rendering. This smoke preceded the final rebase; the rebase did not modify the feature runtime files, and the full automated gates passed afterward.Impact
app.tools.expandbinding in the page footer.