Repository navigation
fix(server): CLI single-executable builds again, and CI checks it on every PR - #11
Conversation
…41326) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 8c5bd6fbb5a802edd5c81c9ff48e6978835fcdb8)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Releases have failed since the upstream sync (#9): the macOS arm64 and Linux desktop builds stop at the CLI single-executable step with
ServerCliExecutableImportError: binMain.mjs imports file-backed packages that a single-executable cannot resolve: undici, so neither #9 nor #10 shipped and v1.0.15 is still the latest. This cherry-picks upstream's fix, pingdotgg/t3code#41326 (8c5bd6fbb5).Summary
The MCP webhook client used the undici HTTP client, which imports
undicias an ESM module.undiciis kept outside the CLI bundle, and a Node single-executable can only load such packages throughcreateRequire, so build-exe's import scan rejected the bundle. The plain Node HTTP client keeps the custom DNSlookup.Keeping it from happening again: build-exe used to run only in the release workflow, after a merge to main. CI now runs it on every PR whose change reaches the server, web or desktop build, including the daily upstream sync PR. The required
Checkgate depends on that job, so a sync or PR that breaks the single-executable fails before it merges, instead of after main has moved.Evidence
undiciimport error.vp run check:changedpasses: typecheck across 43 packages, plus the 2 affected test files.Merge Danger
Door: two-way
Identical to the upstream commit, so the next sync merges cleanly over it.
Blast Radius: server
The MCP webhook client moves from undici to Node's
httpclient: same DNS pinning, HTTP/1.1. CI's Build and Typecheck job gets slower by one single-executable build.🤖 Generated with Claude Code
Opus 5.5 via Claude Code in T3 Code