Skip to content

feat(core): render complete failure causes - #101

Merged
medz merged 1 commit into
mainfrom
feat/readable-failure-causes
Oct 28, 2026
Merged

medz merged 1 commit into
mainfrom
feat/readable-failure-causes

Conversation

@medz

@medz medz commented Oct 28, 2026

Copy link
Copy Markdown
Member

Summary

Printing a grouped failure currently hides its reasons behind an instance name. Cause.toString() now describes every business failure, defect and cancellation in order, retaining repeated reasons and each defect's stored stack. TaskException uses the same output at Runtime and Stream boundaries.

TaskException:
  Failure: Save rejected
  Defect: Bad state: Close failed
    <original cleanup stack>

Diagnostic values use their own string representation, so redacted payloads stay hidden. The structured cause and execution/reporting behavior are unchanged.

Related issues

Closes #51

Validation

  • dart pub get
  • dart format --output=none --set-exit-if-changed .
  • dart analyze --fatal-infos
  • dart test — 1,371 tests passed.

Covers null/cancellation, multiline diagnostics, repeated errors with distinct stacks, redacted values, and synchronous/asynchronous Runtime and Stream exception boundaries.

@medz medz added the enhancement New feature or request label Oct 28, 2026 — with ChatGPT Codex Connector
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41733059-b57f-428d-a274-ddf4a08a3bfe
Commits

Reviewing files that changed from the base of the PR and between ed49eb8 and 2ea931a.

Files selected for processing: 6
  • lib/src/core/cause.dart
  • lib/src/core/runtime.dart
  • test/core/cause_test.dart
  • test/core/flow_stream_test.dart
  • test/core/runtime_sync_test.dart
  • test/core/runtime_test.dart
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:13:03.671979Z 2ea931a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

medz commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 2ea931a176

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@medz
medz merged commit 62c66c7 into main Oct 28, 2026
3 checks passed
@medz
medz deleted the feat/readable-failure-causes branch October 28, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make complete failure causes readable at Dart exception boundaries

1 participant