{
  "slug": "playwright-test-debug-cli-attaches-coding-agents-to-paused-tests-3c4ad7673311",
  "title": "playwright test --debug=cli attaches coding agents to paused tests",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-01T00:27:06.000Z",
  "announced_at": "2026-04-01T00:27:06.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When debugging a failing repository test, start it with `--debug=cli`, attach to the emitted session, then step through the paused test with `playwright-cli`.",
    "examples": [
      "npx playwright test --debug=cli",
      "playwright-cli attach <session>",
      "playwright-cli --session=<session> step-over"
    ],
    "gotchas": [
      "Version: v1.59.0",
      "--debug=cli: Runs the test paused at the start and prints debugging instructions.",
      "<session> (required): The session name emitted by the test runner; pass it to `attach`.",
      "--session=<session>: Selects the named browser session for a CLI command.",
      "Prerequisite: Playwright 1.59.0 or newer is needed for `--debug=cli`.",
      "Prerequisite: If Playwright is already a project dependency, the docs say `playwright-cli` commands can also be run as `npx playwright cli <command>`."
    ]
  },
  "why_it_matters": "When debugging a failing repository test, start it in CLI debug mode and attach to inspect and step through the paused test.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.59.0",
    "https://playwright.dev/docs/release-notes",
    "https://playwright.dev/agent-cli/commands/test-debugging",
    "https://playwright.dev/agent-cli/capabilities",
    "https://playwright.dev/agent-cli/installation"
  ],
  "rank": 0.98057,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-c895c80e51052b9f-3:gate",
    "evidence_hash": "30b837f8ffc622b81590dae29ec5e3dfaebcd07c790a4f14dc0a6b78c001ee6a"
  },
  "review": {
    "draft_hash": "9e1c8333b92a2561f26a7535b5528c00f0a9901f4ae88ccc3f912991f172cce8",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
