Skip to content

The open source coding agent.

TypeScript

fix(tui): make opencode theme default

adamdottvccbc9e00f281
diff --git a/packages/tui/internal/config/config.go b/packages/tui/internal/config/config.go
index 687685df3a3..29db8657e2d 100644
--- a/packages/tui/internal/config/config.go
+++ b/packages/tui/internal/config/config.go
@@ -18,7 +18,7 @@ type State struct {
func NewState() *State {
return &State{
- Theme: "system",
+ Theme: "opencode",
}
}
diff --git a/packages/tui/internal/theme/manager.go b/packages/tui/internal/theme/manager.go
index 583e8c491d6..420b96dea92 100644
--- a/packages/tui/internal/theme/manager.go
+++ b/packages/tui/internal/theme/manager.go
@@ -93,14 +93,14 @@ func AvailableThemes() []string {
names = append(names, name)
}
slices.SortFunc(names, func(a, b string) int {
- if a == "system" {
+ if a == "opencode" {
return -1
- } else if b == "system" {
+ } else if b == "opencode" {
return 1
}
- if a == "opencode" {
+ if a == "system" {
return -1
- } else if b == "opencode" {
+ } else if b == "system" {
return 1
}
return strings.Compare(a, b)