Skip to content

Commit c929e2b

Browse files
authored
agent_run and agent_step tables (#267)
1 parent 4cc194f commit c929e2b

28 files changed

+3893
-330
lines changed

backend/src/__tests__/agent-run.test.ts

Lines changed: 485 additions & 0 deletions
Large diffs are not rendered by default.

backend/src/__tests__/cost-aggregation.integration.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ describe('Cost Aggregation Integration Tests', () => {
190190
// Subagent writes a file
191191
yield '<codebuff_tool_call>\n{"cb_tool_name": "write_file", "path": "hello.txt", "instructions": "Create hello world file", "content": "Hello, World!"}\n</codebuff_tool_call>'
192192
}
193+
if (options.resolveMessageId) {
194+
options.resolveMessageId('mock-message-id')
195+
}
193196
},
194197
)
195198

@@ -347,6 +350,10 @@ describe('Cost Aggregation Integration Tests', () => {
347350
// Second-level subagent does actual work
348351
yield '<codebuff_tool_call>\n{"cb_tool_name": "write_file", "path": "nested.txt", "instructions": "Create nested file", "content": "Nested content"}\n</codebuff_tool_call>'
349352
}
353+
354+
if (options.resolveMessageId) {
355+
options.resolveMessageId('mock-message-id')
356+
}
350357
},
351358
)
352359

@@ -400,6 +407,10 @@ describe('Cost Aggregation Integration Tests', () => {
400407
yield 'Some response'
401408
throw new Error('Subagent execution failed')
402409
}
410+
411+
if (options.resolveMessageId) {
412+
options.resolveMessageId('mock-message-id')
413+
}
403414
},
404415
)
405416

0 commit comments

Comments
 (0)