Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(conversations): handle missing display items gracefully

Steven Enamakelfa2a7905f62d
diff --git a/app/src/features/conversations/derived/mapDisplayItems.ts b/app/src/features/conversations/derived/mapDisplayItems.ts
index 09a371534c..b24e00dc91 100644
--- a/app/src/features/conversations/derived/mapDisplayItems.ts
+++ b/app/src/features/conversations/derived/mapDisplayItems.ts
@@ -298,11 +298,11 @@ export function mapDisplayItems(
}
const turn = ensureTurn(turns, anchorRequestId);
const activity = buildSubagentActivity(item.id, item.items);
- turn.entries.push({
- id: `subagent:${item.id}`,
+ placeSubagentRow(turn, {
+ id: uniqueSubagentRowId(turn, item.id),
name: `subagent:${item.id}`,
round: turn.round,
- seq: turn.seq++,
+ seq: 0,
status: 'success',
subagent: activity,
});