diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 600915f27563..ec1781d79fa7 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -677,7 +677,12 @@ export class ClineProvider const prompt = supportPrompt.create(promptType, params, customSupportPrompts) if (command === "addToContext") { - await visibleProvider.postMessageToWebview({ type: "invoke", invoke: "setChatBoxMessage", text: prompt }) + await visibleProvider.postMessageToWebview({ + type: "invoke", + invoke: "setChatBoxMessage", + text: `${prompt}\n\n`, + }) + await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" }) return } @@ -701,7 +706,12 @@ export class ClineProvider const prompt = supportPrompt.create(promptType, params, customSupportPrompts) if (command === "terminalAddToContext") { - await visibleProvider.postMessageToWebview({ type: "invoke", invoke: "setChatBoxMessage", text: prompt }) + await visibleProvider.postMessageToWebview({ + type: "invoke", + invoke: "setChatBoxMessage", + text: `${prompt}\n\n`, + }) + await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" }) return }