Show progress bar OR statusMessage, not both
When progress notification data is available for an active task, show the ProgressDisplay (which includes its own message). Fall back to the Task's statusMessage only when no progress data is present. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f9f239c8c7
commit
475da3027e
1 changed files with 5 additions and 4 deletions
|
|
@ -157,12 +157,13 @@ export function TaskCard({
|
|||
</SubtleButton>
|
||||
</SummaryRow>
|
||||
|
||||
{statusMessage && isActive && (
|
||||
<StatusMessageText>{statusMessage}</StatusMessageText>
|
||||
{progress && isActive ? (
|
||||
<ProgressDisplay params={progress} />
|
||||
) : (
|
||||
statusMessage &&
|
||||
isActive && <StatusMessageText>{statusMessage}</StatusMessageText>
|
||||
)}
|
||||
|
||||
{progress && isActive && <ProgressDisplay params={progress} />}
|
||||
|
||||
{isExpanded && (
|
||||
<Collapse in={isExpanded}>
|
||||
<Stack gap="sm">
|
||||
|
|
|
|||
Loading…
Reference in a new issue