You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Large completed tool outputs can make long TUI sessions difficult to read. This restores the V1-style ability to hide completed tool details while keeping running and failed tools visible.
It adds a persistent session.tool_details preference plus a bindable session.toggle.tool_details command. The command is intentionally unbound by default so it does not conflict with the existing <leader>i image shortcut.
PR #48300 overlaps with this change and provides broader show / minimal / hide modes. This PR is the narrower option focused on restoring the show/hide control and keyboard binding requested in #45872; I am happy for maintainers to fold these pieces into #48300 if that direction is preferred.
How did you verify your code works?
bun test test/config-v2.test.tsx test/keybind.test.ts: 20 passed, 0 failed.
bun run lint: 0 warnings and 0 errors.
Full pre-push bun run typecheck: 35 tasks passed.
The side-by-side patched client was connected to the user's existing V2 server and sessions without changing server or session data.
The user verified the problem and reviewed the resulting behavior and proposed control.
To verify manually, set session.tool_details to hide, or bind and invoke session.toggle.tool_details, in a session containing completed, running, and failed tool calls. Completed calls should disappear; running and failed calls should remain visible.
Screenshots / recordings
Not attached yet. The change restores the previous Hide tool details behavior without otherwise changing the TUI layout. A recording can be added if maintainers want one.
Checklist
I have tested my changes locally
I have not included unrelated changes in this PR
AI disclosure: This PR was created with OpenAI gpt-5.6-sol (medium variant) through the OpenCode V2 harness. The user directed the implementation and reviewed and verified the result.
This PR appears to address a similar concern about controlling tool call visibility in the TUI. It adds "minimal" and "hidden" tool call modes, which overlaps with the goal of PR feat(tui): restore tool detail visibility controls #49474 to restore tool detail visibility controls. These PRs may need coordination to ensure they don't duplicate functionality or create conflicting implementations.
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
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.
Issue for this PR
Closes #45872
Type of change
What does this PR do?
Large completed tool outputs can make long TUI sessions difficult to read. This restores the V1-style ability to hide completed tool details while keeping running and failed tools visible.
It adds a persistent
session.tool_detailspreference plus a bindablesession.toggle.tool_detailscommand. The command is intentionally unbound by default so it does not conflict with the existing<leader>iimage shortcut.PR #48300 overlaps with this change and provides broader
show/minimal/hidemodes. This PR is the narrower option focused on restoring the show/hide control and keyboard binding requested in #45872; I am happy for maintainers to fold these pieces into #48300 if that direction is preferred.How did you verify your code works?
bun test test/config-v2.test.tsx test/keybind.test.ts: 20 passed, 0 failed.bun run lint: 0 warnings and 0 errors.bun run typecheck: 35 tasks passed.To verify manually, set
session.tool_detailstohide, or bind and invokesession.toggle.tool_details, in a session containing completed, running, and failed tool calls. Completed calls should disappear; running and failed calls should remain visible.Screenshots / recordings
Not attached yet. The change restores the previous Hide tool details behavior without otherwise changing the TUI layout. A recording can be added if maintainers want one.
Checklist
AI disclosure: This PR was created with OpenAI
gpt-5.6-sol(medium variant) through the OpenCode V2 harness. The user directed the implementation and reviewed and verified the result.