π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π docs(acceptance): close agent-browser sessions at teardown (#19961)
Arvin Xu21eacac14729
diff --git a/.agents/acceptance/PROCESS.md b/.agents/acceptance/PROCESS.mdindex 80d7e8113de..5190fcf5b69 100644--- a/.agents/acceptance/PROCESS.md+++ b/.agents/acceptance/PROCESS.md@@ -388,6 +388,14 @@ in a source file corrupts the next run and the next agent's mental model.- **Stop only what THIS run started**, using `PROJECT.md` Β§2 stop commands. Never aglobal process-name kill; never a listener you did not launch. A dev server theuser started stays up.+- **Close every agent-browser session this run opened**:+ `agent-browser --session "$SESSION" close` per session. Each named session is a+ detached daemon plus a headless Chrome that never exits on its own, so+ run-specific session names (P05) leak one browser per run until someone closes+ them β dozens of stale sessions add up to tens of GB. Never `close --all`: it+ kills sibling runs' browsers. Export `AGENT_BROWSER_IDLE_TIMEOUT_MS=1800000`+ before the first `agent-browser` call so a run that dies before teardown+ still releases its browser.- **Revert every code injection.** Restore the file and verify: `grep -rn AGENT-TEST`returns nothing. When you injected into a file that already had uncommittedchanges, `git checkout --` is the WRONG revert β it wipes the branch's edits too;diff --git a/.agents/acceptance/probe-mock-patterns.md b/.agents/acceptance/probe-mock-patterns.mdindex 7e3a328bbad..745b2d326a3 100644--- a/.agents/acceptance/probe-mock-patterns.md+++ b/.agents/acceptance/probe-mock-patterns.md@@ -247,7 +247,9 @@ agent-browser --session "$RUN_SESSION" \```Then assert `get url` and `app-probe.sh auth` on that exact session before-capturing evidence.+capturing evidence, and close it at teardown+(`agent-browser --session "$RUN_SESSION" close`, PROCESS.md Step 6) β a+run-specific session is never reused, so an unclosed one is a leaked browser.A cross-wired session can also look perfectly healthy while running STALE code:if the other instance's Vite has since died, the browser keeps serving its last