GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(server): register Linux providers spawned through the ProcessLauncher by juliusmarminge · Pull Request #42692 · pingdotgg/t3code Conversation
|
| Before | After |
|---|---|
| a05a8518f9 | 25f18631b8 |
| Before recording | After recording |
Base fails with Cursor Agent SDK worker.register failed, caused by Cannot identify spawned provider. Head successfully starts a new worker and responds ok.
Browser driver · Base runtime trace · Head runtime trace
vp test run src/process/providerProcesses.test.ts (apps/server): 2 passedproviderProcesses.ts swapped in: the new case fails with Cannot 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 passRun by the t3code factory in T3 Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…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 <[email protected]>
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Validate provider parent ownership apps/server/src/process/providerProcesses.ts, apps/server/src/process/providerProcesses.test.ts |
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. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: macroscopeapp
25f18This 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.
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.
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.
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.
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.
7f31935a-6fef-4bc5-950d-528663c8d808apps/server/src/process/providerProcesses.test.tsapps/server/src/process/providerProcesses.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merge upstream PR pingdotgg#42692 into the popcell fork.
There was an error while loading. Please reload this page.
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
…cher (pingdotgg#42692) Co-authored-by: Ahmed Bedair <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Yash Singh <[email protected]> (cherry picked from commit 56db9ef)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Cursor turns fail on Linux with "worker.register failed" (Cannot identify spawned provider) since process launcher
There was an error while loading. Please reload this page.