Skip to content

Commit 491039a

Browse files
committed
fix: [5424] return the cwd in the exec tool's response so that the model is not lost after subsequent calls
1 parent 50e45a2 commit 491039a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ export async function executeCommand(
266266
exitStatus = `Exit code: <undefined, notify user>`
267267
}
268268

269-
let workingDirInfo = ` within working directory '${workingDir.toPosix()}'`
270-
const newWorkingDir = terminal.getCurrentWorkingDirectory()
269+
let workingDirInfo = ` within working directory '${terminal.getCurrentWorkingDirectory().toPosix()}'`
271270

272271
return [false, `Command executed in terminal ${workingDirInfo}. ${exitStatus}\nOutput:\n${result}`]
273272
} else {

0 commit comments

Comments
 (0)