You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): register Linux providers spawned through the ProcessLauncher - #42692
On Linux the server refused to register agent CLIs started through its process-launcher helper, because it only trusted processes whose parent was the server itself, so those providers failed to start with "Cannot identify spawned provider". ProviderProcesses.register now also accepts a provider whose parent is the active ProcessLauncher, after checking that the launcher is itself a direct child of the server.
Supersedes #42690. The change is @bedair81's; their commits are kept.
Reproduction on main
On Linux with the process launcher active, connect to T3 Code and configure an authenticated Cursor provider in Settings → Providers. Create a thread, select Cursor and an available model, then send 'Reply with the single word: ok'. Main fails during worker registration; this change should allow the turn to start and respond. These steps were derived from the reports and source, not executed.
Evidence
On Linux with ProcessLauncher active, pair the fresh app, add authenticated Cursor in Settings → Providers, select Cursor / Grok 4.7, and send Reply with the single word: ok. Both sides use fresh isolated databases, light theme, and a 1280×800 browser viewport.
Base fails with Cursor Agent SDK worker.register failed, caused by Cannot identify spawned provider. Head successfully starts a new worker and responds ok.
No test pins the launcher-parent check (a launcher that is not the server's child); the author's stubbed-service test for it passes on main too, so it was dropped under the testing doc's fewest-tests rule.
Who did the work
Written by Claude Opus 5.5, in Claude Code
Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
…case
Keep the case that fails on main (a launcher-hosted provider is rejected)
plus a rejection of a non-child, and fold the launcher-ownership check
into one expression.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewing files that changed from the base of the PR and between 25f1863 and 7515d86.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
Provider registration now accepts providers parented by the server or by a launcher process verified as a server child. A Linux integration test checks registration, cleanup, and rejection of an unidentifiable provider.
Registration accepts direct server children and children of the server’s confirmed launcher process. The Linux integration test checks PID recording, removal through forget, and rejection of the current process.
pingdotgg/t3code#41936: Addresses the same provider registration failure by accepting launcher-owned providers.
pingdotgg/t3code#42690: Changes the same parent-process validation to accept providers parented by the active launcher.
Suggested labels:bugfix
Suggested reviewers:macroscopeapp
Merge Risk: Minimal · previous review 25f18
This change lets provider registration succeed on Linux when agent CLIs are launched through the process launcher, which fixes the reported "Cannot identify spawned provider" failure. No actionable merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the change: it fixes server-side registration of Linux providers spawned through the ProcessLauncher. It matches the main change in the summary and objectives. It uses conventional com…
Linked Issues check
[#41929] The reported failure comes from ProviderProcesses.register rejecting a Cursor worker whose parent is the process launcher, not the server. At head, `apps/server/src/process/providerProcesse…
Out of Scope Changes check
Whole-PR diff against the merge base a05a8518 touches apps/server/src/process/providerProcesses.ts (launcher import, runSync helper, isOwnedParent check) and providerProcesses.test.ts (a Lin…
Description check
The description covers the required sections. Problem: on Linux, the server rejected agent CLIs started through ProcessLauncher, which only trusted direct server children, so providers failed with "Ca…
Full details: Title check
Explanation
The title names the change: it fixes server-side registration of Linux providers spawned through the ProcessLauncher. It matches the main change in the summary and objectives. It uses conventional commit format and is specific.
Full details: Linked Issues check
Explanation
[#41929] The reported failure comes from ProviderProcesses.register rejecting a Cursor worker whose parent is the process launcher, not the server. At head, apps/server/src/process/providerProcesses.ts adds isOwnedParent(ppid). It accepts ppid === process.pid, or ppid equal to ProcessLauncher.currentPid when the launcher's own parent is process.pid. The launcher PID comes from ProcessLauncher.ts (current?.worker.pid), so the check uses the live helper. This matches the issue's first proposed fix: accept the launcher PID as a valid parent after confirming ownership. The unmatched cases still throw Cannot identify spawned provider. The issue does not require automated tests. Test coverage for the launcher-parent rejection path is absent. The PR description states this, and it does not change the coding requirement result. The PR does not implement the issue's alternative (native spawner), which is optional.
Full details: Out of Scope Changes check
Explanation
Whole-PR diff against the merge base a05a8518 touches apps/server/src/process/providerProcesses.ts (launcher import, runSync helper, isOwnedParent check) and providerProcesses.test.ts (a Linux-only test for the launcher-parent path). Both changes support the registration fix for #41929. The PR description's evidence capture and attribution notes are not code changes. No unrelated code change was found.
Full details: Description check
Explanation
The description covers the required sections. Problem: on Linux, the server rejected agent CLIs started through ProcessLauncher, which only trusted direct server children, so providers failed with "Cannot identify spawned provider". Change: ProviderProcesses.register also accepts a provider whose parent is the active ProcessLauncher, after checking the launcher is a direct child of the server. Scope: it links issue #41929 and the supersedes #42690 context. Verification: it lists focused test commands with results, a before/after comparison with screenshots, recordings and traces, and a note on what was not covered. It also names the models and tools used, as the template requests. The reproduction steps are marked as derived, not executed. The main gap is that no test covers the launcher-parent check itself, which the description discloses. The description is complete enough to pass.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between a05a851 and 25f1863.
Files selected for processing: 2
apps/server/src/process/providerProcesses.test.ts
apps/server/src/process/providerProcesses.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
…cher
Cherry-picked from upstream 56db9ef (pingdotgg#42692). On Linux (including the
WSL runtime) providers are children of the process launcher, not the
server, so the ownership registry rejected them and Cursor failed with
"worker.register failed".
(cherry picked from commit 56db9ef)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Linux the server refused to register agent CLIs started through its process-launcher helper, because it only trusted processes whose parent was the server itself, so those providers failed to start with "Cannot identify spawned provider".
ProviderProcesses.registernow also accepts a provider whose parent is the activeProcessLauncher, after checking that the launcher is itself a direct child of the server.Fixes #41929
Supersedes #42690. The change is @bedair81's; their commits are kept.
Reproduction on main
On Linux with the process launcher active, connect to T3 Code and configure an authenticated Cursor provider in Settings → Providers. Create a thread, select Cursor and an available model, then send 'Reply with the single word: ok'. Main fails during worker registration; this change should allow the turn to start and respond. These steps were derived from the reports and source, not executed.
Evidence
On Linux with ProcessLauncher active, pair the fresh app, add authenticated Cursor in Settings → Providers, select Cursor / Grok 4.7, and send
Reply with the single word: ok. Both sides use fresh isolated databases, light theme, and a 1280×800 browser viewport.Base fails with
Cursor Agent SDK worker.register failed, caused byCannot identify spawned provider. Head successfully starts a new worker and respondsok.Browser driver · Base runtime trace · Head runtime trace
Tests
vp test run src/process/providerProcesses.test.ts(apps/server): 2 passedproviderProcesses.tsswapped in: the new case fails withCannot identify spawned provider(the reported bug)vp test run src/process/agentScope.test.ts(apps/server): 17 passedvp run check:changed: format, lint, knip, graphql, typecheck and tests all passNot in this change
Who did the work
Run by the t3code factory in T3 Code.