You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sdk,core): keep errored chat turns recoverable and bound stream growth
Fire onTurnComplete on errored turns (with the thrown error attached)
and persist a snapshot of the failed turn so its user message is not
stranded past the resume cursor on the next run. Custom agents and
manual chat.writeTurnComplete callers now trim the output stream the
same way the built-in agent does, so it no longer grows without bound.
Sending a custom action supersedes any in-flight reader instead of
leaving two readers racing the resume cursor, and a long-lived watch
subscription caps its dedupe set.
Copy file name to clipboardExpand all lines: .changeset/chat-agent-hardening.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,4 @@
3
3
"@trigger.dev/core": patch
4
4
---
5
5
6
-
Reliability fixes for `chat.agent`. A user message sent while the agent is streaming is no longer delivered twice (which could run a duplicate turn), input appends now carry an idempotency key so a retried send can't duplicate a message, stopping a generation clears the streaming state so a page reload doesn't replay the stopped turn, and runs can now carry the full set of dashboard tags instead of being silently truncated.
6
+
Reliability fixes for `chat.agent`. A user message sent while the agent is streaming is no longer delivered twice (which could run a duplicate turn), input appends now carry an idempotency key so a retried send can't duplicate a message, stopping a generation clears the streaming state so a page reload doesn't replay the stopped turn, and runs can now carry the full set of dashboard tags instead of being silently truncated.`onTurnComplete` now fires on errored turns (with the thrown error attached) and the failed turn's user message is persisted so it isn't lost on the next run. Custom agents and manual `chat.writeTurnComplete` callers now trim the output stream, sending a custom action no longer leaves a second stream reader running, and a long-lived `watch` subscription no longer grows its dedupe set without bound.
0 commit comments