fix(coding-agent): allow suppressing custom tool transcript blocks

This commit is contained in:
Aljosa Asanovic 2026-03-02 10:22:41 -05:00
parent 95276df060
commit 480d6bc62d
No known key found for this signature in database
GPG key ID: 8AE0F719C49B8338
4 changed files with 114 additions and 5 deletions

View file

@ -352,10 +352,14 @@ export interface ToolDefinition<TParams extends TSchema = TSchema, TDetails = un
): Promise<AgentToolResult<TDetails>>;
/** Custom rendering for tool call display */
renderCall?: (args: Static<TParams>, theme: Theme) => Component;
renderCall?: (args: Static<TParams>, theme: Theme) => Component | undefined;
/** Custom rendering for tool result display */
renderResult?: (result: AgentToolResult<TDetails>, options: ToolRenderResultOptions, theme: Theme) => Component;
renderResult?: (
result: AgentToolResult<TDetails>,
options: ToolRenderResultOptions,
theme: Theme,
) => Component | undefined;
}
// ============================================================================