fix: require tool approval by default

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-25 21:23:01 +01:00
co-authored by Copilot
parent cc3c04b841
commit 29c054f47d
10 changed files with 56 additions and 8 deletions
+1
View File
@@ -31,6 +31,7 @@ describe('workspace seed', () => {
for (const pattern of workspace.patterns) {
expect(pattern.createdAt).toBe(workspace.lastUpdatedAt);
expect(pattern.updatedAt).toBe(workspace.lastUpdatedAt);
expect(pattern.approvalPolicy?.rules).toContainEqual({ kind: 'tool-call' });
}
const magentic = workspace.patterns.find((pattern) => pattern.mode === 'magentic');