From fd859b4d131d2de8ffd6239bc3f16257ee8c550e Mon Sep 17 00:00:00 2001 From: Murilo Pires <50873657+MuriloFP@users.noreply.github.com> Date: Thu, 8 May 2025 23:43:06 -0300 Subject: [PATCH] fix: Prevent terminal focus theft on paste after command execution (#3356) --- src/core/tools/executeCommandTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index 9fe9e9d535..82b4bbe5c0 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -195,7 +195,7 @@ export async function executeCommand( const terminal = await TerminalRegistry.getOrCreateTerminal(workingDir, !!customCwd, cline.taskId, terminalProvider) if (terminal instanceof Terminal) { - terminal.terminal.show() + terminal.terminal.show(true) // Update the working directory in case the terminal we asked for has // a different working directory so that the model will know where the