mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 00:03:20 +00:00
The committed fix keyed folder detection off the ::workspace:<uuid> suffix
strip (isFolderWorkspace = worktreePath !== parsed.worktreePath). That leaves
two folder-workspace placeholders git-classified during hydration:
- the bare root worktree id (folder-workspace:<pgid>::<path>, no suffix), and
- any instance when the suffix-less root key is processed first (the
if (!existingRepo) early insert then skips the kind:'folder' tag).
Both still hit the isGitRepoKind-gated status poll (verified reproducing).
Key folder detection off the folder-workspace:<pgid> repo-id prefix instead
(new shared isFolderWorkspaceRepoId predicate), which is exclusive to folder
repos (git repo ids are bare UUIDs) and order-independent. Still strips the
suffix via splitWorktreeIdForFilesystem for a real folder cwd. Adds root-only
and root-before-instance regression tests; strengthens the instance test so it
can't pass vacuously. Framing unchanged: root-cause/churn fix, raw ENOENT
already guarded on main.
Co-authored-by: Orca <help@stably.ai>