When a repo with tracked .beads/ is added as a rig, the beads.db file doesn't exist because it's gitignored. Previously, bd init was only run if prefix detection succeeded. If there were no issues in issues.jsonl, detection failed and bd init was never run, causing "Error: no beads database found" when running bd commands. Changes: - Always run bd init when tracked beads exist but db is missing - Detect prefix from existing issues in issues.jsonl - Only error on prefix mismatch if user explicitly passed --prefix - If no issues exist, use the derived/provided prefix Fixes #72 Co-authored-by: julianknutsen <julianknutsen@users.noreply.github> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
14 KiB
14 KiB