Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/claude/claudeLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,17 @@ export async function claudeLocal(opts: {
args.push('--allowedTools', opts.allowedTools.join(','));
}

// Add custom Claude arguments
if (opts.claudeArgs) {
args.push(...opts.claudeArgs)
}

// Add hook settings for session tracking (when available)
if (opts.hookSettingsPath) {
args.push('--settings', opts.hookSettingsPath);
logger.debug(`[ClaudeLocal] Using hook settings: ${opts.hookSettingsPath}`);
}

// Add custom Claude arguments LAST (so prompt/slash commands are at the end)
if (opts.claudeArgs) {
args.push(...opts.claudeArgs)
}

if (!claudeCliPath || !existsSync(claudeCliPath)) {
throw new Error('Claude local launcher not found. Please ensure HAPPY_PROJECT_ROOT is set correctly for development.');
}
Expand Down