Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Fix incorrect pluralization of “entry” (#3933)

meld7baa37e5c25
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
index d67dd286f..46d6a4050 100644
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -1157,7 +1157,13 @@ function WorkGroupToggleTimelineRow({
row: Extract<TimelineRow, { kind: "work-toggle" }>;
}) {
const ctx = use(TimelineRowCtx);
- const labelNoun = row.onlyToolEntries ? "tool call" : "log entry";
+ const labelNoun = row.onlyToolEntries
+ ? row.hiddenCount === 1
+ ? "tool call"
+ : "tool calls"
+ : row.hiddenCount === 1
+ ? "log entry"
+ : "log entries";
return (
<button
@@ -1185,7 +1191,6 @@ function WorkGroupToggleTimelineRow({
) : (
<span className="font-medium text-foreground/82">
+{row.hiddenCount} previous {labelNoun}
- {row.hiddenCount === 1 ? "" : "s"}
</span>
)}
</button>