We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54643ba commit 1e26467Copy full SHA for 1e26467
1 file changed
cli.ts
@@ -345,13 +345,12 @@ async function main(): Promise<void> {
345
console.log(
346
`${logPrefix} Retrying agent run (attempt ${attempt + 1}/${retries})...`,
347
);
348
- usage.input = 0;
349
- usage.output = 0;
350
}
351
},
352
353
354
+ // Only accumulate usage from the successful result
355
usage.input += result.usage.input;
356
usage.output += result.usage.output;
357
0 commit comments