Skip to content

Commit 887eaa8

Browse files
authored
Merge branch 'main' into docs/735-actor-run-example-task-page
2 parents 7bde0fa + 94b5d19 commit 887eaa8

1,418 files changed

Lines changed: 156497 additions & 14089 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/core": patch
3+
---
4+
5+
`runs.retrieve()` returns a `buffer` field on a buffered task's run: its buffer key, how many items it collected, and when and why its window closed.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@trigger.dev/sdk": minor
3+
"@trigger.dev/core": minor
4+
---
5+
6+
Add `versionSkew: "follow-mid-turn"` to `chat.agent` and `chat.createSession`. It does everything `"follow"` does, and also moves a turn that is still running when its version is below the skew protection threshold: the turn finishes the step it is on, and a run on the current deployment continues the same reply from the next step, so no step runs twice and the person chatting sees one reply. `chat.handOverAtStep(step)` does the same from your own `prepareStep`. `chat.requestUpgrade()` called during a turn now moves the turn at the next step boundary instead of waiting for the turn to end. A turn is handed over only when the agent in the current deployment was built with this release or later; otherwise the turn finishes on its own version. If the API can't be reached during a handover, the old run keeps trying to start the next run for about three minutes, and a run that continues a chat while the API can't be reached waits for it rather than answer a message again.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
A `chat.agent` channel's final reply is now the turn's last non-empty run of text (tool calls split the text into runs), instead of every step's text joined together. Notes the model wrote before its tool calls no longer end up in the posted reply, unless nothing follows the last tool call, in which case the text just before it is posted. `reply.message` still has every part.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
`TriggerChatTransport` no longer replays the previous answer when a chat is sent to or reconnected without a saved `lastEventId`, for example after a page reload that doesn't restore it. Only the current turn's answer reaches the UI, and a reload mid-answer resumes it live. With older agents that write no turn markers, the answer can arrive when its turn completes rather than streaming, and with the oldest, which record no input cursor, a send made while the agent is idle can still get the previous answer.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
With AI SDK 7's `useChat({ resume: true })`, a chat that remounts while a reply is still streaming (for example under React StrictMode in development) now rejoins the reply from its start instead of showing nothing until the next message.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
A chat message sent while an earlier reply is still running, for example after Stop on a reply resumed after a reload, now gets only its own answer instead of the rest of that reply and an error.

‎.changeset/mcp-cli-tool-usage.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
When you use Trigger.dev Cloud, the CLI and its MCP server now report usage analytics tied to your logged-in account: which commands run and which MCP tools are called, never the arguments you pass. Nothing is reported for self-hosted or local instances. Turn it off with `--skip-telemetry` or the `TRIGGER_TELEMETRY_DISABLED` environment variable.

‎.changeset/mcp-list-runs-before.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
The MCP server's `list_runs` tool now accepts `before` to list the page before a given cursor, using the previous cursor it shows.

‎.changeset/named-machines.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
"@trigger.dev/core": patch
4+
"trigger.dev": patch
5+
---
6+
7+
Add `defineMachine()` for tasks that need their own image. A machine adds apt packages or Containerfile instructions on top of the project image and sets a default preset. Set it as a task's `machine` and the deploy builds its image. Available only to early testers.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"trigger.dev": patch
3+
"@trigger.dev/core": patch
4+
---
5+
6+
Resume a deployed task as soon as its run is restored after a wait. A run that was suspended during a wait (`wait.for`, `triggerAndWait`, a waitpoint token or session input) could take up to 5 seconds longer than needed to continue, and the waits it finished after that, or a cancellation, could reach the task with the same delay.

0 commit comments

Comments
 (0)