The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 09:00 UTC
fix(web): deduplicate expanded tool labels and keep errors expandable (#10420)
Yash Singh committed
Sep 6, 2026 at 18:34 UTC
79394154dfe1e6373534995022f53ffdcf293e55
1 file changed
+2
-1
apps/web/src/components/chat/MessagesTimeline.tsx
+2
-1
@@ -2993,7 +2993,7 @@ function buildToolCallExpandedBody(
2993
viewedImagePath: string | null,
2994
): string | null {
2995
const blocks: string[] = [];
2996
- const seen = new Set<string>();
2996
+ const seen = new Set<string>([visibleLabel.trim()]);
2997
const addBlock = (value: string | null | undefined) => {
2998
const text = value?.trim();
2999
if (!text || seen.has(text)) return;
@@ -3215,6 +3215,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
3215
: null;
3216
const commandMatchesVisibleLabel = workEntry.command?.trim() === previewText.trim();
3217
const canExpand =
3218
+ (showFailedIndicator && previewText.trim().length > 0) ||
3219
(workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) ||
3220
Boolean(
3221
(!commandMatchesVisibleLabel &&