Reduce step-finish usage chip DOM
This commit is contained in:
@@ -56,7 +56,9 @@ interface ToolCallProps {
|
||||
partVersion?: number
|
||||
instanceId: string
|
||||
sessionId: string
|
||||
}
|
||||
onContentRendered?: () => void
|
||||
}
|
||||
|
||||
|
||||
function getToolIcon(tool: string): string {
|
||||
switch (tool) {
|
||||
@@ -761,8 +763,10 @@ export default function ToolCall(props: ToolCallProps) {
|
||||
if (!options?.disableScrollTracking) {
|
||||
handleScrollRendered()
|
||||
}
|
||||
props.onContentRendered?.()
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div
|
||||
class="message-text tool-call-markdown tool-call-markdown-large tool-call-diff-shell"
|
||||
@@ -826,8 +830,10 @@ export default function ToolCall(props: ToolCallProps) {
|
||||
const handleMarkdownRendered = () => {
|
||||
markdownCache.set(markdownPart.renderCache)
|
||||
handleScrollRendered()
|
||||
props.onContentRendered?.()
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div
|
||||
class={messageClass}
|
||||
|
||||
Reference in New Issue
Block a user