fix(opencode): improve binary resolution and HOME handling

This commit is contained in:
Bohdan Triapitsyn
2026-02-05 13:57:50 +02:00
parent 26ffcf4a7b
commit 62b5ddd426
3 changed files with 191 additions and 8 deletions
+1
View File
@@ -102,6 +102,7 @@ function resolveOpencodeCliPath(): string | null {
const home = os.homedir();
const unixFallbacks = [
path.join(home, '.opencode', 'bin', 'opencode'),
path.join(home, '.bun', 'bin', 'opencode'),
path.join(home, '.local', 'bin', 'opencode'),
path.join(home, 'bin', 'opencode'),
];