mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
Fix optimistic rendering
This commit is contained in:
parent
994368de15
commit
6cbc5c5757
1 changed files with 3 additions and 5 deletions
|
@ -68,11 +68,9 @@ func (m *messagesComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
m.selectedPart = -1
|
||||
return m, nil
|
||||
case app.OptimisticMessageAddedMsg:
|
||||
m.renderView(m.width)
|
||||
if m.tail {
|
||||
m.viewport.GotoBottom()
|
||||
}
|
||||
return m, nil
|
||||
m.tail = true
|
||||
m.rendering = true
|
||||
return m, m.Reload()
|
||||
case dialog.ThemeSelectedMsg:
|
||||
m.cache.Clear()
|
||||
m.rendering = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue