diff options
| author | adamdottv <[email protected]> | 2025-05-12 09:44:56 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 09:44:56 -0500 |
| commit | dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c (patch) | |
| tree | ebf8123a492626a31b7767b18a60594879cd70b0 /internal/tui/components/core/status.go | |
| parent | ed9fba99c9e230094ed5d468c88f81469d60c911 (diff) | |
| download | opencode-dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c.tar.gz opencode-dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c.zip | |
wip: refactoring
Diffstat (limited to 'internal/tui/components/core/status.go')
| -rw-r--r-- | internal/tui/components/core/status.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/tui/components/core/status.go b/internal/tui/components/core/status.go index 84e0be42b..5de0b852e 100644 --- a/internal/tui/components/core/status.go +++ b/internal/tui/components/core/status.go @@ -65,13 +65,13 @@ func (m statusCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case chat.SessionClearedMsg: m.session = session.Session{} case pubsub.Event[session.Session]: - if msg.Type == pubsub.UpdatedEvent { + if msg.Type == session.EventSessionUpdated { if m.session.ID == msg.Payload.ID { m.session = msg.Payload } } case pubsub.Event[status.StatusMessage]: - if msg.Type == pubsub.CreatedEvent { + if msg.Type == status.EventStatusPublished { statusMsg := statusMessage{ Level: msg.Payload.Level, Message: msg.Payload.Message, @@ -308,4 +308,3 @@ func NewStatusCmp(lspClients map[string]*lsp.Client) StatusCmp { return statusComponent } - |
