Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- On native Windows, run T3 as a standard user with Developer Mode off.
- Open a project whose root is a plain folder containing multiple Git repositories and a shared directory such as
.claudealongside them. Include a loose shared file such asAGENTS.mdin the test fixture. - Start a thread in New worktree mode.
Expected behavior
Provisioning completes without requiring elevated privileges or Developer Mode. The thread can access the shared project configuration at the expected paths.
Actual behavior
Provisioning fails during Check out files, before the agent starts. The server reports PermissionDenied: FileSystem.symlink (<project-root>\.claude). On the affected host, a separate native Windows check confirmed that creating a directory symlink without elevation failed while creating a directory junction succeeded.
TaskFolders.ts uses a symlink for shared entries outside the tracked repository roots. Git checkout itself does not need this operation.
Impact
Blocks new worktree threads for the affected project.
Version or commit
T3 desktop 0.1.12.
Proposed fix
Use junctions for shared directories on Windows when the target supports them. Keep symlinks for shared files and directories on macOS and Linux. Define the Windows behavior for loose files separately so provisioning can complete with Developer Mode off. A copy is a snapshot and changes live sharing semantics. A hard link cannot cross volumes.
Acceptance checks
| Platform | Check |
|---|---|
| Windows | With Developer Mode off and a non-elevated T3 process, provision with both a shared directory and loose shared files. Verify same-volume and cross-volume local NTFS layouts, live directory updates through the junction, and the documented behavior for loose files. |
| macOS | Provision with the same project fixture. Verify that shared files and directories are symlinks and that source edits remain visible. |
| Linux | Run the same fixture independently on Linux. Verify live sharing through both file and directory symlinks. |
On each OS, exercise normal worktree removal and rollback after failed provisioning. Verify that links and owned checkout artifacts are cleaned up while the shared targets and their contents survive. For Windows, include the cleanup path covered by #21099. Report the three platforms separately and record skipped checks as untested.
Activity
andrerfcsantos commentedon Nov 28, 2026
Reproduced on T3 Code desktop 0.1.13 (Windows 11 x64, build 10.0.26300, Developer Mode off, non-elevated, no
SeCreateSymbolicLinkPrivilege).Minimal layout: the project root is a plain folder (not a git repo):
Steps:
my-projectas a project in the desktop app.Result:
Workspace preparation failed during provision worktree: Could not create the worktrees: PermissionDenied: FileSystem.symlink (<project-root>\some-folder)From
server.trace.ndjson(spanTaskFolders.create→ThreadLaunchService.prepareInBackground, failed duringprovision-worktree):More detail for this issue:
.claudeorAGENTS.md. Any non-repo entry in the project root, even an empty folder, goes throughlinkFolder→fileSystem.symlink(TaskFolders.ts:744at v0.1.13). My real case was an unrelated empty folder.linkFolder. Only non-repo entries are symlinked.linkFolder/symlinkpath runs when a repository is added to an existing worktree thread (openLinkedPathand the relink atTaskFolders.ts:1469), and when a missing task folder is restored (TaskFolders.ts:1689). The fix in fix(server): worktree setup links shared project entries without elevation on Windows #44460 should probably cover those too.Triaged with
t3 triage(CLI 0.1.13) by Claude Opus 5.5 (claude-opus-5-5) in Claude Code.