fix(mana/web): unwrap $state proxy in workbench-scenes Dexie writes

Adding an app to a workbench scene threw DataCloneError. scenesState
is a $state array, so current.openApps was a Svelte 5 proxy and
spreading it into a new array left proxy entries inside; IndexedDB's
structured clone refuses to serialise those. Snapshot before handing
the array to patchScene / createScene so Dexie sees plain objects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-09 00:44:00 +02:00
parent 761851847f
commit 56065c8537
38 changed files with 1415 additions and 1665 deletions

View file

@ -67,6 +67,7 @@ COPY packages/credits ./packages/credits
COPY packages/spiral-db ./packages/spiral-db
COPY packages/wallpaper-generator ./packages/wallpaper-generator
COPY packages/local-llm ./packages/local-llm
COPY packages/shared-llm ./packages/shared-llm
# Install dependencies (shared packages only - app deps added later)
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \