Files
temporal/components
Alex Mazzeo 38948f8a27 Add failure capability to Nexus cancellation requests (#11808)
## 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>
2026-08-26 17:17:23 -07:00
..