Browse Source

fix: Prevent terminal focus theft on paste after command execution (#3356)

Murilo Pires 10 months ago
parent
commit
fb807c1056
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/tools/executeCommandTool.ts

+ 1 - 1
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