feat(shell): include cwd in shell command description (#12558)

This commit is contained in:
Gal Zahavi
2025-11-06 08:51:07 -08:00
committed by GitHub
parent 5f6453a1e0
commit 9ba1cd0336

View File

@@ -73,6 +73,8 @@ export class ShellToolInvocation extends BaseToolInvocation<
// note description is needed even if validation fails due to absolute path
if (this.params.directory) {
description += ` [in ${this.params.directory}]`;
} else {
description += ` [current working directory ${process.cwd()}]`;
}
// append optional (description), replacing any line breaks with spaces
if (this.params.description) {