fix(tui): make bash outputs respect "Show tool details" toggle#6908
fix(tui): make bash outputs respect "Show tool details" toggle#6908stevenvo wants to merge 1 commit intoanomalyco:devfrom
Conversation
- Complete existing "Show tool details" feature to affect live TUI display - Bash outputs now truncate at 5 lines when tool details are hidden - Hide verbose environment variable prefixes when collapsed - Add 'o' key to toggle individual bash output expansion - Show "... +N lines (press 'o' to expand)" indicator for truncated outputs - Per-tool expansion state independent of global toggle
|
The following comment was made by an LLM, it may be inaccurate: Search ResultsI found 2 potentially related PRs that may be duplicates or closely related:
Note: PR #6908 is the current PR being submitted. Recommendation: Check PRs #6393 and #4791 to see if they're already addressing this functionality or if they can be consolidated. PR #6393 in particular seems to be directly related to the "Dynamic Details" / compact output feature. |
|
This is my solution to the problem, works incredible. #6393 |
|
@ryanwyler i thought about that, but there was already a "show/hide tool details" in the palette. Why not fixing that feature to make it work correctly... |
Summary
Completes the existing "Show tool details" feature (
Ctrl+Pcommand palette) by making it affect bash output rendering in the live TUI view, not just transcript exports.Problem
The "Show tool details" toggle only affected transcript exports. Bash outputs in the live TUI always showed:
This made the TUI difficult to navigate and scan through session history.
Solution
showDetails()settingUser Experience
Before (tool details always shown):
After (respects "Show tool details" setting):
Changes
BlockToolcomponent to supportonExpandcallback and 'o' key handlerBashcomponent to respectshowDetails()settingTesting
Ctrl+P