Skip to content

Commit 4b901d4

Browse files
cameronrsudo-tee
authored andcommitted
chore(renderer): always set current_permission to nil
1 parent 984529a commit 4b901d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/opencode/ui/renderer.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function M.reset()
4848

4949
if state.current_permission and state.api_client then
5050
require('opencode.api').respond_to_permission('reject')
51-
state.current_permission = nil
5251
end
52+
state.current_permission = nil
5353
trigger_on_data_rendered()
5454
end
5555

5656
---Set up all subscriptions, for both local and server events
5757
function M.setup_subscriptions(_)
58-
M._subscriptions.active_session = function(_, new, old)
58+
M._subscriptions.active_session = function(_, new, _)
5959
M.reset()
6060
if new then
6161
M.render_full_session()

0 commit comments

Comments
 (0)