Skip to content

Commit 984529a

Browse files
cameronrsudo-tee
authored andcommitted
chore(renderer): unit test compat
1 parent 85ad449 commit 984529a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/renderer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function M.reset()
4646
state.messages = {}
4747
state.last_user_message = nil
4848

49-
if state.current_permission then
49+
if state.current_permission and state.api_client then
5050
require('opencode.api').respond_to_permission('reject')
5151
state.current_permission = nil
5252
end

0 commit comments

Comments
 (0)