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 d8427a86c4
commit dc631eff75
+2
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) {