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