mirror of
https://github.com/andrepimenta/claude-code-chat.git
synced 2026-02-17 14:17:39 +00:00
Use --permission-mode plan flag for plan mode
Replace message prepending with native CLI flag for cleaner implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -463,11 +463,8 @@ class ClaudeChatProvider {
|
|||||||
const configThink = vscode.workspace.getConfiguration('claudeCodeChat');
|
const configThink = vscode.workspace.getConfiguration('claudeCodeChat');
|
||||||
const thinkingIntensity = configThink.get<string>('thinking.intensity', 'think');
|
const thinkingIntensity = configThink.get<string>('thinking.intensity', 'think');
|
||||||
|
|
||||||
// Prepend mode instructions if enabled
|
// Prepend thinking mode instructions if enabled
|
||||||
let actualMessage = message;
|
let actualMessage = message;
|
||||||
if (planMode) {
|
|
||||||
actualMessage = 'PLAN FIRST FOR THIS MESSAGE ONLY: Plan first before making any changes. Show me in detail what you will change and wait for my explicit approval in a separate message before proceeding. Do not implement anything until I confirm. This planning requirement applies ONLY to this current message. \n\n' + message;
|
|
||||||
}
|
|
||||||
if (thinkingMode) {
|
if (thinkingMode) {
|
||||||
let thinkingPrompt = '';
|
let thinkingPrompt = '';
|
||||||
const thinkingMesssage = ' THROUGH THIS STEP BY STEP: \n'
|
const thinkingMesssage = ' THROUGH THIS STEP BY STEP: \n'
|
||||||
@@ -548,6 +545,11 @@ class ClaudeChatProvider {
|
|||||||
args.push('--mcp-config', this.convertToWSLPath(mcpConfigPath));
|
args.push('--mcp-config', this.convertToWSLPath(mcpConfigPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add plan mode if enabled
|
||||||
|
if (planMode) {
|
||||||
|
args.push('--permission-mode', 'plan');
|
||||||
|
}
|
||||||
|
|
||||||
// Add model selection if not using default
|
// Add model selection if not using default
|
||||||
if (this._selectedModel && this._selectedModel !== 'default') {
|
if (this._selectedModel && this._selectedModel !== 'default') {
|
||||||
args.push('--model', this._selectedModel);
|
args.push('--model', this._selectedModel);
|
||||||
|
|||||||
Reference in New Issue
Block a user