Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
Sg312 authored and emir-karabeg committed Mar 17, 2026
commit b7416e27a96c4b9a511b2a5b82bddf3ef0014d8f
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export function useChat(

const ensureTextBlock = (): ContentBlock => {
const last = blocks[blocks.length - 1]
if (last?.type === 'text') return last
if (last?.type === 'text' && last.subagent === activeSubagent) return last
const b: ContentBlock = { type: 'text', content: '' }
blocks.push(b)
return b
Expand Down