Skip to content

Conversation

@ariane-emory
Copy link
Owner

@ariane-emory ariane-emory commented Jan 26, 2026

What does this PR do?

  • Remove diff_style from TUI config schema
  • Update diff rendering to read from kv.json instead of config
  • Change 'stacked' value to 'unified' for consistency
  • Add System menu item to toggle between auto and unified diff styles
  • Menu items immediately update diffs when toggled

This improves the UX by allowing the Dip Style to be toggled dynamically while OpenCode is running and improves consistency relative to other similar options already in Opencode. Since the TUI group in the configuration file is not validated strictly, this will not be a breaking change for any existing configurations.

When diff_style is unified, option to switch to automatic diff_style is offered:

Screenshot 2026-01-26 at 11 39 44 AM

When diff_style is auto, option to switch to unified diff_style is offered:

Screenshot 2026-01-26 at 11 40 03 AM

Resolves anomalyco#10711

How did you verify your code works?

Manual testing, bun typecheck, bun test.

- Remove diff_style from TUI config schema
- Update diff rendering to read from kv.json instead of config
- Change 'stacked' value to 'unified' for consistency
- Add System menu item to toggle between auto and unified diff styles
- Menu items immediately update diffs when toggled
@ariane-emory ariane-emory marked this pull request as draft January 26, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Replace tui.diff_style with KV backed storage

2 participants