Skip to content

Commit dbf8ba6

Browse files
Resolve merge conflicts by correcting agentId handling in subagent events and aligning tests with runtime changes.
Fix stray 'chunk satisfies never' in ClaudeRunner and update test assertion to use toHaveProperty. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent f52ae73 commit dbf8ba6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

backend/src/tools/handlers/tool/spawn-agent-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export async function executeSubagent(
333333

334334
onResponseChunk({
335335
type: 'subagent_start',
336-
agentId: agentState.agentId,
336+
agentId: withDefaults.agentState.agentId,
337337
agentType: agentTemplate.id,
338338
displayName: agentTemplate.displayName,
339339
onlyChild: isOnlyChild,
@@ -349,7 +349,7 @@ export async function executeSubagent(
349349

350350
onResponseChunk({
351351
type: 'subagent_finish',
352-
agentId: agentState.agentId,
352+
agentId: result.agentState.agentId,
353353
agentType: agentTemplate.id,
354354
displayName: agentTemplate.displayName,
355355
onlyChild: isOnlyChild,

evals/git-evals/runners/claude.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class ClaudeRunner implements Runner {
8585
console.log(`\n\nResult: ${JSON.stringify(chunk, null, 2)}`)
8686
totalCostUsd += chunk.total_cost_usd
8787
} else {
88-
chunk satisfies never
8988
const chunkAny = chunk as any
9089
console.log(
9190
`\n\nUnprocessed chunk (${chunkAny.type}) ${JSON.stringify(chunkAny, null, 2)}`,

npm-app/src/__tests__/tool-handlers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export interface TestInterface {
9797

9898
const result = await handleCodeSearch(parameters, 'test-id')
9999

100-
expect(result[0].value).toContainKey('message')
100+
expect(result[0].value).toHaveProperty('message')
101101
})
102102

103103
test('finds specific content in test file', async () => {

0 commit comments

Comments
 (0)