From cd8948770d7eb6db7312c7eb2d43e207d361f0bf Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Sun, 7 Dec 2025 20:23:52 +0000 Subject: [PATCH] feat: include bash timeout --- .../ui/src/components/tool-call/renderers/bash.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/components/tool-call/renderers/bash.tsx b/packages/ui/src/components/tool-call/renderers/bash.tsx index 33cc1793..9683043f 100644 --- a/packages/ui/src/components/tool-call/renderers/bash.tsx +++ b/packages/ui/src/components/tool-call/renderers/bash.tsx @@ -9,10 +9,16 @@ export const bashRenderer: ToolRenderer = { if (!state) return undefined const { input } = readToolStatePayload(state) const name = getToolName("bash") - if (typeof input.description === "string" && input.description.length > 0) { - return `${name} ${input.description}` + const description = typeof input.description === "string" && input.description.length > 0 ? input.description : "" + const timeout = typeof input.timeout === "number" && input.timeout > 0 ? input.timeout : undefined + + const baseTitle = description ? `${name} ${description}` : name + if (!timeout) { + return baseTitle } - return name + + const timeoutLabel = `${timeout}ms` + return `${baseTitle} ยท Timeout: ${timeoutLabel}` }, renderBody({ toolState, renderMarkdown }) { const state = toolState()