fix: ACP: separate conversational text from execute tool command title (#23179)

This commit is contained in:
Sri Pasumarthi
2026-03-23 17:39:15 -07:00
committed by GitHub
parent a7bed2cc4c
commit 84caf00cd4
7 changed files with 247 additions and 19 deletions
+21
View File
@@ -57,6 +57,19 @@ export interface ToolInvocation<
*/
getDescription(): string;
/**
* Gets a clean title for display in the UI (e.g. the raw command without metadata).
* If not implemented, the UI may fall back to getDescription().
* @returns A string representing the tool call title.
*/
getDisplayTitle?(): string;
/**
* Gets conversational explanation or secondary metadata.
* @returns A string representing the explanation, or undefined.
*/
getExplanation?(): string;
/**
* Determines what file system paths the tool will affect.
* @returns A list of such paths.
@@ -162,6 +175,14 @@ export abstract class BaseToolInvocation<
abstract getDescription(): string;
getDisplayTitle(): string {
return this.getDescription();
}
getExplanation(): string {
return '';
}
toolLocations(): ToolLocation[] {
return [];
}