anomalyco / anomalyco/opencode
[FEATURE]:I would like to fold/unfold the code generated on the chat in order to keep the chat organized and easily readable/navigatable
@Hona is already working on this.
Since Aug 10, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
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
I'd like the ability to manually fold/unfold code blocks generated in the chat, so long code snippets can be collapsed to keep the conversation view clean and easy to scan.
What I want: Each code block in the chat (whether from the assistant's response or tool output) would have a fold/collapse toggle — similar to
sections on GitHub, or the code folding available in most editors/IDEs. Folded blocks would show a short preview (e.g., first line, language, and line count) with a click/keypress to expand. Ideally this would be a manual toggle I control per-block, rather than only automatic collapsing based on size.
Benefits:
Keeps long conversations readable and easier to scroll/navigate, especially when many code blocks accumulate.
Lets me quickly scan the conversation structure (what was asked, what was generated) without long code dominating the screen.
Reduces visual clutter when revisiting older parts of a session to find a specific exchange.
Complements existing auto-collapse discussions (see #1816) by giving users direct manual control over any block, not just ones that exceed a size threshold.
Lets me quickly scan the conversation structure (what was asked, what was generated) without long code dominating the screen.
Reduces visual clutter when revisiting older parts of a session to find a specific exchange.
Complements existing auto-collapse discussions (see #1816) by giving users direct manual control over any block, not just ones that exceed a size threshold.
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.