Repository navigation
Fix stale Windows shim test and PATH comment - #6958
Merged
Merged
Conversation
#6516 dropped `call` from the Windows Claude Desktop shim, but TestConfigureCredentialHelper_WritesConfigMetaAndShim still asserted `call "<thv>" llm token` on Windows. That contradicts the NotContains check in TestWriteCredentialHelperShim_UsesAbsolutePath, so the test fails on Windows. CI has no Windows runner, so it went unnoticed. Also correct the shim doc comment: explorer-launched apps on Windows do get the user's PATH. The absolute path is still right because it does not depend on thv being on PATH and pins the thv that ran setup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
amirejaz
approved these changes
Oct 27, 2026
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.
Summary
Follow-up to #6516, covering review comments that were still open when it merged.
callfrom the Windows Claude Desktop shim, butTestConfigureCredentialHelper_WritesConfigMetaAndShimstill assertscall "<thv>" llm tokenon Windows. That contradicts theNotContains(shim, "call ")check inTestWriteCredentialHelperShim_UsesAbsolutePath, so the test fails on Windows. CI has no Windows runner, which is why it got through."<thv>" llm token) and thatcallis absent.writeCredentialHelperShimdoc comment says explorer-launched apps on Windows don't get thv's install directory on PATH. They do get the user's PATH from the registry.Type of change
Test plan
task test)task test-e2e)task lint-fix)task teston macOS:pkg/clientpasses. The run had failures in unrelated packages (pkg/desktop,pkg/networkingport 8090 in use,pkg/plugins/pluginsvc, and a live OpenAI test out of quota), all local-environment issues outside the files touched here. The changed assertion only runs on Windows, and I couldn't run it locally.task lint-fixdidn't run locally because the local golangci-lint was built with an older Go than the installed toolchain. CI will lint.Special notes for reviewers
This doesn't settle the remaining open question from the #6516 review: whether Claude Desktop actually spawns a
.cmdcredential helper on Windows. If it spawns the helper without a shell, Node rejects.cmdfiles. Setup would then succeed, but every token fetch would fail. That needs an end-to-end check on a Windows machine with Claude Desktop installed.🤖 Generated with Claude Code