Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs([setup-browser-canary-headless]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy471996e87e41
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 74d1a05a7e..bda39a03ff 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -21,6 +21,7 @@
- **[capabilities-cheap-memory-count] Capabilities overview counts Brain memories more cheaply.** The frequently refreshed status overview now reads the active-memory total directly, keeping it lighter as memory history grows.
- **[media-collections-per-record-store] Media collections now persist per-record instead of in one monolithic file.** `data/media-collections.json` is split into `data/media-collections/<id>/index.json` (plus a type-level `index.json` stamping the storage `schemaVersion`) via the shared `createCollectionStore` layout — the same per-record shape universes / series / issues already use. Every collection write (`addItem`, `bulkUpdateCollectionItems`, merges, tombstone GC) now serializes on its own record queue, so high-frequency render-filing no longer rewrites the whole ~200 KB document per image or blocks unrelated collections' writes. Migration `059-split-media-collections.js` performs the one-time split (idempotent, backs the legacy file up as `.bak-059`), the boot-time verifier checks the on-disk version, and the dataSync snapshot watcher tracks the directory so per-record edits still invalidate the checksum cache. The wire sync payload is unchanged, so collections still sync across peers of mixed versions.
- **[chrome-canary-followups] Custom Chrome setup writes browser config through the shared atomic writer.** The Canary setup script now uses `server/lib/fileUtils.js#atomicWrite` for browser-config updates, so it gets the same temp-file/rename behavior and Windows fallback as the rest of PortOS config persistence.
+- **[setup-browser-canary-headless] The PortOS-managed browser now runs visible (headed) by default.** New installs — and opting into Chrome Canary at setup — launch a window you can see, since the whole point of a dedicated managed browser is to watch its automation. Existing installs that never changed the setting are flipped to headed on update; anyone who deliberately set it headless is left alone. To go back to headless, set `"headless": true` in the browser config.
- **[media-job-throttled-progress-persist] Live media-job progress is now debounce-persisted to disk so a mid-render restart recovers the last snapshot.** `runJob` schedules a ~250ms-debounced `persist()` after each `progress`/`statusMsg` mutation — coalescing the dozens-per-second diffusion progress events instead of writing per event — and drains it in `terminate()` before the terminal transition, mirroring the `appendAgentOutputLines` batching pattern. The terminal sink (`terminate`) is now async and made idempotent via a `terminalStarted` guard, which also closes the watchdog `mod.cancel` race the async drain would otherwise widen.
- **[media-job-store-progress-on-job-record] Render queue rows now hydrate live progress from the job record.** The media job queue now stores `progress` and `statusMsg` on the running job whenever image/video runners emit progress or status events, exposes those fields through `GET /api/media-jobs/:id` and list responses, and preserves them in persisted queue snapshots. The Image / Video render queue uses that snapshot to show a compact progress bar during polling, so non-SSE consumers no longer reset in-flight jobs to 0% until the next live event arrives.
- **[shared-bounded-concurrency-mapper] Bounded-concurrency worker pool extracted to a shared helper.** The cursor-based worker-pool idiom that was hand-rolled in `embeddings.js`, `catalogExtraction.js`, and `routes/imageVideoModels.js` is now a single tested `server/lib/mapWithConcurrency.js` (order-preserving, concurrency-bounded), with all three call sites migrated and behavior unchanged.
diff --git a/PLAN.md b/PLAN.md
index efa3e20f5f..7ac0ec2042 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -6,7 +6,6 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [.changel
Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
-- [ ] [setup-browser-canary-headless] **Managed-browser headed/headless default.** `data.reference/browser-config.json` ships `"headless": true`, but `browser/server.js`'s header comment says "Default headed" and opting into Canary at setup currently runs it invisibly. **Decision (resolved 2026-05-30): default HEADED.** The whole purpose of the custom-Chrome-binary feature is a *visible, differentiated* browser, so headless-by-default defeats it. Flip the seed to `"headless": false` AND set `config.headless = false` in `scripts/setup-browser.js#applyCanaryToConfig` (this also closes item (c) of `[chrome-canary-followups]`). Ship a one-time migration that flips the seed value only where the installed config still matches the old shipped hash; leave user-customized values alone.
- [ ] [setup-data-import-drift-tables-from-migrations] **`setup-data.js` should import drift tables from each migration file.** `SHIPPED_PROMPT_OLD_MD5` + `SHIPPED_PROMPT_NEW_MD5` in `scripts/setup-data.js:139-196` manually mirror the `ACCEPTED_OLD_MD5` + `NEW_SHIPPED_MD5` exports each migration file already maintains. The mirror is hand-edited every time a migration ships and is the most likely place to drift. After `[backport-pre-023-migrations-to-_lib]` lands, every prompt-replace migration will export those constants — `setup-data.js` can build the tables by sweeping/glob-importing the migration files and removing the mirror entirely. Single source of truth, no hand sync.
- [ ] [data-versioning-centralize-cosagents-settings] **Centralize `cosAgents.js` + `settings.js` on `atomicWrite` + `createFileWriteQueue`.** Both currently bypass the shared helpers and roll their own read/write paths. Audit each call site, migrate to the established pattern, run the existing tests. Low-risk mechanical refactor; do it once a CoS PR happens to be open.
- [ ] [cos-task-id-uniqueness-validation] **CoS task-ID uniqueness — validate at parse, not silently in `reorderTasks`.** Two related risks: (1) `server/lib/taskParser.js` `parseTasksMarkdown` doesn't detect duplicate task IDs — corrupted markdown propagates downstream; either throw on duplicate or warn + dedupe with a suffix. (2) `server/services/cos.js` `reorderTasks` (~line 2781) builds a `new Map(tasks.map(t => [t.id, t]))` which silently collapses duplicates — only the last wins, losing the others on the reorder write-back. Fix order: harden the parser so reorder can rely on uniqueness, then keep the Map-build as-is or assert uniqueness defensively.