Repository navigation
fix(adopt): client paths and manual steps that read right on Windows - #147
Merged
Merged
Conversation
Found on a real Windows install: - Client paths showed as C:\Users\x\.claude/settings.json. Relative paths are written with `/` in the source and were joined in one piece; Windows finds the file either way, but the UI showed mixed separators. `paths::under` joins them one component at a time, and every such join in tw-adopt and tw-scan goes through it. - Zed keeps its settings under %APPDATA%\Zed on Windows, not ~/.config/zed. - The manual steps said `~/…` and "export in the shell configuration". On Windows the file step shows %USERPROFILE%\…, Continue's step says where its file is there, and Gemini CLI's steps use setx. Those Windows sentences get their own codes (continue.open_windows, gemini_cli.setx, gemini_cli.caveat_windows); the macOS ones are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two tests still expected `~/…`, which is now %USERPROFILE%\… on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Three things found on a real Windows install of ThinkWatch Lite 2026.9.10 (clients page):
C:\Users\admin\.claude/settings.json. The relative paths are written with/and werejoined in one piece. Newpaths::under(base, rel)joins one component at a time; used for client config/shadow/marker paths, MCP targets, the project-level check indetect.rs, and all of tw-scan's sources.%APPDATA%\Zed\settings.json, not~/.config/zed.paths::zed_settings()/paths::ZED_DIRper platform (client, MCP target, scan source).~/…and "export … in the shell configuration" are wrong on Windows.adopt.manual.file: same code and args, thefilearg is now%USERPROFILE%\…on Windows (paths::shown).adopt.manual.continue.open_windows,adopt.manual.gemini_cli.setx,adopt.manual.gemini_cli.caveat_windows. The caveat suffix is now per entry so a platform can have its own.Verification
cargo fmt --check,cargo clippy --all-targets -D warnings,cargo clippy -p tw-adopt -p tw-scan --lib -D warnings,cargo test --workspace.paths.rs(std only) compiled and linted forx86_64-pc-windows-msvcandaarch64-pc-windows-msvc; the rest is covered by the Windows CI job.🤖 Generated with Claude Code