Skip to content

Comments

feat: compact/detailed tool output toggle in TUI chat#479

Merged
bug-ops merged 1 commit intomainfrom
feat/m27/compact-tool-output
Feb 17, 2026
Merged

feat: compact/detailed tool output toggle in TUI chat#479
bug-ops merged 1 commit intomainfrom
feat/m27/compact-tool-output

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 17, 2026

Summary

  • Add compact_tools toggle to TUI App state (default: detailed)
  • c keybinding in Normal mode switches between compact and detailed tool output
  • Compact mode: single summary line per tool call (-- N lines) in DIM style
  • Detailed mode: full output (current behavior preserved)
  • Correct singular/plural grammar ("1 line" vs "N lines")

Changes

  • app.rscompact_tools field, accessor, 'c' keybinding handler
  • chat.rs — conditional rendering in render_tool_message, compact summary with line count

Test plan

  • 1560 tests pass, 0 failures
  • Clippy clean
  • Fmt clean
  • Manual: run --tui, execute commands, press c to toggle

Closes #450

@github-actions github-actions bot added rust enhancement New feature or request size/M labels Feb 17, 2026
Add 'c' keybinding in Normal mode to toggle between compact and
detailed tool output display. Compact mode shows a single summary
line per tool call (e.g. "-- 42 lines") instead of the full output.

Closes #450
@bug-ops bug-ops force-pushed the feat/m27/compact-tool-output branch from bd4cb58 to ec63b41 Compare February 17, 2026 17:33
@bug-ops bug-ops merged commit 1d90116 into main Feb 17, 2026
18 checks passed
@bug-ops bug-ops deleted the feat/m27/compact-tool-output branch February 17, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request rust size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: add compact/detailed tool output toggle in chat

1 participant