Skip to content

Commit d8b468a

Browse files
authored
Remove warning about commands switching working directory (#4795)
1 parent b8505fe commit d8b468a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ export async function executeCommand(
269269
let workingDirInfo = ` within working directory '${workingDir.toPosix()}'`
270270
const newWorkingDir = terminal.getCurrentWorkingDirectory()
271271

272-
if (newWorkingDir !== workingDir) {
273-
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`
274-
}
275-
276272
return [false, `Command executed in terminal ${workingDirInfo}. ${exitStatus}\nOutput:\n${result}`]
277273
} else {
278274
return [

0 commit comments

Comments
 (0)