Description
I'm seeing two related problems with manually managed git worktrees in OpenCode Desktop on macOS.
The project has workspaces enabled.
- If I create a git worktree manually outside of OpenCode and then open that folder in OpenCode Desktop using
Open Project, OpenCode no longer detects it as a worktree and does not add it as a workspace.
- If I later delete that worktree manually, the corresponding workspace entry can remain in OpenCode Desktop and I can no longer remove that workspace from the app.
This used to work before, so this appears to be a regression in workspace/worktree detection and cleanup.
Expected behavior
- When opening a manually created git worktree via
Open Project, OpenCode Desktop should detect it as a worktree and add it as a workspace
- If a worktree no longer exists on disk, OpenCode Desktop should either automatically remove the stale workspace entry or allow the user to remove it manually
Actual behavior
Open Project no longer detects manually created git worktrees as workspaces
- After deleting a worktree manually, a stale workspace entry can remain
- That stale workspace can become undeletable from the app
Possibly related:
Plugins
No response
OpenCode version
1.4.0
Steps to reproduce
- Enable workspaces for the project
- Open a git repo in OpenCode Desktop on macOS
- Create a git worktree manually outside of OpenCode, for example:
git worktree add ../my-feature -b my-feature
- In OpenCode Desktop, use
Open Project and select that manually created worktree folder
- Observe that OpenCode does not detect it as a worktree / workspace the way it used to
- Delete that worktree manually outside of OpenCode
- Return to OpenCode Desktop
- Observe that the workspace entry may still remain in the UI
- Try to remove that workspace from OpenCode Desktop
- Observe that the workspace cannot be removed
Screenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
No response
Description
I'm seeing two related problems with manually managed git worktrees in OpenCode Desktop on macOS.
The project has workspaces enabled.
Open Project, OpenCode no longer detects it as a worktree and does not add it as a workspace.This used to work before, so this appears to be a regression in workspace/worktree detection and cleanup.
Expected behavior
Open Project, OpenCode Desktop should detect it as a worktree and add it as a workspaceActual behavior
Open Projectno longer detects manually created git worktrees as workspacesPossibly related:
Plugins
No response
OpenCode version
1.4.0
Steps to reproduce
git worktree add ../my-feature -b my-featureOpen Projectand select that manually created worktree folderScreenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
No response