Skip to content

Studio: Windows prep — platform-neutral pieces before the Windows build (#936) #937

Done

Description

@danielrispler

Parent

#936

What to build

The platform-neutral changes the Windows build needs, landed first on main so the build ticket is smaller. Nothing changes for a user on macOS or Linux.

  • test-support's fake copies the test binary whenever a hard link fails, not only across devices (the runners' D: drive is ReFS).
  • Every test helper that sets HOME also sets USERPROFILE, since home_dir reads USERPROFILE on Windows.
  • The hook reads git ls-files -z output as UTF-8 instead of OsStrExt::from_bytes.
  • ureq becomes a target-specific dependency of studio-understanding, without its tls feature on Windows.
  • Each cfg(not(target_os = "macos")) arm that means Linux becomes cfg(target_os = "linux") where Windows needs a different answer (Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936, "How the platform split is organised").

An ordinary PR to main, checked on the Mac and by the existing CI; it runs before 01.

Acceptance criteria

  • The fake falls back to a copy on any hard-link error, with a test row that forces the fallback.
  • Every helper that sets HOME sets USERPROFILE to the same folder.
  • git ls-files -z is parsed as UTF-8; a non-UTF-8 name is skipped, not a panic, with a test row.
  • cargo tree --target x86_64-pc-windows-msvc -e normal -i ring finds no path to ring; macOS and Linux keep tls.
  • No cfg(not(target_os = "macos")) arm that holds Linux-only code is left (git grep in the PR).
  • npm run check passes.

Reading

Touches

  • Files: test-support/src/fake.rs, hook/tests/common.rs, server/tests/isolated_home/mod.rs, hook/src/lib.rs, server/src/runner.rs, server/src/settings.rs, Cargo.toml, understanding/Cargo.toml
  • Session: auto mode
  • Route: medium · effort medium — five small platform-neutral changes, each with a row or a command; no stored type

Metadata

Metadata

Assignees

Labels

ready-for-agentwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions