trigger.dev v4.5.0-rc.6
Pre-release
Pre-release
·
11 commits
to main
since this release
Upgrade
npx trigger.dev@4.5.0-rc.6 update
pnpm dlx trigger.dev@4.5.0-rc.6 update
yarn dlx trigger.dev@4.5.0-rc.6 update
bunx trigger.dev@4.5.0-rc.6 updateSelf-hosted Docker image: ghcr.io/triggerdotdev/trigger.dev:v4.5.0-rc.6
chat.agent Improvements
- 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.onTurnCompletenow 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 manualchat.writeTurnCompletecallers now trim the output stream, sending a custom action no longer leaves a second stream reader running, and a long-livedwatchsubscription no longer grows its dedupe set without bound. (#3891) - Continuation chat boots no longer stall for around 10 seconds before the first turn. The
session.inresume cursor is now found with a non-blocking records read instead of draining an SSE long-poll (which always waited out its full 5 second inactivity window, twice per boot), the boot reads run concurrently, and chat snapshots carry the cursor so subsequent boots skip the scan entirely. (#3907) - Fix two
chat.createSession()bugs: stopping a generation no longer wedges the run (the turn loop raced atotalUsagepromise that never settles after a stop-abort), and continuation runs now wait for the next message instead of invoking the model with an empty prompt. (#3920)
Other improvements and fixes
trigger initnow sets up your AI coding assistant as part of project setup: pick the MCP server, the agent skills, or both, then scaffold with the CLI or hand off to your assistant. Adds a newgetting-startedagent skill that teaches assistants how to bootstrap Trigger.dev (install the SDK, writetrigger.config.ts, create a first task, runtrigger dev), so the AI-driven setup path works end to end. It ships in the CLI alongside the existing skills, version-matched to your SDK. (#3872)devanddeploynow fail with a clear error when two tasks are defined with the same id, including across different task types (e.g. a scheduled task and a regular task sharing an id). Previously the second definition silently overwrote the first, so one of the tasks would vanish with no warning. Task ids are detected as duplicates during indexing (naming each offending id and the files it was found in), and the same rule is enforced server-side when the background worker is registered. (#3865)trigger skillsinstalls Trigger.dev agent skills into your coding agent so it knows how to write tasks, schedules, realtime, and chat.agent code. The skills ship with the CLI and are copied into each tool's native skills directory (Claude Code, Cursor, GitHub Copilot, and Codex / AGENTS.md), andtrigger devoffers to install them on first run. (#3868)
All packages: v4.5.0-rc.6
@trigger.dev/build, @trigger.dev/core, @trigger.dev/python, @trigger.dev/react-hooks, @trigger.dev/redis-worker, @trigger.dev/rsc, @trigger.dev/schema-to-json, @trigger.dev/sdk, trigger.dev
Full changelog: v4.4.0.6...v4.5.0-rc.6