[FEATURE]: Truncate output of long scripts/diffs by default #4499

Open
opened 2026-02-16 17:44:22 -05:00 by yindo · 2 comments
Owner

Originally created by @dansanduleac on GitHub (Jan 9, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Claude's vscode extension, as well as Cursor's agent mode, have this nice feature where long diffs, or outputs, are truncated to only a few lines by default.
This would also be nice in opencode, as it will make skimming past messages a lot easier.

Currently, scrolling through past messages requires wading through sometimes 50+ lines of diffs, or shell outputs.
Even if we can later trim those, e.g. via opencode-dcp, my chats still feel pretty verbose to scroll through.

We could make these expand to the full height (maybe in a modal) if the user clicks on them, or runs a Ctrl+P action while focused on the message in question.

Example from Claude VSCode extension:
Image

Example from Cursor:

Image
Originally created by @dansanduleac on GitHub (Jan 9, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Claude's vscode extension, as well as Cursor's agent mode, have this nice feature where long diffs, or outputs, are truncated to only a few lines by default. This would also be nice in opencode, as it will make skimming past messages a lot easier. Currently, scrolling through past messages requires wading through sometimes 50+ lines of diffs, or shell outputs. Even if we can later trim those, e.g. via opencode-dcp, my chats still feel pretty verbose to scroll through. We could make these expand to the full height (maybe in a modal) if the user clicks on them, or runs a Ctrl+P action while focused on the message in question. Example from Claude VSCode extension: <img width="716" height="462" alt="Image" src="https://github.com/user-attachments/assets/5dde6890-913a-47e5-904a-623bf408b14c" /> Example from Cursor: <img width="494" height="387" alt="Image" src="https://github.com/user-attachments/assets/bb485923-410e-4def-9e10-52c212ff79bd" />
yindo added the discussion label 2026-02-16 17:44:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #1816: Feature Request: Auto-collapse large outputs (stack traces/tool logs) with expand shortcut - Very similar request to truncate/collapse long outputs with ability to expand
  • #5358: [FEATURE]: Tool output preview - Related feature request about previewing and managing tool outputs to reduce clutter

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #1816: Feature Request: Auto-collapse large outputs (stack traces/tool logs) with expand shortcut - Very similar request to truncate/collapse long outputs with ability to expand - #5358: [FEATURE]: Tool output preview - Related feature request about previewing and managing tool outputs to reduce clutter Feel free to ignore if none of these address your specific case.
Author
Owner

@dansanduleac commented on GitHub (Jan 9, 2026):

I think this is indeed a duplicate of #1816 but that was closed due to inactivity.

@dansanduleac commented on GitHub (Jan 9, 2026): I think this is indeed a duplicate of #1816 but that was closed due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4499