Skip to content

Commit b7416e2

Browse files
Sg312emir-karabeg
authored andcommitted
Fix
1 parent 1e9df2f commit b7416e2

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/hooks

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ export function useChat(
515515

516516
const ensureTextBlock = (): ContentBlock => {
517517
const last = blocks[blocks.length - 1]
518-
if (last?.type === 'text') return last
518+
if (last?.type === 'text' && last.subagent === activeSubagent) return last
519519
const b: ContentBlock = { type: 'text', content: '' }
520520
blocks.push(b)
521521
return b

0 commit comments

Comments
 (0)