Preserve preview harness, editor, email and task improvements

Snapshot current maintainer-preview application changes and regression fixtures for integration into lab. Excludes local runtime data, evaluation outputs and source backups. Focused Python regression selection: 140 passed; full suite not certified.
This commit is contained in:
pewdiepie-archdaemon
2026-10-01 01:34:26 +00:00
parent 86f376ac3a
commit 2e8413a54a
170 changed files with 11010 additions and 1094 deletions
+23
View File
@@ -54,6 +54,7 @@ async function setup() {
window.markdownModule = (await import('/static/js/markdown.js')).default;
markdownModule.renderMermaid = undefined;
window.createTurnRendering = (await import('/static/js/turnRendering.js')).createTurnRendering;
window.startsContinuationRound = (await import('/static/js/turnRendering.js')).startsContinuationRound;
window.applyModelRouteEventState = (await import('/static/js/chatModelProvenance.js')).applyModelRouteEventState;
window.createTerminalStreamError = (await import('/static/js/chatStreamErrors.js')).createTerminalStreamError;
window.addMessage = (0, eval)('(' + addMessage + ')');
@@ -287,3 +288,25 @@ test('resume error clears earlier and current streaming markers without dropping
assert.match(result.text, /First partial[\s\S]*Second partial[\s\S]*Provider failure/);
} finally { await page.close(); }
});
test('resume keeps the same initial bubble through preparation and round-one status', async () => {
const page = await setup();
try {
await startReplay(page);
await page.evaluate(() => {
window.initialBubble = document.querySelector('.msg-ai');
send({type: 'agent_step', stage: 'email_task_scope'});
send({type: 'agent_step', round: 1});
send({delta: 'Hello'});
});
await page.waitForFunction(() => document.querySelector('#chat-history').textContent.includes('Hello'));
const result = await page.evaluate(async () => {
const same = initialBubble === document.querySelector('.msg-ai');
const count = document.querySelectorAll('.msg-ai').length;
send('[DONE]');
await running;
return {same, count};
});
assert.deepEqual(result, {same: true, count: 1});
} finally { await page.close(); }
});