mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-06 19:58:43 +02:00
feat: add tool-specific approval overrides
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -122,6 +122,9 @@ describe('session library helpers', () => {
|
||||
isPinned: true,
|
||||
isArchived: true,
|
||||
lastError: 'sidecar crashed',
|
||||
approvalSettings: {
|
||||
autoApprovedToolNames: ['git.status'],
|
||||
},
|
||||
pendingApproval: {
|
||||
id: 'approval-1',
|
||||
kind: 'tool-call',
|
||||
@@ -165,6 +168,9 @@ describe('session library helpers', () => {
|
||||
updatedAt: '2026-03-23T00:07:00.000Z',
|
||||
});
|
||||
expect(session.messages[0]?.pending).toBe(false);
|
||||
expect(session.approvalSettings).toEqual({
|
||||
autoApprovedToolNames: ['git.status'],
|
||||
});
|
||||
expect(session.pendingApproval).toBeUndefined();
|
||||
expect(session.pendingApprovalQueue).toBeUndefined();
|
||||
expect(session.runs).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user