mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 21:38:01 +00:00
feat(tui): more toast messages
This commit is contained in:
parent
e1f12f93eb
commit
f48eac638d
2 changed files with 13 additions and 3 deletions
|
@ -28,6 +28,7 @@ type MessagesComponent interface {
|
|||
Last() (tea.Model, tea.Cmd)
|
||||
// Previous() (tea.Model, tea.Cmd)
|
||||
// Next() (tea.Model, tea.Cmd)
|
||||
ToolDetailsVisible() bool
|
||||
}
|
||||
|
||||
type messagesComponent struct {
|
||||
|
@ -426,6 +427,10 @@ func (m *messagesComponent) Last() (tea.Model, tea.Cmd) {
|
|||
return m, nil
|
||||
}
|
||||
|
||||
func (m *messagesComponent) ToolDetailsVisible() bool {
|
||||
return m.showToolDetails
|
||||
}
|
||||
|
||||
func NewMessagesComponent(app *app.App) MessagesComponent {
|
||||
customSpinner := spinner.Spinner{
|
||||
Frames: []string{" ", "┃", "┃"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue