Skip to content

GH-5069 [SagaIsResponseOnly] for endpoints returning a saga as the response - #5366

Merged
jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5069
Nov 5, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5069

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Fixes #5069

Adds [SagaIsResponseOnly] (method or class): returned Saga values are skipped by SagaPersistenceChainPolicy, so an endpoint that already started the saga can return it as the response body. Default behavior is unchanged (no breaking change); I chose the attribute option from the issue rather than a codegen exception because returning a saga as the body is currently a working, documented path. Docs added in http/sagas.md.

Caveat: the Alba test uses Marten Store (an upsert), so it proves the attribute path works end to end but would not itself fail on a double insert without the attribute.

🤖 Generated with Claude Code

…e-inserting it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jeremydmiller
jeremydmiller merged commit 6d30e2a into main Nov 5, 2026
This was referenced Nov 6, 2026
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.

Wolverine.HTTP: returning a saga as the response starts it again, with an unhelpful 500

1 participant