anomalyco / anomalyco/opencode
[FEATURE]: Collapsible tool output (code/diff/blocks) in TUI
@kommander is already working on this.
Since Aug 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
- I have verified this feature I'm about to request hasn't been suggested before.
Tool output blocks (Write, Edit, Shell, GenericTool) render fully expanded, adding noise in long sessions and making chain-of-thought hard to follow.
Request: Add a global toggle (/collapse slash command + optional keybind) that collapses all tool blocks to a summary line (file name / diff stats / line count). Per-block click-to-expand via local override on top of the global mode.
Working prototype on my fork: https://github.com/aravasio/opencode/tree/collapse-tool-output
Happy to open a PR if this direction is accepted.
Screenshots for reference
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.