Repository navigation
trigger.dev v4.8.7
Upgrade
npx trigger.dev@latest update # npm
pnpm dlx trigger.dev@latest update # pnpm
yarn dlx trigger.dev@latest update # yarn
bunx trigger.dev@latest update # bunSelf-hosted Docker image: ghcr.io/triggerdotdev/trigger.dev:v4.8.7
Release notes
Read the full release notes: https://trigger.dev/changelog/v4-8-7
What's changed
Improvements
- Sessions and
chat.agentnow accept the object form ofconcurrencyKeyintriggerConfig, giving each concurrency limit its own key, the same astask.trigger(). (767ab4521)
Bug fixes
-
Fix runs failing with
TASK_DID_CONCURRENT_WAITon their first wait whenprocessKeepAliveis enabled. (fe57ea018) -
Fix
chat.agentchannels on AI SDK 7 failing the whole turn when a channel file can't be downloaded. A file the connector owns but can't read is now replaced with an[Attached file "…" could not be loaded]note and the agent still answers, as it does on AI SDK 6. AI SDK 7 describes a file's URL in a tagged form that the SDK didn't recognise, so the failed file was never found. (c888eb885)An inline
data:file in a channel message is no longer passed to a connector'sdownload, and on AI SDK 6 it reaches the model instead of failing the turn. -
Fix two compaction problems on AI SDK 7. After a compaction, a
chat.agentturn that continued a tool approval sent the model the full pre-compaction transcript instead of the summary, which undid the compaction (this also affectedchat.MessageAccumulator). And between-turn compaction, inchat.agentandchat.createSession, was asked about the whole turn's token usage instead of the last step's, soshouldCompactthresholds triggered too early on multi-step turns. (c615d762e)If you call
compactIfNeededon achat.MessageAccumulator, pass it the last step's usage,(await result.steps).at(-1)?.usage.result.usageis the turn's sum on AI SDK 7. -
Fix
chat.agentsteering on AI SDK 7. A steering message thatpendingMessages.prepareturns into asystemmessage no longer makes the step fail with an invalid-prompt error:chat.toStreamTextOptions()now setsallowSystemInMessages: true, as AI SDK 5 and 6 already behave (passallowSystemInMessages: falseafter the spread to keep AI SDK 7's strict default). A turn whose stream ends on an error now reportsfinishReason: "error"inonTurnComplete, where it could beundefinedor the previous step's reason. (53f17ee0b) -
Fix a
chat.agenttool result containing aBigIntfailing the next turn's model call in apps that defineBigInt.prototype.toJSON. It is now sent as the JSON thattoJSONgives, in the next step and in later turns. (8167e49f3) -
Fix
chat.agentfailing the next step or turn withAI_InvalidPromptError("The messages do not match the ModelMessage[] schema") when a tool returned a value that isn't plain JSON, such as aDatefrom an ORM row. On AI SDK 6, and AI SDK 7 before 7.0.101, tool results are now converted to JSON the way newer AI SDK versions do it, so aDatereaches the model as its ISO string. A value JSON can't hold, such as aBigIntor a circular reference, is replaced by an error result that names the tool and the field, and the same error is logged on the run. (49b3dc055)
Server changes
These changes affect the self-hosted Docker image and Trigger.dev Cloud:
- Worker registration now refuses task source files that are too large once decompressed or aren't valid text, with an error that names the file.
- The session page now says when earlier conversation messages couldn't be loaded, with a retry, and closing a session keeps the view you were on.
- On a live run's trace, "Errors only" and search now pick up a span that fails or gets a new name after it first appeared.
- Alert webhook URLs that point at private or reserved network addresses are now rejected in more cases.
All packages: v4.8.7
@trigger.dev/build, @trigger.dev/convex, @trigger.dev/core, @trigger.dev/linear, @trigger.dev/python, @trigger.dev/react-hooks, @trigger.dev/redis-worker, @trigger.dev/rsc, @trigger.dev/schema-to-json, @trigger.dev/sdk, @trigger.dev/slack, trigger.dev
Contributors
@Mariefay, Paul Cioanca, Adrien de Peretti, Chris Arderne, @d-cs, Saadi Myftija, @nicktrn, github-actions[bot], Katia Bulatova, @isshaddad, Eric Allam, João Dias
Full changelog: v4.8.6...v4.8.7