Skip to content

fix(widget): handle failed execution state with no failed actions#671

Merged
chybisov merged 1 commit intomainfrom
fix-fail-no-action
Mar 17, 2026
Merged

fix(widget): handle failed execution state with no failed actions#671
chybisov merged 1 commit intomainfrom
fix-fail-no-action

Conversation

@effie-ms
Copy link
Copy Markdown
Contributor

@effie-ms effie-ms commented Mar 16, 2026

Which Linear task is linked to this PR?

https://linear.app/lifi-linear/issue/EMB-310/bug-execution-status-failed-but-no-action-marked-failed-on-reload

Why was it implemented this way?

Previously, the widget UI relied exclusively on action.status === 'FAILED' to show error states: the step card border, the inline error row, and the failure bottom sheet message. When no action carried the failed status, the UI appeared as if nothing went wrong — no red border, no error message, no "Try again" button context.

The fix takes a minimal approach: where no failed action exists but execution.status === 'FAILED', a synthetic action stub ({ status: 'FAILED', type: 'EXECUTION', error: step.execution?.error }) is used. This flows through the existing StepAction → useActionMessage → getErrorMessage pipeline unchanged, producing the appropriate error UI (or the "Unknown error" fallback when error is also absent). No new components or abstractions were introduced — just synthetic data fed into existing rendering paths.

Visual showcase (Screenshots or Videos)

Simulated execution failure with empty list of actions:

Screen.Recording.2026-03-16.at.18.44.39.mov

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.

@effie-ms effie-ms self-assigned this Mar 16, 2026
@github-actions
Copy link
Copy Markdown

Hey! This is your new endpoint: https://30757628.widget-fixfailnoa.pages.dev

@chybisov chybisov merged commit ed08f20 into main Mar 17, 2026
3 checks passed
@chybisov chybisov deleted the fix-fail-no-action branch March 17, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants