test(runner): accept startup detection of damaged resume input

Keep the archive, retained-input, same-task and successful-recovery assertions while accepting either startup or attach as the point that detects the deliberately corrupted fixture.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta 2026-09-10 17:09:11 -05:00
parent 70a73dc728
commit 4110f8001b
1 changed files with 5 additions and 2 deletions

View File

@ -1017,8 +1017,11 @@ const recoveryFakeCodex = resolve(
normalizedSessionId,
});
expect(continuity).toMatchObject({
reason: expect.stringContaining(
"run.attach requires a settled Codex provider session",
// The deliberately corrupt input may be rejected during provider
// startup or by run.attach after startup has reported the failure.
// Both paths must archive the same damaged epoch and recover below.
reason: expect.stringMatching(
/run\.attach requires a settled Codex provider session|semantic tool input content digest does not match its transmitted input/,
),
previousDriverSessionId: checkpoint.sessionId,
});