diff options
| author | adamdottv <[email protected]> | 2025-05-28 14:02:03 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-28 15:36:35 -0500 |
| commit | 8863a499a9e311a48d6ab8bc05d267fb2a01f060 (patch) | |
| tree | 304aabab518270af4b2ca4c0870f3b1bf0012038 /internal/tui/components | |
| parent | 15d21bf04acd6af75df97918f66df866c239b248 (diff) | |
| download | opencode-8863a499a9e311a48d6ab8bc05d267fb2a01f060.tar.gz opencode-8863a499a9e311a48d6ab8bc05d267fb2a01f060.zip | |
wip: refactoring tui
Diffstat (limited to 'internal/tui/components')
| -rw-r--r-- | internal/tui/components/chat/messages.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/tui/components/chat/messages.go b/internal/tui/components/chat/messages.go index 681606b9f..668f0f6cd 100644 --- a/internal/tui/components/chat/messages.go +++ b/internal/tui/components/chat/messages.go @@ -104,6 +104,10 @@ func (m *messagesCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case renderFinishedMsg: m.rendering = false m.viewport.GotoBottom() + case state.StateUpdatedMsg: + m.renderView() + m.viewport.GotoBottom() + case pubsub.Event[message.Message]: needsRerender := false if msg.Type == message.EventMessageCreated { |
