SIGN IN SIGN UP

feat(chat): add per-action settlement callback (#4956)

Stream closure alone cannot confirm that a specific action's input was
processed; this adds an optional per-call `onSettled` callback to
`TriggerChatTransport.sendAction()`.

## ✅ Checklist

- [x] I have followed every step in the [contributing
guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md)
- [x] The PR title follows the convention
- [x] I ran and tested the code works

---

## Testing

SDK build, 770 SDK tests (including 45 real-HTTP settlement tests),
ESM/CommonJS package smoke checks, formatting, lint, and Knip passed;
live-worker E2E was not run.

---

## Changelog

Adds validated, once-per-call settlement with cancellation and
supersession safeguards, public types, API documentation, and a patch
changeset.
Documents that settlement does not prove application success and that a
missing callback does not make retrying safe.

---

## Screenshots

Not applicable — no visual changes

💯
G
Graham Tremper committed
b576a9a7954a2f54be3469681c11562cd8538b12
Parent: 0aedf39
Committed by GitHub <noreply@github.com> on 9/23/2026, 2:06:28 PM