Repository navigation
Report Windows as a machine platform - #4730
Merged
Merged
Conversation
SawyerHood
marked this pull request as ready for review
October 2, 2026 16:50
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. |
A Windows host daemon reported its platform as unknown, so the machine had no platform label, the project path dialog showed POSIX copy, and the server skipped its path-shape check. The platform enum gains win32: the machine shows as Windows, the dialog asks for a drive-letter path, and a POSIX path is refused for a Windows machine the same way a drive-letter path is refused for a POSIX one. Bumps the host daemon protocol to 227. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
force-pushed
the
bb/windows-machine-platform-thr_jensq3v9th
branch
from
October 2, 2026 17:29
7277e89 to
d7f65d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Human comments
What was wrong
A Windows host daemon reported its platform as
unknown:hostPlatformSchemahad no Windows value andresolveHostPlatformmappedwin32tounknown. The machine had no platform label in Settings, the project path dialog showed POSIX copy and a/path/to/projectplaceholder, andassertPathMatchesHostPlatformskipped its check, so a POSIX path was accepted for a Windows machine. Part of #1206.What changed
packages/host-daemon-contract/src/local.ts:hostPlatformSchemagainswin32.apps/host-daemon/src/host-platform.tsreports it.HOST_DAEMON_PROTOCOL_VERSIONgoes from 226 to 227, because the session open payload and/statuscan now carry the new value.apps/server/src/routes/projects.ts: a machine that reported Windows refuses a POSIX path with "This machine uses Windows paths…", the mirror of the existing refusal of drive-letter paths on POSIX machines. Unknown and offline machines still skip the check.PLATFORM_LABELSmaps show "Windows", and the project path dialog asks for a drive-letter path with aC:\path\to\projectplaceholder.docs/platform-support.mdstates the new refusal.Server move still treats only macOS, Linux, and WSL as supported targets; a Windows machine keeps the existing "can't run the bb server" blocker.
How you verified
/statusreturned"platform":"win32", andbb project create --root /home/me/reporeturned HTTP 400 "This machine uses Windows paths. Use an absolute path like C:\Users\me\repo."host-platform.test.ts, a route test for the POSIX-path refusal on a Windows machine, the updated schema and protocol-pin tests, and the existing dialog and settings tests pass. On this branch before the last rebase,turbo run lint typecheck test --filter='...[origin/main]': 191 of 193 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.🤖 Generated with Claude Code