fix(web): allow expanding duplicate tool call commands (#10981)
This commit is contained in:
1 parent
e16b8b059c
commit
50f918c57a
1 file changed
+3
-6
@@ -3309,13 +3309,12 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
|
||||
workspaceRoot,
|
||||
})
|
||||
: null;
|
||||
const commandMatchesVisibleLabel = workEntry.command?.trim() === previewText.trim();
|
||||
const canExpand =
|
||||
(showFailedIndicator && previewText.trim().length > 0) ||
|
||||
(workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) ||
|
||||
Boolean(
|
||||
(!commandMatchesVisibleLabel &&
|
||||
(workEntryRawCommand(workEntry) || workEntry.command?.trim())) ||
|
||||
workEntryRawCommand(workEntry) ||
|
||||
workEntry.command?.trim() ||
|
||||
workEntry.detail?.trim() ||
|
||||
workEntry.changedFiles?.length ||
|
||||
viewedImage,
|
||||
@@ -3396,9 +3395,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
|
||||
<span
|
||||
className={cn(
|
||||
"min-w-0 flex-1",
|
||||
expanded || (commandMatchesVisibleLabel && !canExpand)
|
||||
? "whitespace-pre-wrap break-words select-text"
|
||||
: "truncate",
|
||||
expanded ? "whitespace-pre-wrap break-words select-text" : "truncate",
|
||||
headingClass,
|
||||
)}
|
||||
onClick={expanded ? stopRowToggle : undefined}
|
||||
|
||||
Reference in new issue
Block a user