Skip to content

fix: load services for worktree projects after directory is created#94

Merged
matej21 merged 2 commits intomainfrom
fix/worktree-services
Mar 30, 2026
Merged

fix: load services for worktree projects after directory is created#94
matej21 merged 2 commits intomainfrom
fix/worktree-services

Conversation

@matej21
Copy link
Copy Markdown
Member

@matej21 matej21 commented Mar 30, 2026

Summary

Test plan

  • Manual: add a project with docker-compose.yml, create a worktree from it, verify Services section appears in the sidebar for the worktree project
  • Manual: restart the app with an existing worktree project that has services — verify services load on startup
  • Manual: verify non-worktree projects still load services normally
  • Manual: verify headless mode also correctly loads services for worktree projects

🤖 Generated with Claude Code

JanTvrdik and others added 2 commits March 30, 2026 12:03
When a worktree is created with deferred hooks, the project is registered
in the workspace before the directory exists on disk. The service loading
observer would attempt to load services (finding nothing since the directory
doesn't exist yet) and mark the project as known, never retrying once the
directory was ready.

Skip service loading for projects whose directory doesn't exist yet, so
they get picked up on the next workspace notification after the worktree
directory is created and fire_worktree_hooks runs.

Co-Authored-By: Claude Code
…t_services

Deduplicates the project service sync logic between GUI (mod.rs) and
headless mode, and applies the deferred-worktree Path::exists() fix
to both code paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matej21 matej21 merged commit 87b3d7c into main Mar 30, 2026
8 checks passed
@matej21 matej21 deleted the fix/worktree-services branch March 30, 2026 13:25
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.

2 participants