Skip to content

feat(seatbelt): introduce Fallback middleware#294

Merged
martintmk merged 18 commits intomainfrom
u/mtomka/fallback
Mar 2, 2026
Merged

feat(seatbelt): introduce Fallback middleware#294
martintmk merged 18 commits intomainfrom
u/mtomka/fallback

Conversation

@martintmk
Copy link
Member

@martintmk martintmk commented Feb 27, 2026

Vibe-coded with few back and forth. Opus can follow existing patterns pretty easily, so adding new middleware as this is quite straightforward.

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.0%. Comparing base (b420406) to head (c3ed02a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #294    +/-   ##
========================================
  Coverage   100.0%   100.0%            
========================================
  Files         141      144     +3     
  Lines        8777     8917   +140     
========================================
+ Hits         8777     8917   +140     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

martintmk and others added 6 commits February 27, 2026 22:15
Align the fallback middleware API with other seatbelt middlewares
(e.g. recovery_with, rejected_input_error) by adding a FallbackActionArgs
parameter to the fallback action closures. This enables future extensibility
without breaking changes thanks to the #[non_exhaustive] attribute.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@martintmk martintmk merged commit 162d353 into main Mar 2, 2026
27 checks passed
@martintmk martintmk deleted the u/mtomka/fallback branch March 2, 2026 14:32
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.

4 participants