Files
Roverp 1089b2caba opencode: add programs.opencode.tui option
OpenCode v1.2.15 introduced a separate tui.json file for TUI-specific
settings, deprecating theme/keybinds in config.json.
Changes:
- Add programs.opencode.tui option for TUI settings
- Generate separate ~/.config/opencode/tui.json with proper schema
- Add deprecation warnings for theme/keybinds in settings
- Add tests for new functionality
- Fix existing tests that used deprecated theme in settings

See: https://opencode.ai/docs/config#tui
Release: https://github.com/anomalyco/opencode/releases/tag/v1.2.15

Co-authored-by: Thierry Delafontaine <delafthi@pm.me>
2026-04-04 22:48:59 -05:00

16 lines
356 B
Nix

{
programs.opencode = {
enable = true;
settings = {
model = "anthropic/claude-sonnet-4-20250514";
autoshare = false;
autoupdate = true;
};
};
nmt.script = ''
assertFileExists home-files/.config/opencode/opencode.json
assertFileContent home-files/.config/opencode/opencode.json \
${./opencode.json}
'';
}