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
@@ -66,6 +66,16 @@ describe('run timeline formatting', () => {
agentName: 'Writer',
toolName: 'file_search',
}))).toBe('Writer used file_search');
expect(formatEventLabel(createEvent({
kind: 'approval',
status: 'running',
approvalTitle: 'Approve tool access',
}))).toBe('Approve tool access');
expect(formatEventLabel(createEvent({
kind: 'approval',
status: 'completed',
approvalTitle: 'Approve final response',
}))).toBe('Approve final response approved');
expect(formatEventLabel(createEvent({ kind: 'message', agentName: 'Reviewer' }))).toBe('Reviewer');
expect(formatEventLabel(createEvent({ kind: 'run-completed' }))).toBe('Completed');
expect(formatEventLabel(createEvent({ kind: 'run-failed' }))).toBe('Failed');