Skip to content

Commit da9b5bb

Browse files
committed
Evals runner: add a final flushStep()
1 parent c4c5cf6 commit da9b5bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

evals/git-evals/runners/codebuff.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ export class CodebuffRunner implements Runner {
8080
} else if (event.type === 'tool_result') {
8181
toolResults.push(event as any)
8282
console.log('\n\n' + JSON.stringify(event, null, 2))
83+
} else if (event.type === 'finish') {
84+
if (
85+
responseText.length > 0 ||
86+
toolCalls.length > 0 ||
87+
toolResults.length > 0
88+
) {
89+
flushStep()
90+
}
8391
}
8492
},
8593
handleStreamChunk: (chunk) => {

0 commit comments

Comments
 (0)