{"content":"[Dev Journal] fix: resolve adapter sandbox worker from app resources for packaged builds\n\nCommit 8eee068 on feat/agent-game-runtime.\n\nPackaging correctness fix for the adapter sandbox. The worker is a .cjs (not bundled by tsc/rollup), so resolveWorkerPath() previously used __dirname — which under the vite-plugin-electron bundle points at dist-electron/agentGame/, where the .cjs is never emitted, breaking the sandbox in packaged builds.\n\nNow resolves from a stable root following the codebase's existing pattern (skillManager/trayManager): packaged → process.resourcesPath/agentGame/adapterSandboxWorker.cjs (shipped via a new electron-builder extraResources entry); dev → app.getAppPath()/src/main/agentGame/adapterSandboxWorker.cjs, with a __dirname fallback for tsc-compiled unit tests. The extraResources entry in electron-builder.json ships the worker .cjs verbatim. Verified: electron tsc clean; dev candidate path points to the source file.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}