fix: reduce overhead of task tool metadata

This commit is contained in:
Aiden Cline
2025-12-06 16:04:33 -06:00
parent 6a4ca92a6c
commit 3e36069f41
2 changed files with 25 additions and 9 deletions

View File

@@ -1522,7 +1522,7 @@ ToolRegistry.register<typeof TaskTool>({
<box>
<For each={props.metadata.summary ?? []}>
{(task) => (
<text style={{ fg: theme.textMuted }}>
<text style={{ fg: task.state.status === "error" ? theme.error : theme.textMuted }}>
{Locale.titlecase(task.tool)} {task.state.status === "completed" ? task.state.title : ""}
</text>
)}