From f376d07e122cdafb7f79043aee32f93ba140e2a9 Mon Sep 17 00:00:00 2001 From: furiosa Date: Sat, 24 Jan 2026 15:28:13 -0800 Subject: [PATCH] fix(ready): use rig root for beads resolution, not mayor/rig The ready command was using constants.RigMayorPath(r.Path) which returns /mayor/rig, but this fails for rigs where the source repo doesn't have tracked beads. In those cases, rig-level beads are stored at /.beads directly. Using r.Path (rig root) allows ResolveBeadsDir to properly handle both: - Tracked beads: follows /.beads/redirect to mayor/rig/.beads - Local beads: uses /.beads directly Fixes "no beads database found" errors for google_cookie_retrieval and home_assistant_blueprints rigs. Closes: hq-c90jd Co-Authored-By: Claude Opus 4.5 --- internal/cmd/ready.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/cmd/ready.go b/internal/cmd/ready.go index 59658ef5..6797f4ed 100644 --- a/internal/cmd/ready.go +++ b/internal/cmd/ready.go @@ -147,8 +147,10 @@ func runReady(cmd *cobra.Command, args []string) error { wg.Add(1) go func(r *rig.Rig) { defer wg.Done() - // Use mayor/rig path where rig-level beads are stored - rigBeadsPath := constants.RigMayorPath(r.Path) + // Use rig root path - ResolveBeadsDir follows redirects to find actual beads. + // For tracked beads: /.beads/redirect -> mayor/rig/.beads + // For rig-local beads: /.beads directly + rigBeadsPath := r.Path rigBeads := beads.New(rigBeadsPath) issues, err := rigBeads.Ready()