mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
The gbrainDir()->configDir() unification dropped preferences.ts's process.env.HOME fallback; Bun caches homedir()'s initial value and ignores later HOME mutations, so per-test HOME isolation broke and test/migration-resume.test.ts leaked ledger entries across tests. Restore the env-first fallback in the one shared place. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>