Skip to content

[Bug]: Cursor turns fail on Linux with "worker.register failed" (Cannot identify spawned provider) since process launcher #41929

Backlog

Description

@vsrnth

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:

  1. perf(cursor): run Cursor SDK agents and text generation out of process #39526 (Nov 20) runs the Cursor SDK out of process and registers each worker through ProviderProcesses.register(pid). register throws Cannot identify spawned provider when provider.ppid !== process.pid (apps/server/src/process/providerProcesses.ts).
  2. fix(server): git commands no longer fork the whole server on Linux #31488 (merged 2026-11-23 20:17 UTC, first shipped in .5165) makes ProcessLauncher the ChildProcessSpawner on Linux. Children are now forked by process-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.

Activity

  1. four1er commented on Nov 24, 2026

    @four1er

    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.

  2. lawmight commented on Nov 24, 2026

    @lawmight

    +1, thx @four1er

  3. JonathanPitre commented on Nov 24, 2026

    @JonathanPitre

    +1 thanks @four1er

  4. chaoedu commented on Nov 24, 2026

    @chaoedu

    +1, thx @four1er

  5. murillopm commented on Nov 24, 2026

    @murillopm

    Confirmed still happening on v0.1.12-nightly.20261124.5191 (d7ae1e1), 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.open spans failed with worker.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-worker run by hand (directly, and inside systemd-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.

  6. armaansarora commented on Nov 24, 2026

    @armaansarora

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions