summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/components
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/components')
-rw-r--r--internal/tui/components/chat/messages.go4
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 {