feat: add approval checkpoints backend

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-24 19:48:58 +01:00
co-authored by Copilot
parent e7dfb66038
commit 2aa8d73b2d
28 changed files with 1471 additions and 23 deletions
+8
View File
@@ -122,6 +122,13 @@ describe('session library helpers', () => {
isPinned: true,
isArchived: true,
lastError: 'sidecar crashed',
pendingApproval: {
id: 'approval-1',
kind: 'tool-call',
status: 'pending',
requestedAt: '2026-03-23T00:01:00.000Z',
title: 'Approve tool access',
},
messages: [
{
id: 'msg-1',
@@ -149,6 +156,7 @@ describe('session library helpers', () => {
updatedAt: '2026-03-23T00:07:00.000Z',
});
expect(session.messages[0]?.pending).toBe(false);
expect(session.pendingApproval).toBeUndefined();
expect(session.runs).toEqual([]);
});