Merge pull request #54 from michaellady/polecat/fixer-mjy8jxh1

Clean 2-line fix with comprehensive tests. All tests pass locally.
This commit is contained in:
Steve Yegge
2026-01-04 23:06:01 -08:00
committed by GitHub
2 changed files with 249 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ func runDone(cmd *cobra.Command, args []string) error {
}
// Initialize beads
bd := beads.New(cwd)
bd := beads.New(beads.ResolveBeadsDir(cwd))
// Determine target branch (auto-detect integration branch if applicable)
target := defaultBranch
@@ -282,7 +282,7 @@ func runDone(cmd *cobra.Command, args []string) error {
fmt.Printf("%s\n", style.Dim.Render("Witness will dispatch new polecat when gate closes."))
// Register this polecat as a waiter on the gate
bd := beads.New(cwd)
bd := beads.New(beads.ResolveBeadsDir(cwd))
if err := bd.AddGateWaiter(doneGate, sender); err != nil {
style.PrintWarning("could not register as gate waiter: %v", err)
} else {