Skip to content

Commit 1e26467

Browse files
committed
minor changes
1 parent 54643ba commit 1e26467

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cli.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,12 @@ async function main(): Promise<void> {
345345
console.log(
346346
`${logPrefix} Retrying agent run (attempt ${attempt + 1}/${retries})...`,
347347
);
348-
usage.input = 0;
349-
usage.output = 0;
350348
}
351349
},
352350
},
353351
);
354352

353+
// Only accumulate usage from the successful result
355354
usage.input += result.usage.input;
356355
usage.output += result.usage.output;
357356

0 commit comments

Comments
 (0)