Support CC migrate-installer
path (#35717)
If we can't find CC in the PATH, we'll now fall back to a known local install path. Release Notes: - N/A
This commit is contained in:
parent
ecd182c52f
commit
3bbd32b70e
3 changed files with 26 additions and 7 deletions
|
@ -101,8 +101,15 @@ impl AgentConnection for ClaudeAgentConnection {
|
|||
settings.get::<AllAgentServersSettings>(None).claude.clone()
|
||||
})?;
|
||||
|
||||
let Some(command) =
|
||||
AgentServerCommand::resolve("claude", &[], settings, &project, cx).await
|
||||
let Some(command) = AgentServerCommand::resolve(
|
||||
"claude",
|
||||
&[],
|
||||
Some(&util::paths::home_dir().join(".claude/local/claude")),
|
||||
settings,
|
||||
&project,
|
||||
cx,
|
||||
)
|
||||
.await
|
||||
else {
|
||||
anyhow::bail!("Failed to find claude binary");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue