Commit Graph
54 Commits
Author SHA1 Message Date
dasemuandClaude Sonnet 5.5 00226b4178 test(core): remove temp dirs after tests via shared RAII helper
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 19:23:09 +01:00
dasemuandClaude Opus 5.5 430e25c31d fix(gui): treat a reset connection to the instance socket as stale
Under load, connecting to a socket file whose listener is gone can fail
with ECONNRESET instead of ECONNREFUSED; both mean no live instance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:18:24 +01:00
dasemuandClaude Sonnet 5.5 04750532f2 fix(daemon): treat a repo whose directory vanishes mid-pass as removed, without error logs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 19:04:24 +01:00
dasemuandClaude Sonnet 5.5 3cba9784a3 fix: import/bootstrap hardening, canonical registry URLs, GUI canonical add path
- plain clones count as present; import refuses non-empty targets
- registry stores canonical https URLs; bootstrap matches provider by host
- clone URLs and repo names validated; GitHub link-style pagination
- bridge passes the canonical path to grove add; fix flaky instance test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 18:58:28 +01:00
dasemuandClaude Sonnet 5.5 fdc5a8f5a6 fix(core): clone rolls back what it created and refuses a non-empty directory
- 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>
2026-11-16 18:54:12 +01:00
dasemuandClaude Sonnet 5.5 f1509c3d65 fix(providers): pagination, owner listing fallback, URL and name validation
- pages stop on total/Link/empty page, not on a short page
- GitHub/Gitea owner listing falls back to /user/repos (collaborator repos) and says so
- url module: plain repo names, https/ssh/scp URLs on the provider host, canonical https

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 18:53:10 +01:00
dasemuandClaude Sonnet 5.5 b875a41b4d feat(gui): stalled repos, runtime not-migrated rows, safer import cleanup
- daemon status reports stalled repos; GUI shows them with the backup hint
- activity: repo_stalled is a warning; repo_added/removed shown
- migrate rows keep their result only until the next status refresh
- import removes a failed clone's directory only if it created it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 18:47:38 +01:00
dasemu 01c4974c07 Merge remote-tracking branch 'origin/development' into feat/native-gui 2026-11-16 18:46:22 +01:00
dasemuandClaude Sonnet 5.5 e2abeed414 fix(daemon): leave repos alone while grove add or clone is still building them
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>
2026-11-16 18:17:42 +01:00
dasemuandClaude Sonnet 5.5 ec6a3a04f3 feat(gui): migrate clones from the GUI; diagnostics log and tray restart
- 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>
2026-11-16 18:15:36 +01:00
dasemuandClaude Sonnet 5.5 9b5e5d5367 fix(daemon): rediscover managed repos at runtime
Watch the root, group dirs and unmanaged children for layout changes,
debounce, then re-run discovery and diff. Drop repos that vanish without
errors, and re-run discovery on every full pass as a safety net.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 18:13:22 +01:00
dasemuandClaude Sonnet 5.5 28e07aab56 feat: owner-scoped import listing, ssh protocol, robust import
- providers: list_owner_repos (org/user endpoints), ssh_url, Send+Sync
- import: parallel sides, case-insensitive/origin-based presence check,
  continue after failed clones and report them
- config: per-provider protocol (https|ssh); GUI settings, onboarding
- gui: import scan on its own thread, per-group cache, Rescan, failures

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 18:09:34 +01:00
dasemuandClaude Sonnet 5.5 5aeb7b2077 perf(gui): cut hidden CPU with a busy daemon
Coalesce daemon events to one status refresh per 10 s while hidden (1 s
visible), skip log/config reads and the UI-thread hand-off while hidden,
and render tray pixmaps once per state.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:54:57 +01:00
dasemuandClaude Sonnet 5.5 e65bd5c24e fix(gui): keep branch name while typing, per-worktree busy state, onboarding that survives init, stale resolve output, ahead/behinddirty as attention
Also: reject unknown resolve modes, compute the UTC offset once, notify-send --, serve the instance socket before the window exists.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:45:31 +01:00
dasemuandClaude Sonnet 5.5 82c89cad1f feat(gui): opt-in start at login; deb ships the autostart file under /usr/share/grove and recommends libnotify-bin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:45:31 +01:00
dasemuandClaude Sonnet 5.5 f8c191e9a0 fix(gui): single-instance socket never evicts a live instance and lives in a private dir
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:45:31 +01:00
dasemuandClaude Sonnet 5.5 e3a16a494c feat(gui): show snapshot policy, withheld snapshots and not-migrated clones; raise visible window
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:36:06 +01:00
dasemu 23b7970644 Merge remote-tracking branch 'origin/feat/daemon-scope' into feat/native-gui 2026-11-16 17:30:56 +01:00
dasemuandClaude Sonnet 5.5 67b4f9e5d4 build: package grove-gui, desktop files and icon in the deb
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:52 +01:00
dasemuandClaude Sonnet 5.5 fe2999d5b0 feat(gui): native Slint GUI with ksni tray, replacing grove-bridge
Folds the bridge library into grove-gui (src/bridge.rs) and drops the HTTP server.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:52 +01:00
dasemuandClaude Sonnet 5.5 ff70b74353 fix(daemon): short TTL for absent answers, provider URL in the cache key
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:40 +01:00
dasemuandClaude Sonnet 5.5 bdf0219842 fix(core): purge own snapshot refs on every push URL incl. remote-only ones; LC_ALL=C and no submodule recursion on pushes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:40 +01:00
dasemuandClaude Sonnet 5.5 2b8a8c498d fix(providers): GitHub reply without visibility is unknown
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:27:40 +01:00
dasemuandClaude Sonnet 5.5 8bcdcd5771 Merge branch 'feat/migrate-linked-worktrees' into feat/daemon-scope
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:22:15 +01:00
dasemuandClaude Sonnet 5.5 a15a4170b9 fix(cli): grove sync honours group auto_materialize and documents ignoring the snapshot policy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:21:42 +01:00
dasemuandClaude Sonnet 5.5 9d1a743073 fix(daemon): gate snapshots on every push URL and mirror target, shorter private TTL, purge on withhold, offline uses last verdict
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:21:42 +01:00
dasemuandClaude Sonnet 5.5 30c84aef2f feat(core): purge_own_snapshots deletes this machine's snapshot refs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:21:42 +01:00
dasemuandClaude Sonnet 5.5 15cd03aedf fix(providers): GitHub internal repos are not private
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:21:42 +01:00
dasemuandClaude Sonnet 5.5 a9f8fe4a50 fix(migrate): refuse linked-worktree submodules and relative worktree links
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>
2026-11-16 17:15:48 +01:00
dasemuandClaude Sonnet 5.5 9e69b60e89 feat(daemon): manage only bare-layout repos in configured groups, gate snapshots by visibility
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:14:29 +01:00
dasemuandClaude Sonnet 5.5 990f155f65 feat(core): snapshots policy in config and push_snapshots sync option
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:14:29 +01:00
dasemuandClaude Sonnet 5.5 fc309f9b18 feat(providers): get_repo to read one repo's visibility
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:14:29 +01:00
dasemuandClaude Sonnet 5.5 022c5325c9 fix(sync): never archive or rediscover worktrees outside the layout
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:08:52 +01:00
dasemuandClaude Sonnet 5.5 d1c0ddb5dc feat(cli): list linked worktrees after grove add
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 17:08:52 +01:00
dasemuandClaude Sonnet 5.5 39ab3cde1a feat(migrate): support repos with linked worktrees
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>
2026-11-16 17:07:30 +01:00
dasemuandClaude Opus 5.5 ed07c0a081 feat: per-group routing by visibility and repo owners
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:54:07 +01:00
dasemuandClaude Opus 5.5 e2631e7ab7 feat(providers): pull mirrors on Gitea and tea/gh token fallback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:54:07 +01:00
dasemuandClaude Sonnet 5.5 fcc0ea1f12 chore: .deb packaging, phase 3/5 docs, lessons, env example
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:39:01 +01:00
dasemuandClaude Sonnet 5.5 503d615951 feat(bridge): localhost HTTP bridge with strict arg validation and host/origin checks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:39:01 +01:00
dasemuandClaude Sonnet 5.5 6377c02fec feat(daemon): report worktree path in status JSON
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:39:01 +01:00
dasemuandClaude Sonnet 5.5 9572da6763 feat: age-encrypted secrets channel (init, push, pull, rekey)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:27:31 +01:00
dasemuandClaude Sonnet 5.5 398b959ffe feat: resolve diverged worktrees, status --plan, snapshot size limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:25:22 +01:00
dasemuandClaude Sonnet 5.5 b86342b1d0 feat: provider wizards (init, login, new, import, config repo, bootstrap)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:23:10 +01:00
dasemuandClaude Sonnet 5.5 e599d48db8 feat(providers): Gitea/Forgejo and GitHub clients, token storage
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:19:33 +01:00
dasemuandClaude Sonnet 5.5 0e77dd26d9 fix(daemon): address review findings
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>
2026-11-16 13:05:38 +01:00
dasemuandClaude Sonnet 5.5 41ef589e58 feat(daemon): add groved with inotify watching, scheduler and IPC
Debounced per-repo passes, periodic full pass, exponential backoff, pause and
resume, JSON protocol over a Unix socket, activity log, grove daemon CLI client
and a systemd user unit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 13:01:30 +01:00
dasemuandClaude Sonnet 5.5 a631d0a90f fix(core): adopt upstream when a dirty worktree is identical to it
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>
2026-11-16 13:01:30 +01:00
dasemuandClaude Sonnet 5.5 c935d779e1 chore: rename project to grove and add MIT license
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 12:52:25 +01:00
dasemuandClaude Sonnet 5.5 126acb4b57 fix(core): protect ignored files and fix backup ref namespaces
Archive no longer deletes worktrees holding ignored files, fast-forward and
snapshot apply decline instead of overwriting ignored files, backup refs use
per-kind namespaces, add refuses sparse checkouts. Regression tests and docs
updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 12:12:46 +01:00
dasemuandClaude Sonnet 5.5 81d8142c57 feat: add sync orchestrator and CLI add/sync/doctor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 12:07:09 +01:00