Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 5d63889

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 1590022 commit 5d63889

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)