You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop crashes at startup: V1 history migration fails with "Bun is not defined" #102
Since #100 merged, the desktop app crashes on first launch for profiles with existing V1 chat history.
The sidecar logs V1 migration failed, exits with code 1, and the renderer shows a fatal error: V1 history migration failed: Bun is not defined.
Cause: the published @opencode/core 2.2.5 V1 migration (database/v1-migration.bun.js) calls new Bun.CryptoHasher("sha256") when generating synthetic IDs. CookieMonster runs that migration under Electron's Node, where Bun does not exist. Only histories that need synthetic IDs reach the call, so mock fixtures and the Bun-run unit tests never hit it.
Reproduced with CM_BRAND=1 bun run dev:desktop against a real dev profile.
Activity