fix: permission state hangs

This commit is contained in:
adamdotdevin 2025-07-31 11:36:08 -05:00
commit 936f4cb0c6
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 7 additions and 2 deletions

View file

@ -200,6 +200,9 @@ func (m *messagesComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case opencode.EventListResponseEventPermissionUpdated:
m.tail = true
return m, m.renderView()
case app.PermissionRespondedToMsg:
m.tail = true
return m, m.renderView()
case renderCompleteMsg:
m.partCount = msg.partCount
m.lineCount = msg.lineCount