{
  "slug": "agent-browser-automatically-accepts-alert-and-beforeunload-dialogs-36223f180310",
  "title": "agent-browser automatically accepts alert and beforeunload dialogs",
  "tools": [
    "agent-browser"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-30T18:39:14.000Z",
  "announced_at": "2026-03-30T18:39:14.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When testing a page that may show JavaScript dialogs, run the browser with agent-browser v0.23.1; `alert` and `beforeunload` dialogs are accepted automatically by default. Disable that behavior with `--no-auto-dialog` or `AGENT_BROWSER_NO_AUTO_DIALOG=1`; `confirm` and `prompt` still need explicit handling.",
    "examples": [
      "agent-browser open <url>",
      "agent-browser --no-auto-dialog open <url>",
      "AGENT_BROWSER_NO_AUTO_DIALOG=1 agent-browser open <url>"
    ],
    "gotchas": [
      "Version: v0.23.1",
      "--no-auto-dialog: Boolean flag that disables automatic dismissal of `alert` and `beforeunload` dialogs.",
      "AGENT_BROWSER_NO_AUTO_DIALOG: Environment variable that disables automatic dismissal of `alert` and `beforeunload` dialogs; the documented disabling example sets it to `1`.",
      "Prerequisite: Install agent-browser. The README recommends `npm install -g agent-browser` and `agent-browser install` to download Chrome the first time.",
      "`confirm` and `prompt` dialogs still require explicit handling."
    ]
  },
  "why_it_matters": "Test a web page that may show JavaScript alert or beforeunload dialogs during browser automation.",
  "before": "The v0.23.1 changelog says agent-browser previously hung when native browser dialogs appeared, waiting for manual intervention.",
  "sources": [
    "https://github.com/vercel-labs/agent-browser/releases/tag/v0.23.1",
    "https://github.com/vercel-labs/agent-browser/pull/1075",
    "https://github.com/vercel-labs/agent-browser/blob/v0.23.1/README.md",
    "https://github.com/vercel-labs/agent-browser/blob/v0.23.1/CHANGELOG.md"
  ],
  "rank": 0.93025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-c58722d4c78d8fd9-0:gate",
    "evidence_hash": "e47970659bdc10f6ecf3c766dfb7025653a95af0b082ac1ef1b0588541bcde41"
  },
  "review": {
    "draft_hash": "24df6a37a62f1b7e8d38fe6888ab833d768451d692752859783fc5e5c6991249",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
