Before submitting
Area
apps/desktop
Steps to reproduce
- Install the desktop app fresh on Windows.
- Open DP Code.
- Add a local project/folder.
- The UI shows the add flow, but no project/thread appears.
- Try adding the same folder again.
- The second attempt fails with a duplicate workspace-root error.
Expected behavior
The first add should surface the project and let me start/use threads immediately. If the project already exists, the app should recover or focus that existing project instead of throwing an invariant error.
Actual behavior
The first project.create appears to succeed, but the client never surfaces the project/thread. The second add then fails with:
Orchestration command invariant failed (project.create): Project '<id>' already uses workspace root '<path>'
Impact
Blocks work completely
Version or commit
Desktop app build on Apr 21, 2026
Environment
Windows desktop app, first install / fresh local state
Logs or stack traces
`Error: Orchestration command invariant failed (project.create): Project 'de518ba1-43c2-46ae-80af-2cbb219ad231' already uses workspace root 'C:\Users\elson\my_coding_play\play projects\pi'.`
Screenshots, recordings, or supporting files
image.png
Workaround
No reliable user-facing workaround found. Restarting/reloading may resync state sometimes, but the add flow itself is broken.
Before submitting
Area
apps/desktop
Steps to reproduce
Expected behavior
The first add should surface the project and let me start/use threads immediately. If the project already exists, the app should recover or focus that existing project instead of throwing an invariant error.
Actual behavior
The first
project.createappears to succeed, but the client never surfaces the project/thread. The second add then fails with:Orchestration command invariant failed (project.create): Project '<id>' already uses workspace root '<path>'Impact
Blocks work completely
Version or commit
Desktop app build on Apr 21, 2026
Environment
Windows desktop app, first install / fresh local state
Logs or stack traces
`Error: Orchestration command invariant failed (project.create): Project 'de518ba1-43c2-46ae-80af-2cbb219ad231' already uses workspace root 'C:\Users\elson\my_coding_play\play projects\pi'.`Screenshots, recordings, or supporting files
image.png
Workaround
No reliable user-facing workaround found. Restarting/reloading may resync state sometimes, but the add flow itself is broken.