usage-per-turn: the captured error result carries result_index 0 and no usage

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-11 22:16:57 +01:00
commit b920f3f81f

View file

@ -1016,7 +1016,7 @@ fn unreadable_and_foreign_lines_are_skipped_and_never_printed() {
]);
assert_eq!(ran.lines(), "request 1 prefix 10
result subtype=success is_error=true: Failed to authenticate: OAuth session expired and could not be refreshed
usage turn ?: not reported
usage turn 0: not reported
");
let outcome = ran.outcome.as_ref().unwrap().to_string();
assert!(!ran.out.contains(canary) && !outcome.contains(canary));