diff --git a/test/main/services/team/OpenCodeSemanticModelGauntlet.live.test.ts b/test/main/services/team/OpenCodeSemanticModelGauntlet.live.test.ts index e79d04e5..676209c1 100644 --- a/test/main/services/team/OpenCodeSemanticModelGauntlet.live.test.ts +++ b/test/main/services/team/OpenCodeSemanticModelGauntlet.live.test.ts @@ -911,6 +911,10 @@ async function runGauntletOnce(input: { score >= 90 && !isHardProtocolFailure(stages) ? 'none' : classifyGauntletFailure({ diagnostics, stages }); + if (failureCategory !== 'none' && process.env.OPENCODE_E2E_KEEP_FAILED === '1') { + keepTempDir = true; + diagnostics.push(`tempDir=${tempDir}`); + } return { runIndex: input.runIndex, passed: failureCategory === 'none',