Skip to content

Commit 857aa33

Browse files
committed
test(codex): keep the post-record event inside the burst window
The resumed spawned-child test pins that a token_usage_record never starts a replay skip. Its post-record token_count sat 1.86s after the record, outside the 1s rewritten-burst window. A broken rule that started a burst skip at the record would therefore still count that event, and the test would pass. Move the event to 800ms after the record, so it falls inside that window. Checked against two deliberately broken parsers: one starting a burst skip at the record and one skipping all usage before the first record. The test now fails under both; with the original timestamp it passed under the first. Reported by Pullfrog on #2051.
1 parent 5b94131 commit 857aa33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rust/adapters/codex/src/loader.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ mod tests {
23662366
"payload": {"response_id": "resp_child", "usage": {"input_tokens": 300, "output_tokens": 1}},
23672367
})
23682368
.to_string(),
2369-
replay_token_count("2026-09-04T09:02:01.966Z", 300),
2369+
replay_token_count("2026-09-04T09:02:00.903Z", 300),
23702370
]
23712371
.join("\n"),
23722372
});

0 commit comments

Comments
 (0)