fix(tui): async load messages on theme/session switch

This commit is contained in:
adamdottv
2025-06-20 11:25:21 -05:00
parent b1a3599017
commit 9ea0d71e8d
2 changed files with 10 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ type CommandsComponent interface {
tea.Model
tea.ViewModel
layout.Sizeable
SetBackgroundColor(color compat.AdaptiveColor)
}
type commandsComponent struct {
@@ -38,6 +39,10 @@ func (c *commandsComponent) GetSize() (int, int) {
return c.width, c.height
}
func (c *commandsComponent) SetBackgroundColor(color compat.AdaptiveColor) {
c.background = &color
}
func (c *commandsComponent) Init() tea.Cmd {
return nil
}