From 0d3817505e40242f0a3f670f16cd10e9c6e8cbea Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 27 Oct 2025 23:26:34 -0400 Subject: [PATCH] Focus textbox and add newlines after adding to context (#8877) --- src/core/webview/ClineProvider.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 600915f275..ec1781d79f 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 }