Skip to content

Commit 651ff6a

Browse files
authored
feat: write always allow permissions to local settings, not just session (#666)
Now we write away to the users `.claude/settings.local.json`. We were already reading from it, so it should work both ways
1 parent 6669a38 commit 651ff6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/agent/src/adapters/claude/permission-handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ async function applyPlanApproval(
207207
{
208208
type: "setMode",
209209
mode: response.outcome.optionId,
210-
destination: "session",
210+
destination: "localSettings",
211211
},
212212
],
213213
};
@@ -373,7 +373,7 @@ async function handleDefaultPermissionFlow(
373373
type: "addRules",
374374
rules: [{ toolName }],
375375
behavior: "allow",
376-
destination: "session",
376+
destination: "localSettings",
377377
},
378378
],
379379
};

0 commit comments

Comments
 (0)