Skip to content

Commit 14911d5

Browse files
sudo-teeCopilot
andauthored
fix(permission): conditionnal check should exclude new format
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 93a3bee commit 14911d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lua/opencode/ui/formatter.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,11 @@ function M._format_tool(output, part)
690690
and state.current_permission.tool.messageID == part.messageID
691691
)
692692
---@TODO this is for backward compatibility, remove later
693-
or (state.current_permission.messageID == part.messageID and state.current_permission.callID == part.callID)
693+
or (
694+
not state.current_permission.tool
695+
and state.current_permission.messageID == part.messageID
696+
and state.current_permission.callID == part.callID
697+
)
694698
)
695699
then
696700
M._handle_permission_request(output, part)

0 commit comments

Comments
 (0)