From 9ba1cd0336d83359ce67e4bca47daf3c41f628fc Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 6 Nov 2025 08:51:07 -0800 Subject: [PATCH] feat(shell): include cwd in shell command description (#12558) --- packages/core/src/tools/shell.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts index 90639e8679..453b85d2b9 100644 --- a/packages/core/src/tools/shell.ts +++ b/packages/core/src/tools/shell.ts @@ -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) {