diff --git a/apps/x/apps/renderer/src/lib/session-chat/test-fixtures.ts b/apps/x/apps/renderer/src/lib/session-chat/test-fixtures.ts index d20c4bd0..3df22529 100644 --- a/apps/x/apps/renderer/src/lib/session-chat/test-fixtures.ts +++ b/apps/x/apps/renderer/src/lib/session-chat/test-fixtures.ts @@ -46,16 +46,10 @@ export function created( } } -type RequestRef = - | { kind: 'context' } - | { kind: 'input' } - | { kind: 'assistant'; modelCallIndex: number } - | { kind: 'toolResult'; toolCallId: string } - export function requested( turnId: string, index: number, - refs: RequestRef[] = [{ kind: 'input' }], + refs: string[] = ['input'], ): TEvent { return { type: 'model_call_requested', diff --git a/apps/x/apps/renderer/src/lib/session-chat/turn-view.test.ts b/apps/x/apps/renderer/src/lib/session-chat/turn-view.test.ts index 4c43c7c1..937ad9a2 100644 --- a/apps/x/apps/renderer/src/lib/session-chat/turn-view.test.ts +++ b/apps/x/apps/renderer/src/lib/session-chat/turn-view.test.ts @@ -92,8 +92,8 @@ describe('buildTurnConversation', () => { invocation(T1, 'tc1', 'echo'), toolResult(T1, 'tc1', 'echo', { echoed: true }), requested(T1, 1, [ - { kind: 'assistant', modelCallIndex: 0 }, - { kind: 'toolResult', toolCallId: 'tc1' }, + 'assistant:0', + 'toolResult:tc1', ]), completed(T1, 1, assistantText('all done')), turnCompleted(T1, 'all done'),