Skip to content

fix(opencode): enhance error aggregation to surface named errors with structured fields#27057

Draft
OpeOginni wants to merge 3 commits into
anomalyco:devfrom
OpeOginni:fix/tui-config-error
Draft

fix(opencode): enhance error aggregation to surface named errors with structured fields#27057
OpeOginni wants to merge 3 commits into
anomalyco:devfrom
OpeOginni:fix/tui-config-error

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

@OpeOginni OpeOginni commented May 12, 2026

Issue for this PR

Closes #27056

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

aggregateFailures now detects when all parallel bootstrap failures share the same named error (e.g. ConfigInvalidError). If every failed request rejected with the same named error, it returns that single structured error as an Error instance with name and data attached, so FormatError can render the proper human-readable config message. If the failures are mixed, it falls back to the existing aggregated "X of Y requests failed: ..." message.

How did you verify your code works?

Tested with the dev instance and added regression tests ensuring all pass.

Screenshots / recordings

Screenshot 2026-05-12 at 13 32 57

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@OpeOginni OpeOginni marked this pull request as draft May 12, 2026 13:39
@OpeOginni OpeOginni marked this pull request as ready for review May 13, 2026 07:41
@OpeOginni OpeOginni marked this pull request as draft May 13, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config Error on TUI is not readable like before

1 participant