import fs from "node:fs/promises"; import path from "node:path"; import { expect, test, type APIRequestContext, type Browser, type Page } from "@playwright/test"; /** * Cold direct load of a task URL with every API response delayed, so serial * request stages show up as wall-clock time. The finish event is the first * readable chat frame: the history is revealed (`aria-busy="false"`), the saved * messages are visible and the composer is editable. * * `PAPERCLIP_ISSUE_PERF_COLD_RUNS` (>= 5) enables the benchmark and writes * `test-results/issue-detail-perf/cold-bootstrap-