chore: release v4.5.0#3998
Merged
Merged
Conversation
ae55093 to
136f0f1
Compare
136f0f1 to
c156016
Compare
c156016 to
0c8a043
Compare
0c8a043 to
616d755
Compare
616d755 to
b9a6bba
Compare
b9a6bba to
cca62fb
Compare
cca62fb to
f4824a4
Compare
f4824a4 to
7574c5d
Compare
7574c5d to
8d70f1f
Compare
2a245cd to
db92175
Compare
db92175 to
5e8a257
Compare
5e8a257 to
6eebcd3
Compare
6eebcd3 to
c68dd49
Compare
c68dd49 to
261e3e9
Compare
261e3e9 to
a500557
Compare
a500557 to
1262b1b
Compare
1262b1b to
d45c73e
Compare
d45c73e to
3fbe081
Compare
3fbe081 to
1450668
Compare
ericallam
approved these changes
Jul 2, 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.
Trigger.dev v4.5.0
4.5.0 is the GA of the AI Agents platform. Everything built during the prerelease line (durable agents, Sessions, AI Prompts) is now stable on the
latesttag, alongside a set of SDK and runtime improvements.AI Agents (
chat.agent)Run Vercel AI SDK chat completions as durable Trigger.dev tasks instead of fragile API routes. A conversation runs as one long-lived task keyed on
chatId, so it survives page refreshes, network blips, redeploys, and crashes, and every turn is a span in the dashboard.Sessions
The durable primitive underneath
chat.agent, usable on its own: a run-aware, bidirectional stream channel keyed on a stableexternalIdwhose.in/.outstreams survive run boundaries (suspend, crash, idle-timeout, redeploy). One Session spans many runs, which makes it a good fit for agent inboxes and approval flows.AI Prompts
Define prompt templates as code, versioned on every deploy, and override the text or model from the dashboard without redeploying (environment-scoped). Each generation links back to its prompt version for usage, cost, and latency.
useChatintegrationuseTriggerChatTransportis a Vercel AI SDKChatTransportthat runsuseChatover Trigger.dev realtime with no API routes. Text, tool calls, reasoning, anddata-*parts stream natively, and it works with AI SDK v5, v6, and now v7.First-turn fast path (
chat.headStart)Runs the first turn in your warm server process while the agent boots in parallel, cutting cold-start time-to-first-chunk roughly in half (measured ~2.8s to ~1.2s). Available via the new
@trigger.dev/sdk/chat-serversubpath.Human-in-the-loop, stop, and steering
The agent control surface: tool approvals (
needsApproval+addToolApprovalResponse), client-driven stop-generation, mid-execution steering (pendingMessages), and between-turn context injection (chat.inject/chat.defer), all durable across the conversation.Agent Skills
skills.define({ id, path })bundles aSKILL.mdfolder into your deploy image. The agent gets a one-line summary up front and loads the full instructions plus scopedbash/readFiletools on demand (progressive disclosure), so a capability is something the model reaches for rather than a pre-declared typed tool.trigger skillsfor coding assistantstrigger skillsinstalls version-pinned Trigger.dev skills plus a bundled docs snapshot into Claude Code, Cursor, GitHub Copilot, and Codex, so your assistant's Trigger.dev knowledge stays current with your installed SDK version.trigger initnow offers to set up the MCP server and skills too.Model library
A new Models page in the dashboard: a catalog of models grouped by provider with context window, capabilities, and input / output pricing per 1M tokens, plus a "Your models" tab showing per-model usage, cost, and cache-hit sparklines from your actual traffic.
Dev branches
Run multiple local
trigger devsessions in parallel (separate git worktrees or coding agents) without runs colliding, each isolated with its own dashboard, viatrigger dev --branch <name>.TriggerClientAn instantiable client so one process can trigger and read across projects, environments, and preview branches, each with its own auth and baseURL, with no shared global state.
SDK and runtime
list_runs)devanddeployfail with a clear error instead of silently overwritingenvvars.uploadgains anisSecretflag to import redacted secret variablesTASK_MIDDLEWARE_ERRORnow retries under the task's retry policy