feat(sdk): AI SDK custom useChat transport & chat.task harness#3173
Closed
ericallam wants to merge 160 commits into
maintriggerdotdev/trigger.dev:mainfrom
feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemtriggerdotdev/trigger.dev:feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemCopy head branch name to clipboard
Closed
feat(sdk): AI SDK custom useChat transport & chat.task harness#3173ericallam wants to merge 160 commits intomaintriggerdotdev/trigger.dev:mainfrom feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemtriggerdotdev/trigger.dev:feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemCopy head branch name to clipboard
ericallam wants to merge 160 commits into
maintriggerdotdev/trigger.dev:mainfrom
feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemtriggerdotdev/trigger.dev:feature/tri-7532-ai-sdk-chat-transport-and-chat-task-systemCopy head branch name to clipboard
Commits
Commits on May 10, 2026
feat: add @trigger.dev/ai package with TriggerChatTransport
Show description for f025ccaandcommittedtest: add comprehensive unit tests for TriggerChatTransport
Show description for bf4ed19andcommittedrefactor: polish TriggerChatTransport implementation
Show description for cfb3212andcommittedtest: add abort signal, multiple sessions, and body merging tests
Show description for 7d097ceandcommittedchore: add changeset for @trigger.dev/ai package
Show description for c4934b7andcommittedrefactor: remove internal ChatSessionState from public exports
Show description for c6e4c7dandcommittedfeat: support dynamic accessToken function for token refresh
Show description for 8891110andcommittedrefactor: avoid double-resolving accessToken in sendMessages
Show description for c92b28candcommittedfeat: add chat transport and AI chat helpers to @trigger.dev/sdk
Show description for 0a2e7f1andcommittedtest: move chat transport tests to @trigger.dev/sdk
Show description for ab30c08andcommittedrefactor: delete packages/ai/ — moved to @trigger.dev/sdk subpaths
Show description for 03b26fbandcommittedchore: update changeset to target @trigger.dev/sdk
Show description for 36916efandcommittedfix: address CodeRabbit review feedback
Show description for 0b9bb98andcommitteddocs(ai): add AI Chat with useChat guide
Show description for f2e5e4candcommittedfeat(reference): add ai-chat Next.js reference project
Show description for ce16c56andcommittedfix(reference): use compatible @ai-sdk v3 packages, await convertToModelMessages
Show description for 8009d40andcommitted- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
feat(chat): add stop handling, abort cleanup, continuation support, and reference project enhancements
Show description for 5c1aa24committed- committed
feat(chat): expose typed chat.stream, add deepResearch subtask example, per-chat model persistence, debug panel
Show description for acb1f98committedfeat(ai): pass chat context and toolCallId to subtasks, add typed ai.chatContext helpers
Show description for 1cc19f8committedfeat(chat): add preload support, dynamic tools, and preload-specific timeouts
Show description for b2dc691committed- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
feat(ai): add triggerAndSubscribe method and use it in ai.tool
Show description for 9d334e8committedfeat(chat): add chat.inject() for background context injection and chat.defer improvements
Show description for 71abce7committedfeat(sdk): ToolSet typing for toolFromTask, ai.toolExecute, deprecate ai.tool
Show description for be820d0committed- committed
feat(sdk): ctx on chat.task hooks; ai-chat E2B sandbox; docs patterns
Show description for dde3934committed- committed
- committed
chat.task -> chat.agent
Show description for 89de993committedfeat: upgrade streamdown to v2.5.0 with custom Trigger.dev Shiki theme
Show description for 91b21eacommitted- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
feat(chat): add hydrateMessages, chat.history, and custom actions
Show description for 49df95bcommittedfix(chat): prevent useChat resume from hanging on completed turns
Show description for 5bb7ae6committed- committed
- committed
- committed
- committed
- committed
feat(core): add runInMockTaskContext test infrastructure
Show description for 0973ae6committedfeat(sdk): add mockChatAgent test harness with locals DI
Show description for 220eeeecommittedfeat(chat): expose finishReason on turn-complete events
Show description for fded2cdcommittedfeat(chat): add chat.endRun()
Show description for 0a401d8committedfix(chat): include "action" in ChatTaskPayload.trigger type
Show description for b27da8bcommittedfeat(core): add skill resource catalog + SkillManifest schemas
Show description for ee673f7committedfeat(sdk): add skills.define + chat.skills runtime wiring
Show description for cf4b61ecommittedfeat(cli): built-in skill bundler for trigger dev + deploy
Show description for cc24ab1committedfeat(sdk,cli,core,build): phase 1 of agent skills
Show description for 3ae6f91committedfix(cli): skills bundler resolves caller-relative paths + correct dev layout
Show description for 9942ef4committed- committed
feat(sdk,core): Session client SDK + hello-world smoke test
Show description for 85db7bdcommittedfeat(sdk,core): Session channel SDK toolkits + waitpoints — client side
Show description for f232f52committedfeat(sdk): chat.agent → Sessions migration (phases B + C + min E)
Show description for 6ac545acommittedfeat(sdk): server-side ChatStream / AgentChat -> Sessions (phase D)
Show description for fffd2d5committedfix(sdk,chat): route pipeChat through session.out + chat-agent smoke test
Show description for 7ba0a66committedtest(sdk,core): session-aware mockChatAgent harness + chat.test.ts mocks
Show description for 23ec6a2committeddocs(architecture): chat.agent over Sessions reference
Show description for a93238bcommittedfeat(cli): MCP agentChat tool → Sessions migration
Show description for 3c148c6committedfeat(webapp,sdk): dashboard AgentView → session streams
Show description for 6730467committedfeat(sdk,ai-chat): skills runtime subpath + ai-chat browser test bridge
Show description for 86a3f85committedfeat(sdk,webapp,ai-chat): end-to-end browser UI smoke on sessions
Show description for e56d9dbcommittedfeat(sdk,core): drop legacy chat stream-ID constants
Show description for bca80ddcommittedfix(sdk,chat): make isStreaming optional in reconnectToStream short-circuit
Show description for b04f1cccommittedfix(webapp): use getRequestAbortSignal() for dashboard stream routes
Show description for 3f62880committedrefactor(sdk): extract browser-safe chat types into ai-shared
Show description for 3d2483acommittedfeat(sdk,webapp): X-Peek-Settled opt-in fast-close on session.out
Show description for 5164aabcommittedfeat(sdk,webapp): X-Peek-Settled fast-close (webapp + docs)
Show description for bb6aeb7committedfeat(sdk,playground,ai-chat): chat.agent on Sessions-as-run-manager
Show description for 9477917committed- committed
- committed
fix(core): buffer session-stream chunks even when handlers exist
Show description for d424c41committed- committed
fix(sdk,ai-chat): auto chat:{chatId} tag on server-mediated start; atomic persist in reference onTurnComplete
Show description for 527b651committedfix(ai-chat reference): await Chat.messages persist in onTurnStart
Show description for b6ed98ecommittedfeat(ai-chat reference): db:reset:chats helper for clean smoke-test slates
Show description for 7146af9committedfeat(ai-chat reference): explicit Preload button + Runs link in debug panel + sendAction bridge
Show description for 3295e59committedfix(cli): MCP agentChat — task-bound session creation
Show description for 00a61b6committedtest(clickhouse): add missing task_kind to taskRuns test fixtures
Show description for 9fc1870committedfix(sdk,cli): server-to-agent chat preload — `trigger: "preload"` + `messages: []` in basePayload
Show description for 2639259committedfeat(sdk,core): ChatChunkTooLargeError for oversized chat-stream chunks
Show description for f150cf2committedfix(sdk,core): unblock CI on PR #3173
Show description for f65022acommittedfix(core): typesVersions entry for v3/chat-client + inline CodeQL guards
Show description for f9e7daccommittedfix(core,webapp): plumb maxDuration / lockToVersion / region through SessionTriggerConfig + sync playground transport clientData
Show description for 55fa0f7committedchore: consolidate chat.agent / Sessions / Skills changesets (26 → 8)
Show description for 6c74ef0committedchore: rewrite consolidated changesets in user-facing changelog voice
Show description for fadbc3dcommittedfix: address PR 3173 review feedback
Show description for 9b88079committedfeat(sdk): resilient SSE reconnection in chat transport
Show description for ea54931committedfeat(sdk): chat.headStart for fast first-turn TTFC
Show description for f063a2fcommittedchore(references): demo chat.headStart in ai-chat reference
Show description for 64ede82committedfix(webapp): wrap playground 'save' JSON.parse to return 400 on malformed input
Show description for c9e02e3committedfeat(webapp): plumb per-org basin through playground + dashboard route variants
Show description for 785d015committedfix: AGENT/SCHEDULED runs misclassified + green up the chat.handover idle test
Show description for 6e492b6committedfix(webapp): normalize taskKind in API + drop unsafe casts in playground action
Show description for bd52546committedfix(sdk): drop session-stream auto-reconnect after explicit disconnect
Show description for 6c7d4a1committedfix(sdk): drop duplicate onError on SSE auth-error path
Show description for 0f8e1cecommittedfeat(sdk): stamp gen_ai.conversation.id on chat spans and metrics
Show description for 3eba74acommittedfeat(sdk)!: chat.agent actions are no longer turns
Show description for 6585ce8committedfeat(ai-chat-ref): add undo action + button to demo agent
Show description for 080bacecommitteddocs(sdk): clarify sendAction semantics for actions-not-turns
Show description for 16c3c9bcommittedfeat(webapp): Sessions list + detail views and run inspector linkage
Show description for 2bb5684committedfix: address PR 3173 review feedback (closure + unhandled rejection)
Show description for 1aa3606committedfix(sdk): tolerate AI SDK assistant-id regen on HITL addToolOutput resume
Show description for f6f0f46committedfeat(sdk): add chat.history read primitives for HITL flows
Show description for 49aab61committedfix(sdk): tighten chat.history read primitives from review feedback
Show description for 701d80bcommittedfeat(sdk): chat.agent oomMachine for automatic OOM-retry on a larger machine
Show description for 3ffc73fcommittedfeat(chat.agent): delta-only wire and history reconstruction at run boot
Show description for c202f3aandcommittedfix(sdk): update tests to match the delta-only wire and current AI SDK chunk shapes
Show description for 2d05629andcommitted- committed