test: settle the post-response composer before seeding; give the TPA recorder adapter its infra helper

submitPlanSeed accepted a stale empty composer when the transcript recorded
end_turn before the CLI repainted (late-repaint-typed-current fails 5/5 on the
old helper, passes 5/5 now). The TPA recording fixture extracted recordE2E
without isPreTurnInfraFailure, so every failed case threw before recording.
This commit is contained in:
garrytan committed 2026-09-29 20:43:00 +00:00
1 parent 80c92c86ed
commit 3fc05932b7
4 files changed
+20 -9

No files matched your search

+3 -1
View File
@@ -85,8 +85,10 @@ process.stdin.on('data',chunk=>{
const current=scenario==='prose-question'?'\r\nWhich option do you prefer?\r\nA) Full review (recommended)\r\nB) Skip review\r\n❯ '
:scenario.endsWith('multiline-current')?'\r\n keep this draft'
:scenario.endsWith('typed-current')?'keep this draft':'';
frame(current,history,scenario.endsWith('missing-current-top')||scenario==='unframed-current'?'':rule,
// The native CLI can write end_turn before it repaints; the stale empty box must not count.
const paint=()=>frame(current,history,scenario.endsWith('missing-current-top')||scenario==='unframed-current'?'':rule,
scenario.endsWith('missing-current-bottom')||scenario==='unframed-current'?'':scenario==='mismatched-current-rules'?rule.slice(1):rule);
if(scenario==='late-repaint-typed-current')setTimeout(paint,60);else paint();
if(scenario==='stray-prompt-after-current')process.stdout.write('\r❯ keep this later draft');
},180);return;
}