Trigger.dev v4.6.3

Thrown error cause chains are now captured and surfaced in the dashboard, CLI, and alerts, plus chat agent context compaction and schedule policy warning improvements.

3 improvements.

Improvements

  • Schedule policy warnings now show how to override the default cron window when the execution window doesn't fit the configured schedule. (630eb75)

  • Thrown error cause chains are now captured and surfaced. When a task throws an error that wraps another, the run error in the dashboard, CLI dev output, and failure alerts all carry the full chain instead of only the outermost message:


    throw new Error("Could not sync the customer", { cause: originalError });

    The chain is flattened outermost first, capped at five causes, and cycle-safe. It also surfaces as a causes array on the error field of API and realtime run records. triggerAndWait and triggerAndSubscribe rebuild it as a native cause on the error they hand back, so err.cause works in your own catch blocks. (4f36f61)

  • chat.agent() now excludes summarized assistant steps and tool results from the model's context after inner compaction, while preserving the full visible conversation in the trace. (fc77bfc)

How to upgrade

Update the trigger.dev/* packages to v4.6.3 using your package manager:


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 # bun

Self-hosted users: update your Docker image to ghcr.io/triggerdotdev/trigger.dev:v4.6.3.

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now