chore: release v4.5.0-rc.2#3702
Merged
Merged
Conversation
9634f52 to
a7b2ff2
Compare
a7b2ff2 to
e67e643
Compare
e67e643 to
8514f1e
Compare
8514f1e to
5dab2df
Compare
5dab2df to
f32ca91
Compare
f32ca91 to
cd1ea9f
Compare
cd1ea9f to
c03f711
Compare
c03f711 to
fd855cd
Compare
ericallam
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
3 improvements, 1 bug fix.
Improvements
state+ the matching resolution field (output/errorText/approval) come from the wire, everything else (text, reasoning, toolinput, provider metadata) stays whatever the snapshot orhydrateMessagesreturned. Previously a full-message replace overwrote those fields with whatever the client shipped, so a slimmed wire copy landed a tool call with noargumentson the next LLM call. Coversoutput-available/output-error(HITLaddToolOutput) andapproval-responded/output-denied(approval flow).TriggerChatTransport.sendMessagesandAgentChat.sendRawnow slim assistant messages that carry advanced tool parts. The wire payload is just{ id, role, parts: [<state + resolution field>] }forsubmit-messagecontinuations; everything else passes through. Reasoning blobs and full tool inputs no longer ride the wire on everyaddToolOutput/addToolApproveResponse, so continuation payloads stay well under the.in/appendcap on long agent loops.TriggerClientfor running multiple SDK clients side-by-side, each with its own auth, preview branch, and baseURL. Useful when a single process needs to trigger tasks or read runs across multiple projects, environments, or preview branches without mutating shared global state. (#3683)Bug fixes
chat.agentHITL continuations on reasoning-heavy turns. Two changes that work together: (#3719)Raw changeset output
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@trigger.dev/build@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2trigger.dev@4.5.0-rc.2
Patch Changes
@trigger.dev/build@4.5.0-rc.2@trigger.dev/core@4.5.0-rc.2@trigger.dev/schema-to-json@4.5.0-rc.2@trigger.dev/plugins@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2@trigger.dev/python@4.5.0-rc.2
Patch Changes
@trigger.dev/sdk@4.5.0-rc.2@trigger.dev/build@4.5.0-rc.2@trigger.dev/core@4.5.0-rc.2@trigger.dev/react-hooks@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2@trigger.dev/redis-worker@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2@trigger.dev/rsc@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2@trigger.dev/schema-to-json@4.5.0-rc.2
Patch Changes
@trigger.dev/core@4.5.0-rc.2@trigger.dev/sdk@4.5.0-rc.2
Patch Changes
Fix
chat.agentHITL continuations on reasoning-heavy turns. Two changes that work together: (#3719)state+ the matching resolution field (output/errorText/approval) come from the wire, everything else (text, reasoning, toolinput, provider metadata) stays whatever the snapshot orhydrateMessagesreturned. Previously a full-message replace overwrote those fields with whatever the client shipped, so a slimmed wire copy landed a tool call with noargumentson the next LLM call. Coversoutput-available/output-error(HITLaddToolOutput) andapproval-responded/output-denied(approval flow).TriggerChatTransport.sendMessagesandAgentChat.sendRawnow slim assistant messages that carry advanced tool parts. The wire payload is just{ id, role, parts: [<state + resolution field>] }forsubmit-messagecontinuations; everything else passes through. Reasoning blobs and full tool inputs no longer ride the wire on everyaddToolOutput/addToolApproveResponse, so continuation payloads stay well under the.in/appendcap on long agent loops.Note:
onValidateMessagesreceives the slim wire on HITL turns. If you callvalidateUIMessagesfromaiagainst the fullmessagesarray it will reject the slim assistant; filter to user messages (or skip on HITL turns) — see the updated docstring ononValidateMessagesfor the recommended pattern.For
hydrateMessageshooks that persist the chain, this release also adds a small helper to the@trigger.dev/sdk/aisurface:It pushes fresh user messages by id, no-ops on HITL continuations (the incoming shares an id with the existing assistant — the runtime overlays the new tool-state advance), and skips on non-
submit-messagetriggers. Returnstrueif it mutatedstoredso the caller knows whether to persist.Net effect:
chat.addToolOutput(...)/chat.addToolApproveResponse(...)on multi-step reasoning agents (OpenAI Responses withstore: false, Anthropic extended thinking, etc.) no longer blows the cap and no longer corrupts the LLM input.Add
TriggerClientfor running multiple SDK clients side-by-side, each with its own auth, preview branch, and baseURL. Useful when a single process needs to trigger tasks or read runs across multiple projects, environments, or preview branches without mutating shared global state. (#3683)Updated dependencies:
@trigger.dev/core@4.5.0-rc.2@trigger.dev/core@4.5.0-rc.2