Skip to content

fix(agents): auto-expand TaskStatusUpdate on error states#2436

Open
birdayz wants to merge 1 commit intomasterfrom
jb/auto-expand-error-status
Open

fix(agents): auto-expand TaskStatusUpdate on error states#2436
birdayz wants to merge 1 commit intomasterfrom
jb/auto-expand-error-status

Conversation

@birdayz
Copy link
Copy Markdown
Contributor

@birdayz birdayz commented May 8, 2026

What

Auto-expand the collapsible TaskStatusUpdate block when the task state is failed or rejected.

Why

Error details were hidden behind a collapsed section, forcing users to manually click to see what went wrong. Errors should be immediately visible.

Implementation details

Added an isErrorState flag derived from the task state. The Collapsible component's defaultOpen prop now uses this flag instead of a hardcoded false, so error states expand on render while normal states remain collapsed.

The collapsible TaskStatusUpdate block was always collapsed by default,
hiding error details that users need to see immediately. Expand
automatically when the task state is 'failed' or 'rejected'.
@birdayz birdayz requested a review from weeco May 8, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant