fix(web): deduplicate expanded tool labels and keep errors expandable (#10420)
This commit is contained in:
1 parent
0a89364f15
commit
79394154df
1 file changed
+2
-1
@@ -2993,7 +2993,7 @@ function buildToolCallExpandedBody(
|
||||
viewedImagePath: string | null,
|
||||
): string | null {
|
||||
const blocks: string[] = [];
|
||||
const seen = new Set<string>();
|
||||
const seen = new Set<string>([visibleLabel.trim()]);
|
||||
const addBlock = (value: string | null | undefined) => {
|
||||
const text = value?.trim();
|
||||
if (!text || seen.has(text)) return;
|
||||
@@ -3215,6 +3215,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
|
||||
: 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 &&
|
||||
|
||||
Reference in new issue
Block a user