mirror of
https://github.com/sst/opencode.git
synced 2025-08-03 21:28:14 +00:00
fix(tui): build and bg color
This commit is contained in:
parent
229a280652
commit
a53d2ea356
2 changed files with 4 additions and 6 deletions
|
@ -111,13 +111,11 @@ func (s *sessionDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
)
|
||||
}
|
||||
case "n":
|
||||
s.app.Session = &opencode.Session{}
|
||||
s.app.Messages = []app.Message{}
|
||||
return s, tea.Sequence(
|
||||
util.CmdHandler(modal.CloseModalMsg{}),
|
||||
func() tea.Msg {
|
||||
s.app.Session = &opencode.Session{}
|
||||
s.app.Messages = []opencode.MessageUnion{}
|
||||
return app.SessionClearedMsg{}
|
||||
},
|
||||
util.CmdHandler(app.SessionClearedMsg{}),
|
||||
)
|
||||
case "x", "delete", "backspace":
|
||||
if _, idx := s.list.GetSelectedItem(); idx >= 0 && idx < len(s.sessions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue