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

Open
opened 2026-02-16 18:07:50 -05:00 by yindo · 1 comment
Owner

Originally created by @ariane-emory on GitHub (Jan 26, 2026).

Originally assigned to: @thdxr 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

When I originally added the tui.diff_style setting a few months back, I was not yet familiar enough with the project to have been aware of the kv.json file. I have by now realized that KV storage would indeed be a more apt way to store the user's preferred diffStyle, since it allows for easier dynamic toggling and a cleaner configuration file.

Verdict: the diff_style property ought be moved to kv.json, and menu items in the command_list provided to toggle its value while Opencode is live.

Originally created by @ariane-emory on GitHub (Jan 26, 2026). Originally assigned to: @thdxr 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 When I originally added the `tui.diff_style` setting a few months back, I was not yet familiar enough with the project to have been aware of the `kv.json` file. I have by now realized that KV storage would indeed be a more apt way to store the user's preferred diffStyle, since it allows for easier dynamic toggling and a cleaner configuration file. **Verdict:** the `diff_style` property ought be moved to `kv.json`, and menu items in the `command_list` provided to toggle its value while Opencode is live.
yindo added the discussion label 2026-02-16 18:07:50 -05:00
Author
Owner

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

This feature request aligns with several related discussions in the repository about dynamic configuration and TUI settings management. Please consider checking these related issues:

  • #10571: Add tui.tips configuration option to disable input placeholder hints
  • #6240: Add hints toggle to declutter UI (proposes KV-backed toggling)
  • #7717: Add "/experimental" command to toggle experimental features (similar toggling pattern)
  • #9697: Light/Dark mode auto-switching (similar dynamic switching pattern)

These issues share common themes around:

  1. Moving TUI settings to more flexible storage (currently in opencode.json)
  2. Providing runtime/dynamic toggling of features via commands
  3. Improving configuration flexibility

Feel free to check these to ensure the implementation approach aligns with the broader architecture for configuration management in OpenCode.

@github-actions[bot] commented on GitHub (Jan 26, 2026): This feature request aligns with several related discussions in the repository about dynamic configuration and TUI settings management. Please consider checking these related issues: - #10571: Add tui.tips configuration option to disable input placeholder hints - #6240: Add hints toggle to declutter UI (proposes KV-backed toggling) - #7717: Add "/experimental" command to toggle experimental features (similar toggling pattern) - #9697: Light/Dark mode auto-switching (similar dynamic switching pattern) These issues share common themes around: 1. Moving TUI settings to more flexible storage (currently in opencode.json) 2. Providing runtime/dynamic toggling of features via commands 3. Improving configuration flexibility Feel free to check these to ensure the implementation approach aligns with the broader architecture for configuration management in OpenCode.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7651