File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ function M._scroll_to_bottom()
158158 end
159159
160160 if was_at_bottom or not is_focused then
161- -- vim.notify('was_at_bottom: ' .. tostring(was_at_bottom) .. ' is_focused: ' .. tostring(is_focused))
162161 require (' opencode.ui.ui' ).scroll_to_bottom ()
163162 end
164163end
@@ -523,6 +522,7 @@ function M.on_permission_updated(event)
523522 local part_id = M ._find_part_by_call_id (permission .callID )
524523 if part_id then
525524 M ._rerender_part (part_id )
525+ M ._scroll_to_bottom ()
526526 end
527527end
528528
@@ -538,6 +538,7 @@ function M.on_permission_replied(event)
538538 local part_id = M ._find_part_by_call_id (old_permission .callID )
539539 if part_id then
540540 M ._rerender_part (part_id )
541+ M ._scroll_to_bottom ()
541542 end
542543 end
543544end
You can’t perform that action at this time.
0 commit comments