fix(cli): always show shell command description or actual command (#24774)

This commit is contained in:
Jacob Richman
2026-04-07 18:52:33 -07:00
committed by GitHub
parent 9fd92c0eea
commit 28efab483f
2 changed files with 29 additions and 1 deletions

View File

@@ -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[] {