Skip to content

Commit 7e0bd30

Browse files
committed
fix: auto-approve skill tool (no user confirmation required)
Skills are informational content that don't perform any actions, so they should be auto-approved like updateTodoList.
1 parent de9f998 commit 7e0bd30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/auto-approval/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export async function checkAutoApproval({
151151
return { decision: "approve" }
152152
}
153153

154+
if (tool.tool === "skill") {
155+
return { decision: "approve" }
156+
}
157+
154158
if (tool?.tool === "switchMode") {
155159
return state.alwaysAllowModeSwitch === true ? { decision: "approve" } : { decision: "ask" }
156160
}

0 commit comments

Comments
 (0)