feat: Dynamic Details - compact tool output with click-to-expand enhancing navigation and workflow#6393
Closed
ryanwyler wants to merge 1 commit intoanomalyco:devfrom
Closed
feat: Dynamic Details - compact tool output with click-to-expand enhancing navigation and workflow#6393ryanwyler wants to merge 1 commit intoanomalyco:devfrom
ryanwyler wants to merge 1 commit intoanomalyco:devfrom
Conversation
Contributor
Author
c07e14b to
966af84
Compare
966af84 to
c08fd53
Compare
Contributor
Author
|
Closing in favor of a cleaner implementation that enhances the existing BlockTool component rather than introducing the ToolRegistry pattern. The new PR maintains the same functionality (click-to-expand/collapse tool outputs) with a much smaller, focused diff that's compatible with current upstream. The new implementation:
New PR incoming. |
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.


Summary
Keeps vital tool output compact but fully accessible with a mouse click to quickly view the entire output. Click anywhere on the tool block to expand/collapse making navigating more efficient and easier to follow instead of pages of tool outputs speeding by.
Features
tui.dynamic_details_max_lines(default: 15)tui.dynamic_details_show_arrows(default: true)dynamic_details(default: disabled)Configuration
{ "tui": { "dynamic_details_max_lines": 15, "dynamic_details_show_arrows": true } }Applies To
Block-container tools (bash, write, edit, patch) when:
Changes
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx- Add dynamicDetails state, toggle command, and collapse logic in ToolPartpackages/opencode/src/config/config.ts- Addtui.dynamic_details_max_linesandtui.dynamic_details_show_arrowsconfig optionsRebase Notes
Rebased onto latest dev and updated for API compatibility:
PermissionRequest.callIDtoPermissionRequest.tool?.callID(permission API change)showAssistantMetadatasignal (new upstream feature)DialogExportOptions.showcall to include new parameters