Repository navigation
IDE: run Claude Code's native CLI for its sign-in (#297) - #309
Merged
Merged
Conversation
The login hint from claude-agent-acp runs the adapter script through the IDE executable with --cli. On Windows that GUI executable sits between the terminal and claude.exe, so the sign-in prompt got no input. Run the native claude binary shipped beside the adapter directly instead.
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.
Follow-up to #299 for #297. On Windows, the Claude Code sign-in terminal opened but accepted no input.
Cause
The login hint from claude-agent-acp runs the adapter script through the IDE executable (
ELECTRON_RUN_AS_NODE) with--cli, and the adapter then spawnsclaude.exe. On Windows, that GUI-subsystem executable sits between the ConPTY and the console program, so keystrokes and output never cross it.Change
nativeLoginProgram(agentCatalog.ts) recognises an adapter--clihint and resolves the nativeclaudebinary that ships beside the adapter. It looks innode_modules/@anthropic-ai/claude-agent-sdk-<platform>-<arch>/claude(.exe)as Node does, walking up from the adapter's folder.CLAUDE_CODE_EXECUTABLEtakes precedence when it is set.auth login --claudeai|--console) and drops--hide-claude-auth.Tests
.exeresolution, theCLAUDE_CODE_EXECUTABLEoverride, and programs that must stay unchanged.npm run ide:test: 1017 passed, 0 failed.claude-agent-sdk-linux-x64/claude. Run in a pty, it prints the sign-in URL and waits at "Paste code here if prompted >".Generated by Claude Code