From b1d15d4fe76beb8c208b320b738aa06aaa9d237c Mon Sep 17 00:00:00 2001 From: Dominic Cooney Date: Tue, 2 Dec 2025 18:17:58 +0900 Subject: [PATCH] fix: Standalone, ensure cwd is install dir (#7781) Our resource loading assumes cwd is the install dir. --- .changeset/kind-paws-win.md | 5 +++++ src/standalone/cline-core.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/kind-paws-win.md 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)