fix: Standalone, ensure cwd is install dir (#7781)

Our resource loading assumes cwd is the install
dir.
This commit is contained in:
Dominic Cooney authored and GitHub committed 2025-12-02 18:17:58 +09:00
1 parent a0708e57ee
commit b1d15d4fe7
2 files changed
+8

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
fix: Standalone, ensure cwd is the install dir to find resources reliably
+3
View File
@@ -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)