Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Mark continue turns in tests the way the runtime now does

Claudedaef3944a816
diff --git a/test/huggingface-signup-recovery.mjs b/test/huggingface-signup-recovery.mjs
index 3a28cfc07..18df5bb3a 100644
--- a/test/huggingface-signup-recovery.mjs
+++ b/test/huggingface-signup-recovery.mjs
@@ -133,7 +133,9 @@ for (const build of ['chrome', 'firefox']) {
const restored = new Agent({ getActive: () => ({ promptTier: 'full' }) });
restored.useSiteAdapters = true;
await restored._hydrate(1);
- restored.conversations.get(1).push({ role: 'user', content: 'continue' });
+ // The runtime marks a turn that only continues the task when it arrives
+ // (a model reads it in any language); the recovery follows that mark.
+ restored.conversations.get(1).push({ role: 'user', content: 'continue', webbrainTurnKind: 'continue' });
const recovery = await restored._observeHuggingFaceSignupRecovery(1, 'get_accessibility_tree', { filter: 'visible' }, { pageContent: credentials }, { status: 'cleared' });
assert.match(recovery, /returned to the credentials step/);
assert.match(recovery, /attachment_1/);
diff --git a/test/run.js b/test/run.js
index 00295ee8e..431dd8e1a 100644
--- a/test/run.js
+++ b/test/run.js
@@ -87586,7 +87586,7 @@ test('agent preserves active progress ledger for bare continuation turns', async
{ role: 'system', content: 'sys' },
{ role: 'user', content: 'Follow every stargazer on this page.' },
{ role: 'assistant', content: 'Paused with one row unresolved.' },
- { role: 'user', content: 'continue' },
+ { role: 'user', content: 'continue', webbrainTurnKind: 'continue' },
]);
agent._progressUpdate(tabId, {
items: [{ id: 'octocat', label: 'octocat', action: 'follow', status: 'pending' }],
@@ -102169,7 +102169,7 @@ test('continuation session derive after restart ignores a foreign task\'s scoped
{ role: 'system', content: 'sys' },
{ role: 'user', content: "follow 100 accounts i don't follow yet here" },
{ role: 'assistant', content: 'Paused.' },
- { role: 'user', content: 'continue' },
+ { role: 'user', content: 'continue', webbrainTurnKind: 'continue' },
]);
// Only a foreign task's scoped unresolved rows survive; no session cached.
agent.progressLedgers.set(tabId, [
@@ -102304,7 +102304,7 @@ test('continue after an unrelated task does not resurrect unstamped legacy rows'
{ role: 'assistant', content: 'Paused.' },
{ role: 'user', content: 'Check the deployment again in one minute.' },
{ role: 'assistant', content: 'Checked.' },
- { role: 'user', content: 'continue' },
+ { role: 'user', content: 'continue', webbrainTurnKind: 'continue' },
]);
agent.progressLedgers.set(tabId, [
{ id: 'legacy_pending', label: 'legacy_pending', action: 'follow', status: 'pending' },