The open source coding agent.
TypeScript
fix(tui): make opencode theme default
adamdottvb17ec4646372
diff --git a/packages/tui/internal/config/config.go b/packages/tui/internal/config/config.goindex 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.goindex 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)