fix(agent-playground): display error message for node failures with partial output by mananjain04 · Pull Request #3561 · future-agi/future-agi · GitHub
Skip to content

fix(agent-playground): display error message for node failures with partial output - #3561

Open
mananjain04 wants to merge 13 commits into
future-agi:devfrom
mananjain04:fix/issue-2503-node-failure-error-output
Open

mananjain04 wants to merge 13 commits into
future-agi:devfrom
mananjain04:fix/issue-2503-node-failure-error-output

Conversation

@mananjain04

@mananjain04 mananjain04 commented Oct 20, 2026 •

Copy link
Copy Markdown

Summary

Fixes the bug where a node in Agent Playground that fails after producing partial output suppresses the error message. Decoupled error detection from output array length, rendering a styled NodeErrorAlert banner while preserving partial outputs in AG Grid.

Linked issues

Closes #2503

AI use

AI use: none

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)

E2E coverage

E2E: exempt (cosmetic)


1) What changes were done

A. Decouple error message check from output count

  • In NodeOutputDetail.jsx, changed hasErrorMessage check from outputs.length === 0 to Boolean(errorMessage) so that partial outputs don't suppress errors.
  • Displayed NodeErrorAlert banner above AG Grid when an error occurs during execution.
  • Preserved partial outputs in AG Grid rows so user can inspect both output and the error reason.

B. Added NodeErrorAlert component

  • Created NodeErrorAlert.jsx with themed styles, alert icon, and collapsible view for lengthy error strings or stack traces.

2) Why the changes were done

  • Product/UX: Users couldn't see why a node stopped or failed if it generated partial outputs before failing. Now both outputs and error details are visible.
  • Technical: Error display should never be masked by the presence of partial output items.

3) Tests written + scenarios each covers

NodeOutputDetail.test.js — Regression test suite for node failure and error alert handling

  • detects error message presence even when outputs array is not empty — ensures error flag is active with partial outputs
  • handles nodes that fail with zero outputs by rendering error in grid row and alert — verifies zero output fallback
  • handles successful nodes with outputs and no error — ensures no false error alerts
  • verifies error banner visibility behavior across running and settled node statuses — verifies running state handling
  • extracts error message from various API field keys — verifies camelCase and snake_case API payload compatibility

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

@github-actions github-actions Bot added the needs-admission Admission gate found template/issue/branch/hygiene problems label Oct 20, 2026
@mananjain04 mananjain04 changed the title Fix/issue 2503 node failure error output fix(agent-playground): display error message for node failures with partial output Oct 20, 2026
@mananjain04
mananjain04 changed the base branch from main to dev October 20, 2026 20:10
@mananjain04

Copy link
Copy Markdown
Author

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend datasets docs frontend gateway infra needs-admission Admission gate found template/issue/branch/hygiene problems simulate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant