We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e9df2f commit b7416e2Copy full SHA for b7416e2
apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts
@@ -515,7 +515,7 @@ export function useChat(
515
516
const ensureTextBlock = (): ContentBlock => {
517
const last = blocks[blocks.length - 1]
518
- if (last?.type === 'text') return last
+ if (last?.type === 'text' && last.subagent === activeSubagent) return last
519
const b: ContentBlock = { type: 'text', content: '' }
520
blocks.push(b)
521
return b
0 commit comments