Skip to content

Report Windows as a machine platform - #4730

Merged
SawyerHood merged 1 commit into
mainfrom
bb/windows-machine-platform-thr_jensq3v9th
Oct 2, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/windows-machine-platform-thr_jensq3v9th

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

A Windows host daemon reported its platform as unknown: hostPlatformSchema had no Windows value and resolveHostPlatform mapped win32 to unknown. The machine had no platform label in Settings, the project path dialog showed POSIX copy and a /path/to/project placeholder, and assertPathMatchesHostPlatform skipped its check, so a POSIX path was accepted for a Windows machine. Part of #1206.

What changed

  • packages/host-daemon-contract/src/local.ts: hostPlatformSchema gains win32. apps/host-daemon/src/host-platform.ts reports it.
  • HOST_DAEMON_PROTOCOL_VERSION goes from 226 to 227, because the session open payload and /status can 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.
  • App: both PLATFORM_LABELS maps show "Windows", and the project path dialog asks for a drive-letter path with a C:\path\to\project placeholder.
  • docs/platform-support.md states 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

  • Windows 11 Enterprise VM (build 26300), on a branch combining this with the other open Windows changes: the daemon's /status returned "platform":"win32", and bb project create --root /home/me/repo returned HTTP 400 "This machine uses Windows paths. Use an absolute path like C:\Users\me\repo."
  • Linux: new 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

AGENT GENERATED

@SawyerHood
SawyerHood marked this pull request as ready for review October 2, 2026 16:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T16:52:43.239053Z 7277e89 Draft marked ready
ℹ️ 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" or "@codex security review".

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
SawyerHood force-pushed the bb/windows-machine-platform-thr_jensq3v9th branch from 7277e89 to d7f65d6 Compare October 2, 2026 17:29
@SawyerHood
SawyerHood merged commit 65dcaab into main Oct 2, 2026
27 checks passed
@SawyerHood
SawyerHood deleted the bb/windows-machine-platform-thr_jensq3v9th branch October 2, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant