You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/thinking-block.tsx
+85-48Lines changed: 85 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,10 @@ interface ThinkingBlockProps {
29
29
isStreaming?: boolean
30
30
/** Whether there are more content blocks after this one (e.g., tool calls) */
31
31
hasFollowingContent?: boolean
32
+
/** Custom label for the thinking block (e.g., "Thinking", "Exploring"). Defaults to "Thought" */
33
+
label?: string
34
+
/** Whether special tags (plan, options) are present - triggers collapse */
35
+
hasSpecialTags?: boolean
32
36
}
33
37
34
38
/**
@@ -44,6 +48,8 @@ export function ThinkingBlock({
44
48
content,
45
49
isStreaming =false,
46
50
hasFollowingContent =false,
51
+
label ='Thought',
52
+
hasSpecialTags =false,
47
53
}: ThinkingBlockProps){
48
54
const[isExpanded,setIsExpanded]=useState(false)
49
55
const[duration,setDuration]=useState(0)
@@ -115,30 +121,34 @@ export function ThinkingBlock({
115
121
}
116
122
117
123
consthasContent=content&&content.trim().length>0
118
-
// Thinking is "done" when streaming ends OR when there's following content (like a tool call)
0 commit comments