chore: consolidate chat page into tui.go

This commit is contained in:
adamdottv 2025-06-17 07:09:04 -05:00
commit a5da5127fa
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
17 changed files with 236 additions and 372 deletions

View file

@ -10,8 +10,8 @@ import (
"github.com/sst/opencode/internal/util"
)
// ThemeChangedMsg is sent when the theme is changed
type ThemeChangedMsg struct {
// ThemeSelectedMsg is sent when the theme is changed
type ThemeSelectedMsg struct {
ThemeName string
}
@ -75,7 +75,7 @@ func (t *themeDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
return t, tea.Sequence(
util.CmdHandler(modal.CloseModalMsg{}),
util.CmdHandler(ThemeChangedMsg{ThemeName: selectedTheme}),
util.CmdHandler(ThemeSelectedMsg{ThemeName: selectedTheme}),
)
}
}