Packages

@trigger.dev/sdk

4.8.8 · 20 Nov 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed

Upgrading @trigger.dev/sdk From 4.8.6 to 4.8.7

1 release in betweenevery note read

Other targets from 4.8.6Newest 4.x, Latest4.8.8
  1. 4.8.6yours
  2. 4.8.7target
0
changes to make
0
advisories fixed
1
new
6
fixes

Release by release

  1. 4.8.7

    19 Nov 20261 new · 6 fixes
    • New

      Sessions and chat.agent now accept the object form of concurrencyKey in triggerConfig, giving each concurrency limit its own key, the same as task.trigger().

    • Fixed

      Fix runs failing with TASK_DID_CONCURRENT_WAIT on their first wait when processKeepAlive is enabled.

    • Fixed

      Fix chat.agent channels 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.

    • Fixed

      Fix two compaction problems on AI SDK 7. After a compaction, a chat.agent turn that continued a tool approval sent the model the full pre-compaction transcript instead of the summary, which undid the compaction (this also affected chat.MessageAccumulator). And between-turn compaction, in chat.agent and chat.createSession, was asked about the whole turn's token usage instead of the last step's, so shouldCompact thresholds triggered too early on multi-step turns.

    • Fixed

      Fix chat.agent steering on AI SDK 7. A steering message that pendingMessages.prepare turns into a system message no longer makes the step fail with an invalid-prompt error: chat.toStreamTextOptions() now sets allowSystemInMessages: true, as AI SDK 5 and 6 already behave (pass allowSystemInMessages: false after the spread to keep AI SDK 7's strict default). A turn whose stream ends on an error now reports finishReason: "error" in onTurnComplete, where it could be undefined or the previous step's reason.

    • Fixed

      Fix a chat.agent tool result containing a BigInt failing the next turn's model call in apps that define BigInt.prototype.toJSON. It is now sent as the JSON that toJSON gives, in the next step and in later turns.

    • Fixed

      Fix chat.agent failing the next step or turn with AI_InvalidPromptError ("The messages do not match the ModelMessage schema") when a tool returned a value that isn't plain JSON, such as a Date from 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 a Date reaches the model as its ISO string. A value JSON can't hold, such as a BigInt or 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.

4 other lines we could not sort, mostly version bumps
  • 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.

    4.8.7
  • 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.

    4.8.7
  • 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.

    4.8.7
  • Alert webhook URLs that point at private or reserved network addresses are now rejected in more cases.

    4.8.7

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.