What Changed
Trigger.dev 4.5 combines a durable chat task, a session that spans runs, and versioned prompts. If you already use the Vercel AI SDK, its Trigger.dev transport can stream text and tool events to your existing chat UI. The app still needs a stable conversation ID so a reconnect lands back in the right place.
Test the parts of a long-running workflow that fail when a tab closes. A support agent might start a lookup, wait for approval, and finish after the user returns. Verify what the user sees at each step and that reconnects and retries never repeat a write.
Release Highlights
- The chat.agent task type, durable sessions, and managed prompts are generally available.
- Resumable streams let the client reconnect to an existing conversation when its connection drops.
- The release also makes duplicate task IDs fail during development and deploy. Audit task registration before upgrading an existing worker project.
What It Unlocks
A long-running chat can survive a closed tab or dropped connection. That opens up tool calls that take longer than a user will wait on one HTTP request.
Who Should Try It
Teams whose chat stream or tool call stops when a user refreshes or an API request times out.
When to Hold Off
If chat answers are short and do not call tools, measure the failure rate first. Session persistence is most useful when retries or reconnects affect the user.
What to Check First
- Move one long-running flow. Start a tool call, disconnect, then reopen the same conversation and check that the result appears.
- Repeat with a tool that writes test data. Verify retries cannot create the same record twice.