Skip to content

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

Test: the bare Firefox agent in the vision input test has its abort map

Emre Sokullud28f201574d0
diff --git a/test/firefox-bidi.mjs b/test/firefox-bidi.mjs
index 76594777e..8c0e327e1 100644
--- a/test/firefox-bidi.mjs
+++ b/test/firefox-bidi.mjs
@@ -888,6 +888,8 @@ test('Firefox vision input goes through the companion when the run has one, and
const contentMessages = [];
globalThis.browser = { tabs: { sendMessage: async (_tab, message) => { contentMessages.push(message); return { success: true, dispatched: true, method: 'synthetic-vision-pointer' }; } } };
const agent = Object.create(Agent.prototype);
+ // No run to stop: _visionContentInput checks Stop first.
+ agent._runAbortStates = new Map();
try {
firefoxBidi.runs.set(31, { runId: id(), bound: true });
firefoxBidi.visionInput = async () => ({ success: true, dispatched: true, method: 'firefox-bidi' });