diff --git a/.changeset/kind-paws-win.md b/.changeset/kind-paws-win.md new file mode 100644 index 00000000..2862b41c --- /dev/null +++ b/.changeset/kind-paws-win.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +fix: Standalone, ensure cwd is the install dir to find resources reliably diff --git a/src/standalone/cline-core.ts b/src/standalone/cline-core.ts index 92f800e6..2f5c92b2 100644 --- a/src/standalone/cline-core.ts +++ b/src/standalone/cline-core.ts @@ -31,6 +31,9 @@ async function main() { process.exit(0) } + // Resource loading assumes cwd is the installation directory + process.chdir(__dirname) + // Initialize context with optional custom directory from CLI const { extensionContext, DATA_DIR, EXTENSION_DIR } = initializeContext(args.config)