GeezerVison is showing github.com — fix(release): CLI executable builds again after Cursor Origin by t3dotgg · Pull Request #33442 · pingdotgg/t3code
Conversation
Problem
Every Release run since 10:15 UTC today fails. All five desktop builds stop at "Build CLI single-executable" with:
ServerCliExecutableImportError: binMain.mjs imports file-backed packages that a single-executable cannot resolve: undici.
The first bad commit is #33093 (Cursor Origin provider). OriginCli.ts used NodeHttpClient.layerUndiciNoDispatcher and Agent from @effect/platform-node/Undici. makeUndici reaches platform-node's lazy import("./Undici.js"). The CLI bundle has no code splitting, so that file is inlined with a static import "undici". Node single-executables resolve only builtin imports.
Change
- Load undici through
createRequire, the same way apps/server/src/outboundHttp.ts does.
- Send Origin requests through effect's
FetchHttpClient, with undici.fetch and the same HTTP/2 keep-alive Agent. redirect: "manual" keeps the old behavior, so classifyOriginResponse still sees a 3xx.
- The package now depends on
undici (catalog) and no longer on @effect/platform-node.
Scope and approval
Maintainer CI health pass. This fixes a main break in the release pipeline. It changes only the Origin HTTP client layer.
Verification
node apps/server/scripts/cli.ts build-exe under Node 26.12.1: fails on main with the CI error above. Passes on this branch.
- Runtime check:
FetchHttpClient + undici.fetch + Agent({ allowH2: true }) connected to api.cursor.com over https:h2 and read the body. redirect: "manual" on a POST to a 302 returns status 302.
vp run check:changed: all pass. Origin tests pass.
- Not checked: a real Origin session with a signed-in
origin CLI, and a full Release run. PR CI does not run build-exe.
Reviewed with sol-loop: 2 passes with GPT-6.1 Sol. Sol verdict: approved
🤖 Generated with Claude Code (Claude Opus 5.5) as part of the daily CI health pass.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Cursor Origin imported @effect/platform-node/Undici and used makeUndici,
which put a static `import "undici"` in the CLI bundle. Node
single-executables only resolve builtin imports, so every Release desktop
build failed at "Build CLI single-executable".
Load undici through createRequire, as outboundHttp does, and send Origin
requests through FetchHttpClient with undici's fetch and the same HTTP/2
keep-alive Agent.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
dispatcher,
|
|
|
redirect: "manual",
|
|
|
})) as unknown as typeof globalThis.fetch;
|
|
|
return FetchHttpClient.layer.pipe(Layer.provide(Layer.succeed(FetchHttpClient.Fetch, fetch)));
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 High server/OriginCli.ts:519
send reports successful Origin 204/205 responses as “Could not reach Cursor Origin,” so completed POST/PATCH mutations appear to fail and may be retried. This FetchHttpClient exposes a null body for those statuses, and collecting response.stream throws EmptyBodyError before send checks the status or reaches its empty-body fallback; handle no-content responses before collecting the stream.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @packages/source-control-cursor-origin/src/server/OriginCli.ts around line 519:
`send` reports successful Origin `204`/`205` responses as “Could not reach Cursor Origin,” so completed POST/PATCH mutations appear to fail and may be retried. This `FetchHttpClient` exposes a null body for those statuses, and collecting `response.stream` throws `EmptyBodyError` before `send` checks the status or reaches its empty-body fallback; handle no-content responses before collecting the stream.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Would Approve
Macroscope's review found this PR approvable — The change replaces Cursor Origin’s HTTP transport to support executable builds while retaining existing connection and request safeguards. The reported no-content response regression remains subject to the independent correctness blocking gate.
Needs human approval because:
- 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
21.5 KiB |
21.5 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Codex |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.9 KiB |
21.9 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Claude |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
Baseline: b8c2cfa · PR result: 3b43277 · Source CI: success
Scenario and decoded snapshot size
10 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.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The package replaces @effect/platform-node with undici. OriginCli now provides FetchHttpClient with a custom fetch that uses a managed Undici agent.
Changes: HTTP client integration
| Layer / File(s) |
Summary |
Undici-backed FetchHttpClient packages/source-control-cursor-origin/package.json, packages/source-control-cursor-origin/src/server/OriginCli.ts |
The package adds undici and removes @effect/platform-node. OriginCli creates a managed Undici agent and supplies it to FetchHttpClient through a custom fetch configured for HTTP/2, five-minute keep-alive timeouts, and manual redirects. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: maria-rcks
Merge Risk: Minimal · up to 3b432
-
No actionable merge-blocking issue was identified. A full release run and signed-in Origin session remain unchecked, but neither establishes a current defect.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the primary change: it fixes the release CLI single-executable build that broke after the Cursor Origin change. The changeset replaces the Node platform Undici client with FetchHttpCli… |
| Description check |
 |
The description follows the template sections (Problem, Change, Scope and approval, Verification) and fills each one with specific content. The Problem section gives the failing error and the first ba… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the primary change: it fixes the release CLI single-executable build that broke after the Cursor Origin change. The changeset replaces the Node platform Undici client with FetchHttpClient and createRequire-loaded undici, and swaps the package dependency, which matches the title's scope.
Full details: Description check
-
Explanation
The description follows the template sections (Problem, Change, Scope and approval, Verification) and fills each one with specific content. The Problem section gives the failing error and the first bad commit. The Change section lists the code and dependency updates. The Verification section gives build and runtime results and names what was not checked. The Scope section explains the CI-health fix but does not link a triaged issue or maintainer approval comment. The template requires that link or explanation for scope approval, so this is a gap. The template also asks for a model and harness line when an agent was used. The author lists Claude Code and sol-loop, which covers that line.
Resolution
Optional: link the triaged bug issue or the maintainer approval for this fix in the Scope and approval section. The current text says it is a maintainer CI health pass, which may not meet the approval requirement by itself.
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between b8c2cfa and 3b43277.
Files ignored due to path filters: 1
-
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 2
-
packages/source-control-cursor-origin/package.json
packages/source-control-cursor-origin/src/server/OriginCli.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded by #33483, which fixed the same Release break. Release is green from 18:40 UTC.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|