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 Enamakel4a2eb761910d
diff --git a/app/src/features/conversations/derived/mapDisplayItems.ts b/app/src/features/conversations/derived/mapDisplayItems.ts
index 09a371534c..8a9e0b58c1 100644
--- a/app/src/features/conversations/derived/mapDisplayItems.ts
+++ b/app/src/features/conversations/derived/mapDisplayItems.ts
@@ -409,12 +409,15 @@ function pushToolCall(turn: TurnAccumulator, item: DerivedToolCall): void {
// A failed tool renders its "why / next" explanation via `ToolFailureLines`.
const failure = toFailureExplanation(item.failure, item.result);
if (failure) entry.failure = failure;
- // Derive the human label + detail from tool name + args (the same TS
- // formatter the live path runs), so settled rows carry `displayName`/`detail`
- // at parity with `turn_state` rows instead of being unlabelled.
+ // Derive the detail from tool name + args (the same registry the live path
+ // runs). The title is *not* baked into `displayName`: that field carries
+ // only a server label, and overwriting it both dropped the core's label for
+ // dynamic tools and froze the title's tense. Surfaces resolve the title at
+ // render time.
+ if (item.displayLabel) entry.displayName = item.displayLabel;
+ if (item.displayDetail) entry.detail = item.displayDetail;
const formatted = formatTimelineEntry(entry);
- entry.displayName = formatted.title;
- if (formatted.detail !== undefined) entry.detail = formatted.detail;
+ if (entry.detail === undefined && formatted.detail !== undefined) entry.detail = formatted.detail;
turn.entries.push(entry);
turn.transcript.push({ kind: 'toolCall', round: turn.round, seq, callId });
}