Skip to content

Commit 37a6773

Browse files
nunocoracaoclaude
andcommitted
fix: add ~/.local/bin/claude to agent binary fallback paths
Claude Code installs to ~/.local/bin/ which wasn't in the fallback list. Reverts unnecessary PATH augmentation in daemon.ts since the daemon resolves the binary via its own fallback logic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9779be0 commit 37a6773

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

gui/src/main/daemon.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,10 @@ export async function ensureDaemon(): Promise<DaemonInfo> {
4545
throw new Error('watchfired binary not found')
4646
}
4747

48-
// Start daemon in background with a usable PATH.
49-
// Packaged Electron apps inherit a minimal environment, so we augment PATH
50-
// with common locations where claude and other tools are installed.
51-
const shellPath = process.env.PATH || ''
52-
const extraPaths = ['/opt/homebrew/bin', '/usr/local/bin', '/usr/bin', join(homedir(), '.local', 'bin')]
53-
const fullPath = [...extraPaths.filter((p) => !shellPath.includes(p)), shellPath]
54-
.filter(Boolean)
55-
.join(':')
56-
48+
// Start daemon in background
5749
const child = execFile(daemonPath, [], {
5850
detached: true,
59-
stdio: 'ignore',
60-
env: { ...process.env, PATH: fullPath }
51+
stdio: 'ignore'
6152
})
6253
child.unref()
6354

internal/daemon/agent/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ func resolveAgentPath() (string, error) {
605605
homeDir, _ := os.UserHomeDir()
606606
fallbacks := []string{
607607
homeDir + "/.claude/local/claude",
608+
homeDir + "/.local/bin/claude",
608609
}
609610

610611
if runtime.GOOS == "darwin" {

0 commit comments

Comments
 (0)