feat(tui): more toast messages

This commit is contained in:
adamdottv 2025-06-19 10:41:59 -05:00
parent e1f12f93eb
commit f48eac638d
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 13 additions and 3 deletions

View file

@ -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{" ", "┃", "┃"},