@@ -70,7 +70,6 @@ func main() {
}()
// Create main context for the application
-
app_, err := app.New(ctx, version, appInfo, modes, httpClient, model, prompt, mode)
if err != nil {
panic(err)
@@ -79,7 +78,6 @@ func main() {
program := tea.NewProgram(
tui.NewModel(app_),
tea.WithAltScreen(),
- // tea.WithKeyboardEnhancements(),
tea.WithMouseCellMotion(),
)
@@ -3,6 +3,7 @@ package app
import (
"context"
"fmt"
+ "os"
"path/filepath"
"sort"
"strings"
@@ -103,6 +104,10 @@ func New(
if configInfo.Theme != "" {
appState.Theme = configInfo.Theme
}
+ themeEnv := os.Getenv("OPENCODE_THEME")
+ if themeEnv != "" {
+ appState.Theme = themeEnv
+ }
var modeIndex int
var mode *opencode.Mode