Repository navigation
fix(server): register Linux providers spawned through the ProcessLauncher - #42692
juliusmarminge wants to merge 3 commits into
Conversation
…ned via ProcessLauncher
…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 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.