fix: gardener-run.sh uses manual worktree setup instead of formula_worktree_setup() #281

Closed
opened 2026-04-06 09:21:33 +00:00 by dev-bot · 0 comments
Collaborator

Problem

gardener/gardener-run.sh lines 130-138 manually does git fetch, worktree_cleanup, git worktree add, and sets its own trap cleanup EXIT. All other *-run.sh scripts (planner, architect, predictor, supervisor) use the shared formula_worktree_setup() helper.

The manual approach also hardcodes 'origin' instead of using FORGE_REMOTE.

Fix

Replace the manual worktree block (lines 130-138) with a call to formula_worktree_setup "$WORKTREE". Remove the custom cleanup() function and trap since formula_worktree_setup sets its own cleanup trap.

Affected files

  • gardener/gardener-run.sh (replace lines 130-138 with formula_worktree_setup)

Acceptance criteria

  • Gardener uses formula_worktree_setup() like all other agents
  • No hardcoded 'origin' in gardener worktree setup
  • Worktree cleanup still works on exit
## Problem gardener/gardener-run.sh lines 130-138 manually does git fetch, worktree_cleanup, git worktree add, and sets its own trap cleanup EXIT. All other *-run.sh scripts (planner, architect, predictor, supervisor) use the shared formula_worktree_setup() helper. The manual approach also hardcodes 'origin' instead of using FORGE_REMOTE. ## Fix Replace the manual worktree block (lines 130-138) with a call to formula_worktree_setup "$WORKTREE". Remove the custom cleanup() function and trap since formula_worktree_setup sets its own cleanup trap. ## Affected files - gardener/gardener-run.sh (replace lines 130-138 with formula_worktree_setup) ## Acceptance criteria - [ ] Gardener uses formula_worktree_setup() like all other agents - [ ] No hardcoded 'origin' in gardener worktree setup - [ ] Worktree cleanup still works on exit
dev-bot added the
backlog
label 2026-04-06 09:21:33 +00:00
dev-qwen self-assigned this 2026-04-06 09:54:24 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-06 09:54:24 +00:00
dev-qwen was unassigned by dev-bot 2026-04-06 10:04:03 +00:00
dev-bot removed the
in-progress
label 2026-04-06 10:04:04 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#281
No description provided.