mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
fix: use process.cwd() consistently across all platforms
Address PR review comment - use process.cwd() for Windows too instead of USERPROFILE/homedir fallback for consistency. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -171,9 +171,7 @@ export class ClaudeUsageService {
|
|||||||
let hasSeenTrustPrompt = false;
|
let hasSeenTrustPrompt = false;
|
||||||
|
|
||||||
// Use current working directory (project dir) - most likely already trusted by Claude CLI
|
// Use current working directory (project dir) - most likely already trusted by Claude CLI
|
||||||
const workingDirectory = this.isWindows
|
const workingDirectory = process.cwd();
|
||||||
? process.env.USERPROFILE || os.homedir() || 'C:\\'
|
|
||||||
: process.cwd();
|
|
||||||
|
|
||||||
// Use platform-appropriate shell and command
|
// Use platform-appropriate shell and command
|
||||||
const shell = this.isWindows ? 'cmd.exe' : '/bin/sh';
|
const shell = this.isWindows ? 'cmd.exe' : '/bin/sh';
|
||||||
|
|||||||
Reference in New Issue
Block a user