When bd runs with --no-daemon or during init in a directory that has a .beads/redirect file, it now correctly follows the redirect to create the database in the target location instead of locally. The bug occurred because: 1. init.go hardcoded .beads/beads.db without checking for redirects 2. main.go's fallback path for auto-bootstrap also used local .beads Both code paths now call beads.FollowRedirect() to resolve the correct .beads directory before constructing the database path. Added TestInitWithRedirect to verify the fix. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 KiB
34 KiB