feat: surface read bounds

This commit is contained in:
Shantur Rathore
2025-12-07 20:15:39 +00:00
parent 49214c60ca
commit d4281f1d9c
2 changed files with 22 additions and 5 deletions

View File

@@ -702,6 +702,9 @@ export default function ToolCall(props: ToolCallProps) {
if (!state) return getRendererAction()
if (state.status === "pending") return getRendererAction()
const customTitle = renderer().getTitle?.(rendererContext)
if (customTitle) return customTitle
if (isToolStateRunning(state) && state.title) {
return state.title
}
@@ -710,9 +713,6 @@ export default function ToolCall(props: ToolCallProps) {
return state.title
}
const customTitle = renderer().getTitle?.(rendererContext)
if (customTitle) return customTitle
return getToolName(toolName())
}