chore(dev): add production preview launcher

This commit is contained in:
Tommaso Casaburi
2026-05-30 17:26:58 +07:00
parent ac95e58433
commit 8cc9c401d3
6 changed files with 317 additions and 159 deletions
@@ -0,0 +1,36 @@
{
"task": "dev-overhead-preview",
"last_updated": "2026-05-28",
"items": [
{
"id": "F001",
"priority": 1,
"status": "verified",
"description": "Add a production-like local preview launcher and make the normal dev launcher clearly identify its dev-mode overhead.",
"verification": [
"./scripts/agent-init.sh --smoke",
"BROWSER=none corepack yarn start",
"BROWSER=none corepack yarn start:preview",
"curl -k -I https://codex-chore-dev-overhead-preview.5chan.localhost",
"SMOKE_BASE_URL=https://codex-chore-dev-overhead-preview.5chan.localhost/#/ node scripts/smoke-web-app.js",
"playwright-cli Chrome /pol thread/back timing",
"playwright-cli Firefox/WebKit /pol load checks",
"PORTLESS=0 BROWSER=none PORT=4990 corepack yarn start:preview",
"curl -I http://127.0.0.1:4990",
"corepack yarn build",
"corepack yarn lint",
"corepack yarn type-check",
"corepack yarn knip"
],
"files": [
"package.json",
"scripts/start-dev.js",
"scripts/start-preview.js",
"scripts/local-server-utils.mjs",
"docs/agent-runs/dev-overhead-preview/feature-list.json",
"docs/agent-runs/dev-overhead-preview/progress.md"
],
"notes": "Handoff source: /var/folders/6_/_kkfxkkn33j830_dt_gj0zqh0000gn/T/5chan-dev-overhead-handoff-2026-05-28T23-25-32.md. Preview /pol browser-back-to-board timings in Chrome were 170ms, 125ms, and 120ms."
}
]
}
@@ -0,0 +1,21 @@
# Progress Log
Append one entry per session.
## 2026-05-28 23:31
- Item: F001
- Summary: Created the `codex/chore/dev-overhead-preview` worktree, read the dev-overhead handoff, and confirmed the baseline smoke flow passes before implementation.
- Files: `docs/agent-runs/dev-overhead-preview/feature-list.json`, `docs/agent-runs/dev-overhead-preview/progress.md`
- Verification: `./scripts/agent-init.sh --smoke`
- Blockers: none
- Next: Add the preview launcher and verify both dev and preview startup paths.
## 2026-05-28 23:44
- Item: F001
- Summary: Added `yarn start:preview`, refactored shared Portless launcher helpers, and added a concise `yarn start` terminal note that points performance checks to the preview launcher.
- Files: `package.json`, `scripts/start-dev.js`, `scripts/start-preview.js`, `scripts/local-server-utils.mjs`, `docs/agent-runs/dev-overhead-preview/feature-list.json`, `docs/agent-runs/dev-overhead-preview/progress.md`
- Verification: `corepack yarn install`; `node --check scripts/start-dev.js && node --check scripts/start-preview.js && node --check scripts/local-server-utils.mjs`; `BROWSER=none corepack yarn start`; `BROWSER=none corepack yarn start:preview`; `curl -k -I https://codex-chore-dev-overhead-preview.5chan.localhost`; `SMOKE_BASE_URL=https://codex-chore-dev-overhead-preview.5chan.localhost/#/ node scripts/smoke-web-app.js`; `playwright-cli` Chrome `/pol` thread/back timing (back: 170ms, 125ms, 120ms); `playwright-cli` Firefox/WebKit `/pol` load checks; `corepack yarn build`; `corepack yarn lint`; `corepack yarn type-check`; `corepack yarn knip`; `PORTLESS=0 BROWSER=none PORT=4990 corepack yarn start:preview`; `curl -I http://127.0.0.1:4990`
- Blockers: none
- Next: Review the diff and decide whether to also make dev-only `react-scan`/`element-source` opt-in in a separate, workflow-synced change.