Skip to content

Commit a4e5e30

Browse files
committed
Don't drop suabgent text
1 parent f448134 commit a4e5e30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
6767
for (let i = 0; i < blocks.length; i++) {
6868
const block = blocks[i]
6969

70-
if (block.type === 'text') {
70+
if (block.type === 'text' || block.type === 'subagent_text') {
7171
if (!block.content?.trim()) continue
7272
if (group) {
7373
segments.push(group)

apps/sim/app/workspace/[workspaceId]/home/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export interface OptionItem {
112112
label: string
113113
}
114114

115-
export type ContentBlockType = 'text' | 'tool_call' | 'subagent' | 'options'
115+
export type ContentBlockType = 'text' | 'tool_call' | 'subagent' | 'subagent_text' | 'options'
116116

117117
export interface ContentBlock {
118118
type: ContentBlockType

0 commit comments

Comments
 (0)