We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba487c5 commit 85ad449Copy full SHA for 85ad449
lua/opencode/ui/renderer.lua
@@ -45,13 +45,17 @@ function M.reset()
45
46
state.messages = {}
47
state.last_user_message = nil
48
- state.current_permission = nil
+
49
+ if state.current_permission then
50
+ require('opencode.api').respond_to_permission('reject')
51
+ state.current_permission = nil
52
+ end
53
trigger_on_data_rendered()
54
end
55
56
---Set up all subscriptions, for both local and server events
57
function M.setup_subscriptions(_)
- M._subscriptions.active_session = function(_, new, _)
58
+ M._subscriptions.active_session = function(_, new, old)
59
M.reset()
60
if new then
61
M.render_full_session()
0 commit comments