mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 02:00:40 -07:00
fix(cli): always show shell command description or actual command (#24774)
This commit is contained in:
@@ -136,7 +136,9 @@ export class ShellToolInvocation extends BaseToolInvocation<
|
||||
}
|
||||
|
||||
getDescription(): string {
|
||||
return this.params.description || '';
|
||||
return this.params.description?.trim()
|
||||
? this.params.description
|
||||
: this.params.command;
|
||||
}
|
||||
|
||||
private simplifyPaths(paths: Set<string>): string[] {
|
||||
|
||||
Reference in New Issue
Block a user