feat(renderer): display task tool summary#307
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds child-session tool activity to task tool rendering and ensures child-session tool parts are tracked and can trigger re-rendering of the owning task block.
Changes:
- Track and upsert tool parts received for child sessions, and re-render the parent task tool in the active session when child activity updates.
- Pass a child-session part fetcher into the formatter so task tools can render “live” child tool activity.
- Standardize action-line formatting (icon + label + value) and add status icons (running/pending/completed).
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/manual/renderer_replay.lua | Stabilizes replay notifications by using a consistent notify id. |
| tests/data/explore.expected.json | Updates expected render output to include child-session selection/action rendering. |
| lua/opencode/ui/renderer.lua | Stores child-session tool parts and re-renders the owning task tool part when relevant child parts update. |
| lua/opencode/ui/render_state.lua | Adds storage + accessors for child-session parts. |
| lua/opencode/ui/icons.lua | Adds icons for child-tool status rendering (completed/pending/running). |
| lua/opencode/ui/formatter.lua | Refactors action formatting, adds child-session activity list to task tool rendering, and wires in child-session part retrieval. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Avoid scanning every message part when child session updates arrive. Track the owning task part in render state so task tool rerenders stay constant time.
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.
No description provided.