No config file found in worktree

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The worktree.json file is not used

Steps to Reproduce

create a worktree.json file, see that it is not found or used

Expected Behavior

that the script in the wortree json file would run

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.69 (Universal)
VSCode Version: 1.99.3
Commit: 63fcac100bd5d5749f2a98aa47d65f6eca61db30
Date: 2025-11-07T18:21:29.650Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Additional Information

[2025-11-09T19:49:26.803Z] [worktree-setup] checking config
{“composerId”:“a6c0868f-fec4-46bd-b419-fe38e3fabfca”,“worktreePath”:“/home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL”,“rootWorkspacePath”:“/workspaces/workflow-builder”,“worktreeConfigFile”:“file:///home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL/.cursor/worktrees.json”,“rootConfigFile”:“file:///workspaces/workflow-builder/.cursor/worktrees.json”,“isTargetWindows”:false,“remoteOS”:3}
[2025-11-09T19:49:26.824Z] [worktree-setup] no config file found in worktree or root, skipping

but …

~ $ ll /home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL/.cursor/worktrees.json
-rw-r–r-- 1 node node 59 Nov 9 19:49 /home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL/.cursor/worktrees.json

so it is there.

BTW: this is in a dev container

PS: clicking the link in the url that includes the file:// prefix results in an error, so that may be related.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. Cursor should find .cursor/worktrees.json at the exact paths shown in your logs. The file clearly exists but isn’t being read.

For debugging, please check:

File contents - share what’s in worktrees.json. For Linux/macOS it should use setup-worktree or setup-worktree-unix:

{
  "setup-worktree-unix": ["command"]
}

Permissions - in the container, run:

ls -la /home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL/.cursor/worktrees.json

Alternative - try placing the file at .cursor/worktrees.json in the project root.

This looks like a file:// URI handling or file system access issue in dev containers.

-rw-r–r-- 1 node node 59 Nov 9 19:49 /home/node/.cursor/worktrees/workflow-builder__Container_Workflow_Builder__0fa19fcfaf36__/9LUkL/.cursor/worktrees.json

Same with the local non-worktree one.

Yeah, that’s where I needed up as well.

1 Like

@sroussey are you using devcontainers/Remote SSH?

devcontainer

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.