[Bug]: Cursor turns fail on Linux with "worker.register failed" (Cannot identify spawned provider) since process launcher
Summary
On Linux, nightly v0.1.12-nightly.20261123.5165 cannot start Cursor turns. Every turn fails with "Provider turn failed to start — Cursor Agent SDK worker.register failed."
The server trace shows the underlying cause:
CursorAgentSdkRunnerError: Cursor Agent SDK worker.register failed.
[cause]: Error: Cannot identify spawned provider
(span CursorAgentSdkProcessRunner.spawnWorker → CursorAgentSdkProcessRunner.open → CursorAdapterV2.ensureThread → ProviderTurnStartService.start)
Frequency
Across the rotated server.trace.ndjson* files: 75 of 77 spawnWorker spans failed. The only 2 successes are in the oldest files, from before updating to .5165. Restarting the app doesn't help.
Likely cause
Two recent changes conflict:
- #39526 (Nov 20) runs the Cursor SDK out of process and registers each worker through
ProviderProcesses.register(pid).registerthrowsCannot identify spawned providerwhenprovider.ppid !== process.pid(apps/server/src/process/providerProcesses.ts). - #31488 (merged 2026-11-23 20:17 UTC, first shipped in
.5165) makesProcessLaunchertheChildProcessSpawneron Linux. Children are now forked byprocess-launcher.mjs, not by the server.
So the Cursor worker's parent is the launcher, the ppid check always fails, and the runner tears the worker down.
Process tree observed while the bug happens:
<server> t3code --require .../compileCache.cjs .../apps/server/...
└─ <launcher> t3code .../apps/server/dist/process-launcher.mjs
This is inferred from the code and the timing; I have not confirmed it with a debugger. .5151 (built before #31488) should not have the problem.
Environment
- T3 Code
0.1.12-nightly.20261123.5165, AppImage, x86_64 - Fedora 44, kernel 7.3, systemd 259 (user manager available)
- Wayland
Workaround
Downgrade to v0.1.12-nightly.20261123.5151.
Possible fixes
- Accept the launcher's PID as a valid parent in
register(or have the launcher report ownership), or - Spawn the Cursor worker through the native spawner and not through
ProcessLauncher.
I'm reproducing this on Linux and working on a fix — the ppid check in providerProcesses.ts conflicts with the new ProcessLauncher spawner on Linux (#31488). Will open a PR once verified.
+1, thx @four1er
+1 thanks @four1er
+1, thx @four1er
Confirmed still happening on v0.1.12-nightly.20261124.5191 (d7ae1e17), the latest nightly at the time of writing. It also happens with the background service (t3 serve under the systemd user manager), not only the AppImage.
Evidence
- In this server's lifetime, all 14
CursorAgentSdkProcessRunner.openspans failed withworker.register→Error: Cannot identify spawned provider. None succeeded. Every Cursor model fails, Gemini Neon included. - Process tree of the running server:
t3 serve (pid 4879, parent: systemd --user)
├─ t3 __process-launcher (pid 4892)
│ ├─ t3-resource-monitor, cloudflared, systemd-inhibit, ssh, … ← spawned via ProcessLauncher
└─ claude … ← Claude CLIs are direct children of the server, so they are unaffected
So anything going through the ChildProcessSpawner, the Cursor worker included, gets the launcher as its ppid. That fails the provider.ppid !== process.pid check in apps/server/src/process/[providerProcesses.ts](https://github.com/home/murillo/.t3/scratch/2026-11-24-read-triage-playbook-md-home-65736fe5/apps/server/src/process/providerProcesses.ts), which matches the diagnosis above.
- The worker itself is healthy:
t3 __cursor-sdk-workerrun by hand (directly, and insidesystemd-run --user --scope) starts and stays up.
Environment: Linux x64, kernel 7.0.0, Node v26.13.1, T3 Code Desktop on macOS connected to this Linux server.
[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of armaansarora
Workaround that works on v0.1.12-nightly.20261124.5191 (Linux, t3 serve under the systemd user manager) until the fix lands: run Cursor through ACP instead of the SDK worker. The ACP path never calls ProviderProcesses.register, so the ppid check doesn't apply.
Add a provider instance to settings.json (T3 picks it up live, no restart):
"cursorAcp": {
"driver": "acpRegistry",
"enabled": true,
"config": { "source": "local", "commandPath": "cursor-agent", "commandArgs": ["acp"] }
}
Verified: a delegate on cursorAcp with Auto and with grok-4.7 both completed, while the SDK cursor instance failed 3/3 with worker.register failed.
Same root cause confirmed here. During a Cursor turn, the worker (t3 __cursor-sdk-worker) is a child of t3 __process-launcher, not of t3 serve. The env → sh → systemd-run --scope chain execs at every step, so only the parent is wrong, not the PID.
Still happening on v0.1.12-nightly.20261125.5222 (4da8d19), the latest nightly at the time of writing. Linux x64, kernel 6.8, Node v26.13.1, t3 serve as a systemd user service, connected from T3 Code Desktop on Windows.
- All 10
CursorAgentSdkProcessRunner.spawnWorkerspans in the current trace fail withworker.register→Cannot identify spawned provider. It also failed on.5204. - Process tree:
t3 __process-launcheris a child oft3 serve; theclaudeCLI is a direct child of the server and works. - The user journal shows the follow-on scope failure after the runner tears the worker down:
t3code-cursor-sdk-*.scope: Couldn't move process … No such process/Failed with result 'resources'. t3 __cursor-sdk-workerrun by hand undersystemd-run --user --scopestays up until stdin closes.
#41936 looks like the fix.
Triaged by Claude Opus 5.5 (Claude Code, T3 Code triage).
This bug now also hit the production version of T3 and makes it unusable with Cursor
Still reproducible on 0.1.12-nightly.20261125.5230 (commit ca81b7b97a1c), Linux x64, AppImage (desktop, not t3 serve). Every Cursor SDK turn fails with worker.register → Cannot identify spawned provider.
Same root cause as described above: the Cursor worker has stdin/stdout/stderr = pipe, so isHostable is true and it is spawned through t3 __process-launcher (a child of the server). providerProcesses.register then sees provider.ppid === launcher pid !== process.pid. Claude CLIs are direct children of the server and are unaffected. A fix should probably also accept ProcessLauncher.currentPid as a valid parent in the ppid check.
+1 on mac 0.1.12 stable release
+1 on linux stable 0.1.12 release
Still reproducible on v0.1.13-nightly.20261125.5245 (1c3f0ee88fc7), the newest nightly at the time of writing. Also on WSL2.
Environment
- T3 Code server
0.1.13-nightly.20261125.5245running in WSL2 (Ubuntu), Linux x64, kernel6.18.58.1-microsoft-standard-WSL2, Node v26.13.1 - Connected from the T3 Code desktop app on Windows to the WSL environment
cursor-agent2026.11.22-e9042b2
Evidence
- 93
CursorAgentSdkProcessRunner.spawnWorkerspans across the rotatedserver.trace.ndjson*files, none successful. They cover two builds: an earlier runtime (13:13–13:16 UTC) and.5245(13:42 UTC, minutes after the server started). - They all fail the same way:
worker.register→Error: Cannot identify spawned provider(ProviderProcesses.register). In the.5245bundle,registerstill requiresprovider.ppid === process.pid. - Process tree:
t3 __process-launcher(child of the server) hosts pipe-only children, so the Cursor worker's parent is the launcher. - The UI shows "Provider turn failed to start — Cursor Agent SDK worker.register failed." and a matching toast. Screenshot attached.
The fix PRs #41936 and #42692 are still open, so .5245 doesn't include either of them.
Triage done with Claude Opus 5.5 in Claude Code, using t3 triage.
Confirmed on Linux on 2026-11-25. Same failure, "Cursor Agent SDK worker.register failed" caused by "Cannot identify spawned provider".
- T3 server pid 4004562 (bin.mjs).
- Process launcher pid 4004704 (process-launcher.mjs), parent 4004562.
- cloudflared and t3-resource-monitor are children of 4004704. The Cursor SDK worker is spawned through that same ChildProcessSpawner, since runServer provides layerServer.
- ProviderProcesses.register in apps/server/src/process/providerProcesses.ts throws when provider.ppid !== process.pid. The worker's parent is the launcher, so every Cursor turn fails in CursorAgentSdkProcessRunner.spawnWorker.
- Cursor API calls in the same session returned HTTP 200, so this is not an auth failure.
- Trace: ~/.t3/userdata/logs/server.trace.ndjson, thread 6ff438c7-38d9-4afd-9d3f-37c6e8759beb, 31 register failures.
Main still has the ppid check. I would land #42692, which checks ProcessLauncher.currentPid and that the launcher's parent is the server. #41936 is the narrower alternative and accepts any direct child of the server.
Also reproducible on v0.1.13-nightly.20261125.5245 in a Linux container without a systemd user session.
Environment
t3 serverunning inside a Docker-based cloud dev workspace (Linux x64, kernel5.15.0-1072-aws)- The server is the container's main process (its parent is PID 1). There's no systemd user manager, no
XDG_RUNTIME_DIRand no user D-Bus, so agent scopes are off cursor-agent2026.11.22-e9042b2, logged in
Evidence
- Every Cursor turn fails: 124
spawnWorkerattempts across two threads, allworker.register→Cannot identify spawned provider - Process tree:
t3 serve→t3 __process-launcher, with Claude as a direct child oft3 serve(Claude works). While I retried a Cursor turn, I polled the server's children every 0.5 ms and the Cursor worker never appeared among them - Started by hand the same way T3 starts it,
t3 __cursor-sdk-workerstays up with the correct parent, so the worker itself is fine
So this isn't tied to systemd scopes, WSL or the desktop app. It happens whenever the process launcher is active on Linux.
Workaround confirmed on .5245: the cursorAcp provider instance from the comment above (acpRegistry + cursor-agent acp). It showed up without a restart, and a test turn on composer-2.5[fast=true] succeeded.
Confirmed still reproducing on 0.1.13-nightly.20261125.5258 (Linux Desktop AppImage).
Environment
- T3 Code:
0.1.13-nightly.20261125.5258(Desktop AppImage, local embedded server) - OS: Omarchy 4.5.0 (Linux x86_64, kernel
7.2.15-1-omarchy, Wayland) - Cursor CLI:
cursor-agent2026.11.22-e9042b2
Evidence
- All 20/20
CursorAgentSdkProcessRunner.spawnWorkerspans across the rotatedserver.trace.ndjson*logs failed with the same error:
CursorAgentSdkRunnerError: Cursor Agent SDK worker.register failed.
[cause]: Error: Cannot identify spawned provider
at Object.register [as registerProcess] (<app.asar>/apps/server/dist/runtimeLayer-COsUV49y.mjs:105648:68)
- The running desktop server (
apps/server/dist/bin.mjs) hasapps/server/dist/process-launcher.mjsactive as a direct child process, matching theProviderProcesses.registerppidmismatch root cause here and in #41936 / #42692.
Drafted with Antigravity (Gemini 4 Neon).
Still happening on v0.1.12 (desktop AppImage, Linux x64, systemd user session). Every Cursor turn fails, and no Cursor worker has registered successfully since the app started (about 30 failures in the server trace over 25 minutes). Restarting the app doesn't help.
Trace (from server.trace.ndjson, span CursorAgentSdkProcessRunner.spawnWorker):
ProviderAdapterEnsureThreadError: Failed to ensure cursor provider thread for app thread <id>.
at CursorAgentSdkProcessRunner.spawnWorker (server-Cgd9z2nv.mjs:76860:10)
at CursorAgentSdkProcessRunner.open (server-Cgd9z2nv.mjs:43854:90)
at CursorAdapterV2.ensureThread (runtimeLayer-CYImUJjW.mjs:71846:42)
at ProviderTurnStartService.loadFromProvider (runtimeLayer-CYImUJjW.mjs:117128:63)
at orchestrationV2.providerTurnStart.start (runtimeLayer-CYImUJjW.mjs:117619:266) {
[cause]: CursorAgentSdkRunnerError: Cursor Agent SDK worker.register failed.
at toRunnerError (server-Cgd9z2nv.mjs:76488:54)
at catch (server-Cgd9z2nv.mjs:76551:23) {
[cause]: Error: Cannot identify spawned provider
at Object.register [as registerProcess] (runtimeLayer-CYImUJjW.mjs:105696:68)
at try (server-Cgd9z2nv.mjs:76550:23)
}
}
What I see on the machine:
- The process tree is
server→process-launcher.mjs→ children. Spawns with pipe or ignore stdio go through the launcher, so the Cursor worker'sppidis the launcher PID and notprocess.pid. The checkprovider.ppid !== process.pidinproviderProcesses.tsregisterthen throws. - The worker itself is fine. Run by hand with
ELECTRON_RUN_AS_NODE=1 <app>/t3code <app>/resources/app.asar/apps/server/dist/bin.mjs __cursor-sdk-worker, it stays up until stdin closes. - After each failure, an empty
t3code-cursor-sdk-*.scopeis leftactiveunderapp-t3code-agents-<hash>.slice, with Tasks 0 and CPU 0. The worker was started and then torn down by the failed register. - The Claude provider process in the same session has the server as its direct parent, so it registers fine. Only Cursor is affected.
#41936 and #42692 both look like they fix exactly this. Merging either one would unblock Cursor on Linux.
still happening
same thing here
issue persist for me as well
Down for two days. Switching back to cursor until fixed.