Repository navigation
Install bb-app from npm on native Windows - #4736
Conversation
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 510feebc87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| execFile( | ||
| "taskkill", | ||
| ["/pid", String(pid), "/T", "/F"], | ||
| { windowsHide: true }, | ||
| () => resolvePromise(), |
There was a problem hiding this comment.
Bound the taskkill subprocess with a timeout
When taskkill itself stalls, this promise never resolves, so the Windows branch awaiting it never reaches the fallback SIGKILL and ignores PROCESS_STOP_TIMEOUT_MS; the new Windows tarball smoke can therefore hang until the workflow's 40-minute job timeout. This failure mode is already handled with a two-second deadline in packages/process-utils/src/windows-process-tree.ts, so this cleanup should use the shared helper or apply an equivalent deadline.
Useful? React with 👍 / 👎.
510feeb to
2a272e6
Compare
npm refused bb-app on Windows because its os list named only macOS and Linux, and the docs called native Windows unsupported. The package now lists win32, and the README and platform docs describe native Windows as an alpha host beside WSL2. The tarball smoke runs on Windows: it starts npm and npx through Node, runs the installed commands through npm's .cmd shims, stops process trees with taskkill, and retries removing its temp directory. The Windows app smoke CI job runs it. Co-Authored-By: Claude Code <[email protected]>
2a272e6 to
a9a8fd4
Compare
Human comments
What was wrong
npmrefusedbb-appon Windows with EBADPLATFORM because the package'soslist named only macOS and Linux, and the README and platform docs said native Windows was not supported. The tarball smoke that guards the npm path could not run on Windows: it spawnednpm,npx, and the installed bin links by bare name, and stopped only the direct child. Part of #1206. Stacked on #4735, whose behavior the platform doc describes.What changed
packages/bb-app/package.json:osincludeswin32.packages/bb-app/scripts/smoke-tarball.mjsandmanaged-process.mjs: on Windows the smoke runs npm and npx through Node, runs each installed command through the.cmdshim npm creates, stops process trees withtaskkill(bounded to 2 seconds, then the direct kill), and retries removing its temp directory. macOS and Linux behavior is unchanged..github/workflows/ci.yml: the Windows app smoke job also runssmoke:tarball.packages/bb-app/README.md,docs/platform-support.md, anddocs/windows-ci.mddescribe native Windows as an alpha host beside WSL2 (Git for Windows required, drive-letter paths, PowerShell terminals, the Windows machine command, no server move to Windows).How you verified
node scripts/smoke-tarball.mjspassed in about a minute:npm pack,npx --package <tarball> bb-app --help,npm installof the tarball, the help and config commands through the.cmdshims, the provider bridge and plugin host worker bundles, the full stack, and a joined daemon. Before theoschange npm refused the tarball.smoke:tarballpasses; the bb-app package tests pass with the updatedosassertion. On this branch before the last rebase,turbo run lint typecheck test --filter='...[origin/main]': 184 of 186 tasks passed. The failing tasks were the app and server test tasks, with tests that time out when the development machine is loaded (PromptBoxInternal.test.tsx,machine-environment.test.ts,plugin-native-server-loading.test.ts) and pass when run alone. After the rebase onto current main, lint and typecheck pass for the same filter.Not verified:
npx bb-app@latestfrom the public registry (nothing is published with this change yet); the new CI step has not run.🤖 Generated with Claude Code