We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7722201 commit 73f8c9cCopy full SHA for 73f8c9c
1 file changed
lua/eca/sidebar.lua
@@ -1380,6 +1380,10 @@ end
1380
function M:render_tool_call(tool_content, chat_id)
1381
-- Handle explicit manual approval (toolCallRun with manualApproval flag)
1382
if tool_content.type == "toolCallRun" and tool_content.manualApproval then
1383
+ -- Mark as shown to prevent duplicate approval dialogs from implicit flow
1384
+ if self._current_tool_call then
1385
+ self._current_tool_call.approval_shown = true
1386
+ end
1387
return require("eca.approve").approve_tool_call(tool_content, function()
1388
self.mediator:send("chat/toolCallApprove", { chatId = chat_id, toolCallId = tool_content.id }, nil)
1389
end, function()
0 commit comments