Release v0.7.16

This commit is contained in:
Mario Zechner 2025-11-17 14:12:04 +01:00
parent f2b3953711
commit 6680034a64
12 changed files with 94 additions and 38 deletions

View file

@ -376,7 +376,20 @@ export class TuiRenderer {
// Update the existing tool component with the result
const component = this.pendingTools.get(event.toolCallId);
if (component) {
component.updateResult(event.result);
// Convert result to the format expected by updateResult
const resultData =
typeof event.result === "string"
? {
content: [{ type: "text" as const, text: event.result }],
details: undefined,
isError: event.isError,
}
: {
content: event.result.content,
details: event.result.details,
isError: event.isError,
};
component.updateResult(resultData);
this.pendingTools.delete(event.toolCallId);
this.ui.requestRender();
}