mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? - Add the Temporal failure response capability header to Nexus cancellation requests in both HSM and CHASM executors. - Respect the `nexusoperation.useNewFailureWireFormat` dynamic config when adding the header to cancellation requests. ## Why? Nexus start requests explicitly advertise support for Temporal failure responses, but cancellation requests relied on the request header map being mutated elsewhere. [#10720](https://github.com/temporalio/temporal/pull/10720) and [#10746](https://github.com/temporalio/temporal/pull/10746) introduced defensive copies of Nexus request headers. That exposed the missing capability header on cancellation requests, causing SDK workers to use the legacy failure wire format for cancel handler failures. ## How did you test it? - [x] built - [ ] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [x] added new functional test(s) ## Potential risks Cancellation requests now advertise support for Temporal failure responses by default. The existing dynamic config can disable the behavior if needed. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>