{
  "slug": "playwright-tracing-adds-scoped-har-recording-c51c15388e41",
  "title": "Playwright tracing adds scoped HAR recording",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-11T19:08:18.000Z",
  "announced_at": "2026-05-11T19:08:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When recording network traffic for a browser workflow in Playwright v1.60.0 or later, call `context.tracing.startHar()` with the HAR path and any needed filters, then dispose its returned handle to save the HAR.",
    "examples": [
      "const { chromium } = require('playwright');\n\n(async () => {\n  const browser = await chromium.launch();\n  const context = await browser.newContext();\n  await using har = await context.tracing.startHar('trace.har', {\n    content: 'embed',\n    mode: 'full',\n    urlFilter: '**/*',\n  });\n  const page = await context.newPage();\n  await page.goto('https://playwright.dev');\n  await browser.close();\n})();"
    ],
    "gotchas": [
      "Version: v1.60.0",
      "path (required) (required): Filesystem path for the HAR. A .zip extension saves a ZIP archive with response bodies as separate files.",
      "options.content (optional): Resource content handling: omit, embed, or attach. Defaults to attach for .zip output and embed for other extensions.",
      "options.mode (optional): HAR detail level: full or minimal. Minimal keeps information needed for HAR routing; defaults to full.",
      "options.urlFilter (optional): Glob or regular expression filtering requests stored in the HAR; defaults to no filter.",
      "Prerequisite: Requires Playwright v1.60 or later; tracing.startHar was added in v1.60."
    ]
  },
  "why_it_matters": "Record network traffic while running a browser workflow for debugging or replay.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.60.0",
    "https://playwright.dev/docs/api/class-tracing"
  ],
  "rank": 0.97043,
  "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-15228fe3d33f40e5-0:gate",
    "evidence_hash": "8d2217b180ed48f8295026249b4e63507609b51ecea3842ff24b521ee9c9c11e"
  },
  "review": {
    "draft_hash": "78271d701a6d986d129cd2b7f32a70a5b9186ac2dcb6af36a8708a664e0efd14",
    "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.97 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
