Repository navigation
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
Contributor
Author
ryanwyler
referenced
this pull request
Jan 8, 2026
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Closed
1 task done
opencode-agent
Bot
force-pushed
the
dev
branch
from
January 30, 2026 14:32
00637c0 to
71e0ba2
Compare
thdxr
force-pushed
the
dev
branch
3 times, most recently
from
January 30, 2026 14:37
f1ae801 to
08fa7f7
Compare
…pand Keeps tool output compact and accessible with click-to-expand functionality. Tool blocks with more than 15 lines collapse by default, showing a preview with a "+N" indicator. Click anywhere on the tool block to expand/collapse. Features: - Tool outputs collapse when exceeding configured line threshold - Click anywhere on tool block to expand/collapse - Shows "+N" indicator for hidden lines - Configurable via tui.dynamic_details_max_lines (default: 15) - Configurable via tui.dynamic_details_show_arrows (default: true) - Toggle via Ctrl+P -> "Enable/Disable dynamic details" - Persisted preference in KV store (default: enabled) Applies to block-container tools (bash, write, edit, patch) when output exceeds configured threshold and tool has completed. TodoWrite excluded for visibility. Implementation enhances existing BlockTool component with collapse/expand logic using maxHeight + overflow:hidden for clipping when collapsed.
Contributor
Author
|
Closing to re-open from the correct fork (gignit/opencode -> anomalyco/opencode). Will resubmit shortly. |
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 tool output compact and accessible with click-to-expand functionality. Tool blocks with more than 15 lines collapse by default, showing a preview with a "+N" indicator. Click anywhere on the tool block to expand/collapse, making it easier to navigate long sessions without pages of output scrolling by.
Fixes #7450
Relates to #1816
Also helps with:
Compliments commit: b3a2f9fb4
Features
tui.dynamic_details_max_lines(default: 15)tui.dynamic_details_show_arrows(default: true)Configuration
{ "tui": { "dynamic_details_max_lines": 15, "dynamic_details_show_arrows": true } }Applies To
Block-container tools (bash, write, edit, patch) when:
TodoWrite is excluded (always expanded) for visibility.
Implementation
Enhances the existing
BlockToolcomponent with collapse/expand logic rather than introducing new abstractions. Uses:virtualLineCountfor accurate "+N" displaymaxHeight+overflow: hiddenfor clipping when collapsedChanges
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx- Add dynamicDetails context, toggle command, and collapse logic in BlockToolpackages/opencode/src/config/config.ts- Add config options for max lines and arrow indicators