fix: honor tools.exec ask/security in approvals
This commit is contained in:
1 parent
fd23b9b209
commit
5662a9cdfc
6 files changed
+44
-9
No files matched your search
@@ -248,7 +248,7 @@ export function registerNodesInvokeCommands(nodes: Command) {
|
||||
const approvals = resolveExecApprovalsFromFile({
|
||||
file: approvalsFile as ExecApprovalsFile,
|
||||
agentId,
|
||||
overrides: { security: "allowlist" },
|
||||
overrides: { security, ask },
|
||||
});
|
||||
const hostSecurity = minSecurity(security, approvals.agent.security);
|
||||
const hostAsk = maxAsk(ask, approvals.agent.ask);
|
||||
|
||||
Reference in new issue
Block a user