Commit aca6173
committed
fix(ai): add Homebrew + Linuxbrew fallbacks for Claude CLI detection
Apple Silicon Macs running `brew install --cask claude-code` land the
binary at /opt/homebrew/bin/claude, which we weren't checking. On
macOS, when Phoenix is launched from Finder/Dock the inherited PATH
is the minimal /usr/bin:/bin:/usr/sbin:/sbin so `which claude` misses
anything in shell-managed dirs — making the fallback list the only
detection path that works.
Also reorder so the docs-recommended installs (~/.local/bin from
install.sh, /usr/local/bin) come first and alternative installs
(Homebrew, Linuxbrew) come last.1 parent 6f582ad commit aca6173
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
224 | 230 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
231 | 239 | | |
232 | 240 | | |
233 | 241 | | |
| |||
0 commit comments