The loop thread schedules and sync.workers threads (default 4) run passes,
so a slow or hanging fetch no longer holds up every other repo. A repo never
has two passes at once; passes go only to idle workers, so pause and backoff
behave as before. Visibility and merged-PR caches are shared without holding
locks across forge requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Prune a worktree whose pushed tip a merge commit brought into the default
branch (not on its first-parent history), with no forge needed.
- Never prune or keep from materializing main/master/development/... plus
sync.prune_protected; this also stops a development->main PR pruning
development.
- Follow repos transferred or renamed on the forge when listing merged PRs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The daemon asks the forge (GitHub, Gitea/Forgejo) which pull requests were
merged and removes the local worktree and branch of each merged head that
holds no local work. Squash/rebase merges and head branches kept on the
forge are covered; regenerable ignored output (target/, node_modules...)
does not keep a worktree, any other ignored file does. The tip is kept in a
refs/sync-backup/<machine>/<stamp>/merged/<branch> ref, and materialize no
longer brings a pruned branch back unless it gets new commits.
New config: sync.prune_merged (default true) and sync.prune_disposable.
See docs/prune-merged.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GZUAKXXztS4Hy4F4sSRkc
When a fetch fails with a not-found error, the daemon asks the forge:
a 404 for a repo owned by the token's account (or an `owners` org),
with a working token, still confirmed 10 min later, moves the repo to
root/<sync.purged_dir>/<group>/<repo> (default "Purged"), where it is
no longer synced. Never deleted; worktree links repaired; skipped while
busy or with a git operation in progress.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The daemon inherited the desktop session's SSH_ASKPASS (ksshaskpass), so
an ssh passphrase/host-key prompt opened a dialog nobody answered, and
git had no time limit: the single sync loop stalled for 1.5 h and repos
migrated meanwhile were never picked up.
- groved sets a non-interactive git env (no terminal/askpass prompts,
HTTP low-speed abort) and leaves the ssh command to the user/repo.
- Git calls get an optional wall-clock limit (daemon: 900 s); on expiry
the whole process group (git, ssh, helpers) is killed.
- Secret Service lookups time out like the forge CLIs (locked keyring).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- failure after the clone step removes the .bare and worktree dirs it made
- a directory it created is removed once the busy marker is gone
- if cleanup fails, .grove-stage makes the daemon report the repo as stalled
- git clone gets -- before url and path
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add a .grove-busy marker held by migrate and clone/init, treat a repo as
ready only with .bare/HEAD and no marker or .grove-stage, warn once on stale
markers. Also re-watch recreated dirs by inode, watch shallow dirs before
discovery, and retry failed watches with a rate-limited log.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Migrate / Migrate all with confirmation, sequential runs, per-repo results
- bridge: allow 'add' only for dirs directly under a group
- log panics, exit reasons and daemon/tray events to <state>/grove-gui.log
- restart the tray service if its D-Bus connection ends
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolve the new worktree's gitdir pointer relative to its own dir, and
mention link repair in the interrupted-migration message.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Nested ones move with the checkout, outside ones stay; link files are
rewritten, backed up and restored on rollback. Locked, prunable and
mid-operation linked worktrees are refused.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Idle paused loop no longer spins, local snapshots continue during network
backoff, debounce has a maximum wait, sync accepts non-canonical paths, removed
repos are dropped, socket dir mode is enforced. adopt_if_identical now skips
worktrees with staged changes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A worktree with another machine's snapshot applied stayed BehindDirty forever
after the author committed and pushed that work. When the worktree content is
byte-identical to the upstream tree, a mixed reset moves the branch without
touching any file.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>