Skip to Content
HeyBug docs
Security

Run isolation

Every run gets its own browser state, so one run never sees cookies, storage or files from another run or from another workspace.

Every run gets its own browser state, so one run never sees cookies, storage or files from another run or from another workspace. The runner also caps how many browsers work at once and only opens targets that pass our address check. Use this guide to confirm what a run can reach and what to do when a run is refused.

What it covers

  • Fresh browser context per session. Each explore session opens a new Playwright browser context. Cookies, local storage and session storage start empty. A context is closed when the session ends.
  • Temporary files per batch. A batch of generated tests is written to a temporary folder. The folder is removed when the batch ends, including after a cancel.
  • Automatic cleanup. An idle session closes after 10 minutes without an action. No session lives longer than 30 minutes, even if it is busy.
  • Target address check. The URL you test must resolve to a public address before the browser opens.

Saved sign-in state is the one thing a run gets from outside. It is added to that run's fresh context from the project's settings, and nothing else is carried over.

Limits

LimitValueWhere it is set
Browsers and batches at once4 by defaultHEYBUG_RUNNER_CAPACITY on the runner
Idle time before a session closes10 minutesRunner session settings
Longest life of a session30 minutesRunner session settings
Console lines kept per session20Runner session settings
Viewport1280 by 800 by defaultSession request

The browser runs headless. GPU use is off and shared memory is set to avoid /dev/shm limits. The Chromium sandbox stays on unless the runner runs as root.

Network allow-list

Today the allow-list is a check on the URL you test, not a list of domains the page may load.

  • Hosted. The host must resolve to a public address. Only ports 80, 443 and 8000 to 9999 are allowed.

Pages can still load their own third-party assets. A per-domain allow-list for page traffic is not in place.

Steps to check a run

  1. Start a run from the CLI.

    heybug run --url https://staging.crate.so --instructions "Check sign-in only"

    Add --json to see the run response as JSON.

  2. Or start it from an AI assistant over MCP. The heybug_run tool takes a url:

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "tools/call",
      "params": { "name": "heybug_run", "arguments": { "url": "https://staging.crate.so" } }
    }
  3. Check the runner is up. The runner answers GET /v1/health with the bearer token. The reply includes capacity and the number of executing and sessions in use.

    curl -s -H "Authorization: Bearer $HEYBUG_RUNNER_TOKEN" "$HEYBUG_RUNNER_URL/v1/health"

    Never paste the token into a ticket or a log.

  4. Check the next run starts clean. Sign-in state should not carry over. If a test depends on a saved login, add it in project settings and run again.

When it fails

  • "That address points to a private network." The target is private, so hosted HeyBug cannot reach it. Use a public tunnel or preview URL. See Troubleshooting.
  • "Hosted HeyBug can only reach ports 80, 443 and 8000 to 9999." Move the app to one of those ports or put a proxy in front of it.
  • The runner is busy. A full runner answers with a busy status and a Retry-After hint. The call is reported as temporarily unavailable, with that wait. Try again after the wait.
  • The first step is slow. A cold browser can take a while to start. See Starting a browser takes a while.
  • A test passes alone but fails in a batch. Check that the test does not rely on data from an earlier test. Each test should set up its own data.

On this page