| ... | @@ -3309,13 +3309,12 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { | ... | @@ -3309,13 +3309,12 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { |
| 3309 | workspaceRoot, | 3309 | workspaceRoot, |
| 3310 | }) | 3310 | }) |
| 3311 | : null; | 3311 | : null; |
| 3312 | const commandMatchesVisibleLabel = workEntry.command?.trim() === previewText.trim(); | | |
| 3313 | const canExpand = | 3312 | const canExpand = |
| 3314 | (showFailedIndicator && previewText.trim().length > 0) || | 3313 | (showFailedIndicator && previewText.trim().length > 0) || |
| 3315 | (workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) || | 3314 | (workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) || |
| 3316 | Boolean( | 3315 | Boolean( |
| 3317 | (!commandMatchesVisibleLabel && | 3316 | workEntryRawCommand(workEntry) || |
| 3318 | (workEntryRawCommand(workEntry) || workEntry.command?.trim())) || | 3317 | workEntry.command?.trim() || |
| 3319 | workEntry.detail?.trim() || | 3318 | workEntry.detail?.trim() || |
| 3320 | workEntry.changedFiles?.length || | 3319 | workEntry.changedFiles?.length || |
| 3321 | viewedImage, | 3320 | viewedImage, |
| ... | @@ -3396,9 +3395,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { | ... | @@ -3396,9 +3395,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { |
| 3396 | <span | 3395 | <span |
| 3397 | className={cn( | 3396 | className={cn( |
| 3398 | "min-w-0 flex-1", | 3397 | "min-w-0 flex-1", |
| 3399 | expanded || (commandMatchesVisibleLabel && !canExpand) | 3398 | expanded ? "whitespace-pre-wrap break-words select-text" : "truncate", |
| 3400 | ? "whitespace-pre-wrap break-words select-text" | | |
| 3401 | : "truncate", | | |
| 3402 | headingClass, | 3399 | headingClass, |
| 3403 | )} | 3400 | )} |
| 3404 | onClick={expanded ? stopRowToggle : undefined} | 3401 | onClick={expanded ? stopRowToggle : undefined} |