We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dcbb29 commit 8cd527cCopy full SHA for 8cd527c
1 file changed
apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx
@@ -179,7 +179,10 @@ function parseBlocks(blocks: ContentBlock[]): MessageSegment[] {
179
if (!g) {
180
g = {
181
type: 'agent_group',
182
- id: `agent-${key}`,
+ // Suffix with segments.length so a later flushLanes / explicit delete
183
+ // followed by re-ensure for the same key produces a fresh React key
184
+ // instead of colliding with the stranded prior segment.
185
+ id: `agent-${key}-${segments.length}`,
186
agentName: name,
187
agentLabel: resolveAgentLabel(name),
188
items: [],
0 commit comments