fix(llm): probe Windows Claude CLI candidates before spawning - #2728
Open
DebadityaHait wants to merge 1 commit into
Open
fix(llm): probe Windows Claude CLI candidates before spawning#2728DebadityaHait wants to merge 1 commit into
DebadityaHait wants to merge 1 commit into
Conversation
DebadityaHait
marked this pull request as ready for review
August 13, 2026 20:43
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
On Windows, Graphify currently trusts the first
claude.cmdfound on PATH. A stale or broken npm shim can shadow a working native Claude CLI and make both Claude CLI call paths fail.This is a resolver-only split of #2573. The all-batches-failed artifact write guard remains separate in #2726.
Changes
claude.cmd,claude.exe, thenclaudewith a bounded--versioncall;-pinvocation;claudebehavior;Validation
uv run --frozen pytest tests/test_claude_cli_backend.py -q— 38 passeduv run --frozen pytest tests/test_claude_cli_backend.py tests/test_labeling.py -q— 65 passeduv run --frozen pytest tests/test_llm_backends.py tests/test_extract.py tests/test_extract_cli.py -q --tb=short— 287 passed, 8 skippeduv run --frozen ruff check graphify/llm.py tests/test_claude_cli_backend.py— passedpython -m py_compile graphify/llm.py tests/test_claude_cli_backend.py— passeduv run --frozen graphify update .— completedgit diff --check— passedRelated to #2573.