From d8b468adbfd33508d8f4ef219df1314f4d31dbb4 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 17 Jun 2025 14:58:03 -0400 Subject: [PATCH] Remove warning about commands switching working directory (#4795) --- src/core/tools/executeCommandTool.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index e38d3c74f6..795beccc06 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -269,10 +269,6 @@ export async function executeCommand( let workingDirInfo = ` within working directory '${workingDir.toPosix()}'` const newWorkingDir = terminal.getCurrentWorkingDirectory() - if (newWorkingDir !== workingDir) { - workingDirInfo += `\nNOTICE: Your command changed the working directory for this terminal to '${newWorkingDir.toPosix()}' so you MUST adjust future commands accordingly because they will be executed in this directory` - } - return [false, `Command executed in terminal ${workingDirInfo}. ${exitStatus}\nOutput:\n${result}`] } else { return [