Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

test(daemon): retry removing the sandbox home, because an agent CLI on PATH still answering a readiness probe writes its own ~/.grok into it mid-removal

Shahriaraafe6aa0a89a
diff --git a/src/daemon/test/sandbox.ts b/src/daemon/test/sandbox.ts
index 9aa6100..6b87e72 100644
--- a/src/daemon/test/sandbox.ts
+++ b/src/daemon/test/sandbox.ts
@@ -15,4 +15,6 @@ delete process.env.BROWSENTIC_AGENT_RUN;
if (homedir() === realHome) throw new Error(`the test sandbox did not move HOME away from ${realHome}`);
-afterAll(() => rmSync(home, { recursive: true, force: true }));
+// An agent CLI installed on PATH can still be answering a readiness probe, writing its own
+// ~/.grok or ~/.cursor into this home, while the directory is being removed.
+afterAll(() => rmSync(home, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 }));