Commit Graph
122 Commits
Author SHA1 Message Date
dasemu d5b5df0e2a Merge pull request #18 from Dasemu/claude/zen-mccarthy-6s8ncd
fix(gui): keep an autostarted window from opening during login
2026-11-25 16:39:48 +01:00
Claude a5a1ad1bb4 ci: install fontconfig headers for the Slint GUI build
The GUI crate links fontconfig (via Slint); the runner image lacks the
-dev package, so the first CI run since Actions was enabled failed in
yeslogic-fontconfig-sys's build script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GZUAGhGYoiLvmfXweQnDY
2026-11-25 14:36:52 +00:00
Claude 6b294e80d9 fix(gui): keep an autostarted window from opening during login
On Plasma Wayland an autostarted grove-gui could end up with a task bar
entry that shows nothing (window mapped while the compositor starts).

- A --hidden start waits for the StatusNotifier watcher instead of opening
  the window when the tray is not up yet (ksni assume_sni_available)
- Show requests from other launches in the first 20 s after a --hidden start
  (session restore) are ignored and logged
- Every window show is logged with its reason; the session type at start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GZUAGhGYoiLvmfXweQnDY
2026-11-25 14:35:02 +00:00
github-actions[bot] f46bd305a6 chore(release): v0.1.1 [skip ci] 2026-11-25 14:33:46 +00:00
dasemu f21a60f4be Merge pull request #17 from Dasemu/fix/desktop-exec-absolute-path
fix(gui): launch grove-gui by absolute path from desktop files
2026-11-25 15:33:32 +01:00
dasemuandClaude Opus 5.5 96e2d9585e fix(gui): launch grove-gui by absolute path from desktop files
Desktop sessions (KDE Plasma on Fedora) often lack ~/.local/bin in PATH, so
Exec=grove-gui never started a source install from the menu or at login.
The Start-at-login toggle now writes the running binary's absolute path, and
the README documents a source install whose menu entry does the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:32:55 +01:00
dasemu 31c8d5b4f7 Merge pull request #16 from Dasemu/claude/zen-mccarthy-6s8ncd
feat: manage namespaces/providers and open worktrees in editors
2026-11-25 15:08:03 +01:00
Claude 39d241ee2b test(core): skip the locked-rollback test where permissions are not enforced
Root ignores directory permissions, so the partial-rollback case cannot be set
up there (cloud containers run tests as root).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GZUAGhGYoiLvmfXweQnDY
2026-11-25 04:56:36 +00:00
Claude f201611510 feat: manage namespaces/providers and open worktrees in editors
- grove group add|remove|list and grove provider add|remove|list edit
  config.toml (validated first, previous file kept as config.toml.bak)
- grove open [group/]repo[@branch] launches Zed, VS Code, Claude Code (in a
  terminal) or Claude Desktop; [open] config for defaults, terminal and own
  launchers; grove new --open
- GUI: provider/namespace forms and removal in Settings, Open buttons on
  repos and worktrees, open-after-create on New repository
- docs/phase8.md, DECISIONS 10-11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GZUAGhGYoiLvmfXweQnDY
2026-11-25 04:54:41 +00:00
dasemu 8c902e85b7 Merge pull request #15 from Dasemu/development
Release: development into main
2026-11-18 03:28:49 +01:00
dasemu 80ff449f74 Merge pull request #14 from Dasemu/fix/ignored-conflicts-real-files
fix(core): only existing files count as ignored conflicts
2026-11-17 17:26:47 +01:00
dasemuandClaude Opus 5.5 7ed5675a00 fix(core): only existing files count as ignored conflicts
A whole ignored directory (e.g. .claude/) made every incoming file under it a
'would overwrite ignored local files' conflict, even when the file did not
exist locally, so such branches never fast-forwarded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:26:20 +01:00
dasemu 933ad65cf0 Merge pull request #13 from Dasemu/fix/fair-dispatch
fix(daemon): dispatch due repos longest-waiting first
2026-11-17 17:04:20 +01:00
dasemuandClaude Opus 5.5 51450ffa5e fix(daemon): dispatch due repos longest-waiting first
With the worker pool, a full pass every fetch_interval_s re-marked every repo
due 'now' and dispatch went by path, so when a cycle took longer than the
interval the repos late in the alphabet never got a pass (52 of 80 on a real
machine). Keep the earlier due time and dispatch by it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:03:51 +01:00
dasemu 380fff5395 Merge pull request #12 from Dasemu/fix/purge-confirm-slow-passes
fix(daemon): keep purge confirmations across slow pass cycles
2026-11-17 16:19:31 +01:00
dasemuandClaude Opus 5.5 d73f0c9463 fix(daemon): keep purge confirmations across slow pass cycles
A gap of more than 20 min between two confirmations reset the wait, but a
cycle over ~80 repos took ~25 min, so no deletion was ever confirmed.
Only a gap over 6 h starts over now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 16:19:04 +01:00
dasemu 0f83e9d30b Merge pull request #11 from Dasemu/feat/parallel-sync
feat(daemon): run sync passes on a worker pool
2026-11-17 16:03:10 +01:00
dasemuandClaude Opus 5.5 f16438fa02 feat(daemon): run sync passes on a worker pool
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>
2026-11-17 16:02:41 +01:00
dasemu 6e5bee1a95 Merge pull request #10 from Dasemu/feat/prune-merged-without-pr
feat(daemon): prune branches merged without a PR, protect long-lived ones
2026-11-17 15:31:19 +01:00
dasemuandClaude Opus 5.5 a1646bccb7 feat(daemon): prune branches merged without a PR, protect long-lived ones
- 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>
2026-11-17 15:29:26 +01:00
dasemu c7899bcdc0 Merge pull request #9 from Dasemu/fix/purge-gitea-ssh-not-found
fix(daemon): recognise Gitea SSH "Cannot find repository" for purge
2026-11-17 15:15:58 +01:00
dasemuandClaude Opus 5.5 2772635ff9 fix(daemon): treat Gitea SSH "Cannot find repository" as a purge hint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:15:15 +01:00
dasemu 425980e27f Merge pull request #8 from Dasemu/development
Development
2026-11-17 13:45:38 +01:00
dasemu 206130df98 Merge pull request #7 from Dasemu/claude/funny-planck-2b88wj
feat(daemon): prune worktrees merged through a pull request
2026-11-16 22:46:15 +01:00
Claude e9ac627863 feat(daemon): prune worktrees merged through a pull request
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
2026-11-16 21:41:56 +00:00
dasemu d281c91c30 Merge pull request #6 from Dasemu/development
Development
2026-11-16 22:25:28 +01:00
dasemu 8cb87d9a37 Merge pull request #5 from Dasemu/docs/two-pc-run
docs: record the real two-PC run
2026-11-16 22:24:46 +01:00
dasemuandClaude Opus 5.5 ca8a2986dc docs: record the real two-PC run
Snapshot from Dasemu-PC reached Dasemu-LT as refs/sync-remote/Dasemu-PC/main.
Also logs the install on the second machine and two open questions
(systemd PATH for tea/gh, leftover extensions.worktreeConfig).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:23:31 +01:00
dasemu a5c7cc307b Merge pull request #4 from Dasemu/feat/purge-deleted-remotes
feat(daemon): move repos deleted on their forge to Purged/
2026-11-16 22:22:46 +01:00
dasemuandClaude Opus 5.5 d1d1fa29f3 feat(daemon): move repos deleted on their forge to Purged/
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>
2026-11-16 22:22:31 +01:00
dasemu 9340a436d5 Merge pull request #3 from Dasemu/fix/daemon-detect-inplace-migration
fix(daemon): never block the sync loop on a prompt or a stuck git call
2026-11-16 22:00:06 +01:00
dasemuandClaude Opus 5.5 4c355b28ef fix(daemon): never block the sync loop on a prompt or a stuck git call
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>
2026-11-16 21:59:44 +01:00
dasemu d414862dec Merge pull request #2 from Dasemu/development
Development
2026-11-16 21:42:55 +01:00
dasemu 5f33bb9327 Merge pull request #1 from Dasemu/docs/github-primary
docs: GitHub is the primary remote
2026-11-16 21:37:06 +01:00
dasemuandClaude Opus 5.5 41e7c785af docs: GitHub is the primary remote, Gitea a pull mirror
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:36:27 +01:00
dasemu e6030f780d Merge pull request 'fix: never use a read-only pull mirror as origin' (#10) from fix/migrate-pull-mirror-origin into development 2026-11-16 20:11:40 +00:00
dasemuandClaude Opus 5.5 6720390e3f fix: never use a read-only pull mirror as origin
`grove add` repoints an origin that is a Gitea/GitHub pull mirror to the
mirror's writable source (on a configured provider) and fetches it;
`grove import` clones the source instead of the mirror, keeping the
mirror's name and refusing a visibility mismatch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:11:24 +01:00
dasemu f150f778c3 Merge pull request 'feat(gui): About view with Slint attribution' (#9) from feat/about-slint into development 2026-11-16 18:42:10 +00:00
dasemuandClaude Opus 5.5 7f337d5261 feat(gui): About view with Slint attribution
Adds an About view (sidebar) showing the Grove version, its MIT licence
and the AboutSlint widget, which satisfies the attribution clause of the
Slint Royalty-free Desktop, Mobile, and Web Applications License 2.0.
Documents the licence choice in README and docs/phase7.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:41:56 +01:00
dasemu 37cd4e9931 Merge pull request 'test: clean up temp dirs and spawned daemons' (#8) from fix/test-tmp-cleanup into development 2026-11-16 18:28:53 +00:00
dasemuandClaude Sonnet 5.5 a5716e63a7 docs: add lesson on cleaning test temp dirs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 19:28:03 +01:00
dasemuandClaude Sonnet 5.5 dd4cea48d0 test: clean temp dirs and spawned daemons in all crates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 19:26:23 +01:00
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
dasemu 09fbf79e87 Merge pull request 'feat(gui): native Slint desktop app with tray; faster import, SSH protocol' (#7) from feat/native-gui into development 2026-11-16 18:18:54 +00: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