Skip to content

Commit 756e86d

Browse files
committed
fix(home-chat): copy duration to existing agent group instead of skipping
1 parent 91e1edd commit 756e86d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
9595
if (block.type === 'subagent') {
9696
if (!block.content) continue
9797
const key = block.content
98-
if (group && group.agentName === key) continue
98+
if (group && group.agentName === key) {
99+
if (block.duration != null) group.duration = block.duration
100+
continue
101+
}
99102
if (group) {
100103
segments.push(group)
101104
group = null

0 commit comments

Comments
 (0)