[PR #4756] feat: add a diff_style option to allow disabling columnar diffs (resolve #4677) #11100

Closed
opened 2026-02-16 18:15:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4756

State: closed
Merged: Yes


This adds a diff_style option to the experimental section of opencode.jsonc to allow users to disable two column diff, providing a way to resolve #4677.

There are two valid values for this setting:

  • "auto", which maintains the existing current behaviour of picking whether or not to columnate diffs based on the size of the enclosing terminal, or...
  • "stacked", which prevents diffs from ever being columnated regardless of the terminal's size.

If no "diff_style" property is present, the default behaviour is as "auto".

I'm not totally certain whether this should go in the experimental section of the config or not, I erred on the side of caution and put it there for now. What do y'all think? If you'd rather have it somewhere else (top level?) I can certainly move it.

It is working well for me so far, so it's not really much of an experiment in that sense, but there weren't many other string-valued keys at the top-level of opencode.jsonc (most other top-level properties are object-valued) so I wasn't completely certain where this should go.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4756 **State:** closed **Merged:** Yes --- This adds a diff_style option to the experimental section of opencode.jsonc to allow users to disable two column diff, providing a way to resolve #4677. There are two valid values for this setting: - `"auto"`, which maintains the existing current behaviour of picking whether or not to columnate diffs based on the size of the enclosing terminal, or... - `"stacked"`, which prevents diffs from ever being columnated regardless of the terminal's size. If no `"diff_style"` property is present, the default behaviour is as `"auto"`. I'm not totally certain whether this should go in the `experimental` section of the config or not, I erred on the side of caution and put it there for now. What do y'all think? If you'd rather have it somewhere else (top level?) I can certainly move it. It is working well for me so far, so it's not really much of an experiment in that sense, but there weren't many other string-valued keys at the top-level of `opencode.jsonc` (most other top-level properties are object-valued) so I wasn't completely certain where this should go.
yindo added the pull-request label 2026-02-16 18:15:53 -05:00
yindo closed this issue 2026-02-16 18:15:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11100