mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
feat(shell): include cwd in shell command description (#12558)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user