Unified · Split
| @@ -3049,16 +3049,17 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { · 3048 unmodified lines | ||
| 3049 | 3049 | const previewText = displayLabel ?? workEntryDisplayLabel(workEntry, workspaceRoot); |
| 3050 | 3050 | const displayText = |
| 3051 | 3051 | !toolPresentation && expanded && workEntry.command?.trim() ? "Command" : previewText; |
| 3052 | + const viewedImagePath = workEntryViewedImagePath(workEntry); | |
| 3052 | 3053 | const canExpand = |
| 3053 | 3054 | (workEntry.itemType === "mcp_tool_call" && workEntry.toolData !== undefined) || |
| 3054 | 3055 | Boolean( |
| 3055 | 3056 | workEntryRawCommand(workEntry) || |
| 3056 | 3057 | workEntry.command?.trim() || |
| 3057 | 3058 | workEntry.detail?.trim() || |
| 3058 | − workEntry.changedFiles?.length, | |
| 3059 | + workEntry.changedFiles?.length || | |
| 3060 | + viewedImagePath, | |
| 3059 | 3061 | ); |
| 3060 | 3062 | const expandedBody = expanded ? buildToolCallExpandedBody(workEntry, workspaceRoot) : null; |
| 3061 | − const viewedImagePath = workEntryViewedImagePath(workEntry); | |
| 3062 | 3063 | const viewedImage = |
| 3063 | 3064 | viewedImagePath && threadRef |
| 3064 | 3065 | ? resolveViewedImageAsset(viewedImagePath, { |
| @@ -3159,7 +3160,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: { · 94 unmodified lines | ||
| 3159 | 3160 | </span> |
| 3160 | 3161 | </div> |
| 3161 | 3162 | </div> |
| 3162 | − {viewedImage && threadRef ? ( | |
| 3163 | + {expanded && viewedImage && threadRef ? ( | |
| 3163 | 3164 | <div |
| 3164 | 3165 | className="mt-1 ms-7 cursor-default" |
| 3165 | 3166 | onClick={stopRowToggle} |