fix(codex): reconcile cold connections without resuming queued goals
This commit is contained in:
@@ -152,6 +152,12 @@ try {
|
||||
await page.click('.chat-bg-task');
|
||||
await eventually(()=>page.evaluate("document.querySelector('.chat-bg-task-output')?.textContent==='Controlled background output'"));
|
||||
if(process.env.PIPELINES_CAPTURE_DIR) await page.screenshot(join(process.env.PIPELINES_CAPTURE_DIR,'harness-background-output.png'));
|
||||
await page.fill('#chatInput','Keep this draft through readback');
|
||||
await page.evaluate("window.__resyncComposer=document.querySelector('#chatInput')");
|
||||
assert.equal((await fetch(`http://${target}/fixture-resync`,{method:'POST'})).status,204);
|
||||
await emit({kind:'resync'});
|
||||
await eventually(()=>page.evaluate("document.querySelector('#chatTranscript').textContent.includes('Authoritative resync evidence')"));
|
||||
assert.equal(await page.evaluate("document.querySelector('#chatInput')===window.__resyncComposer && document.querySelector('#chatInput').value==='Keep this draft through readback'"),true);
|
||||
assert.deepEqual(await page.evaluate("window.__errors"), []);
|
||||
console.log("Model dialog, stable activity mark, keyboard/caret, Back restoration, send-to-bottom and all recovered approvals/questions passed.");
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user