Skip to content

feat: extend daemon refresh to workspace and persistent agents#371

Open
arcavenai wants to merge 1 commit intodlorenc:mainfrom
arcavenai:work/eager-owl
Open

feat: extend daemon refresh to workspace and persistent agents#371
arcavenai wants to merge 1 commit intodlorenc:mainfrom
arcavenai:work/eager-owl

Conversation

@arcavenai
Copy link
Copy Markdown

Summary

  • Extends the daemon refreshWorktrees() loop to include workspace-type worktrees (full stash/rebase/restore, same as workers)
  • Persistent agents sharing the main checkout (merge-queue, pr-shepherd, generic-persistent) get refs updated via the per-repo remote sync already running — no rebase on the shared working tree
  • Safety guard: agents whose WorktreePath equals the repo dir are skipped for rebase

Test plan

  • 3 new tests added for workspace, persistent, and mixed agent type scenarios
  • All 10 existing refresh tests pass
  • go build ./... compiles cleanly

…Story 81.4)

The refresh loop previously only synced worker worktrees. Now it also:
- Refreshes workspace worktrees (full stash/rebase/restore, same as workers)
- Updates refs for persistent agents sharing the main checkout (via the
  per-repo fetch that already runs — no rebase needed for shared checkouts)
- Skips agents whose WorktreePath equals the repo dir (shared checkout guard)

Provenance: L3
arcavenai added a commit to ArcavenAE/ThreeDoors that referenced this pull request Apr 2, 2026
arcavenai added a commit to ArcavenAE/ThreeDoors that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant