Skip to content

Commit e11849d

Browse files
authored
Merge branch 'main' into ci-gate-optional-jobs-via-repo-vars
2 parents d2696fd + a7312b1 commit e11849d

175 files changed

Lines changed: 7647 additions & 2245 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
"trigger.dev": patch
4+
---
5+
6+
`@trigger.dev/sdk` now bundles the Trigger.dev agent skills and a curated snapshot of the docs those skills reference. The skills that `trigger skills` installs into your coding agent read this content from node_modules, so the guidance your AI assistant follows is pinned to the SDK version installed in your project and stays current across upgrades instead of going stale until the next reinstall.

.changeset/chat-boot-cursor.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
"@trigger.dev/core": patch
4+
---
5+
6+
Continuation chat boots no longer stall for around 10 seconds before the first turn. The `session.in` resume 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.
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+
Fix `chat.headStart` when `hydrateMessages` is registered. The warm route's step-1 partial now reaches the agent's accumulator on the hydrate path, so `onTurnComplete` carries the full first turn (the head-start user message included), tool-call handovers resume from step 2 instead of re-running step 1, and the assistant `messageId` stays stable across the handover.
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+
Preserve reasoning parts across the `chat.headStart` handover. Extended-thinking models' step-1 reasoning now lands in the durable session history (and `onTurnComplete`) under the same assistant `messageId`, with provider metadata intact so Anthropic thinking signatures survive replays.
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+
Running a CLI command like `dev`, `deploy`, `preview`, or `update` before initializing a project no longer crashes with a raw `Cannot find matching package.json` stack trace. The CLI now detects the missing project and points you to `npx trigger.dev@latest init` instead.
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+
Fix two `chat.createSession()` bugs: stopping a generation no longer wedges the run (the turn loop raced a `totalUsage` promise 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.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
Three fixes for custom agent loops (`chat.customAgent`, `chat.createSession`, and hand-rolled `MessageAccumulator` loops):
6+
7+
- Continuation runs no longer replay already-answered user messages into the first turn. The `.in` resume cursor is now seeded before any listener attaches (the same boot logic `chat.agent` uses), so a chat that continues after a cancel, crash, or upgrade only sees genuinely new messages.
8+
- Steering a hand-rolled loop mid-stream no longer wipes the in-flight assistant response. `chat.pipeAndCapture` now stamps a server-generated message id on the stream, so a `prepareStep` injection keeps the partial text instead of replacing the message.
9+
- Task-backed tools (`ai.toolExecute`) now work from custom agent loops: the parent's session is threaded to the child run, so child tasks can stream progress into the chat with `chat.stream.writer({ target: "root" })` instead of failing with "session handle is not initialized".

.changeset/pre.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,24 @@
2626
"backpressure-scale-up-freeze",
2727
"bundle-skills-single-pass",
2828
"cap-idempotency-key-length",
29+
"chat-agent-hardening",
2930
"chat-agent-on-boot-hook",
3031
"chat-agent-tools",
3132
"chat-agent",
33+
"chat-boot-cursor",
34+
"chat-headstart-hydrate",
35+
"chat-headstart-reasoning",
3236
"chat-history-read-primitives",
3337
"chat-session-attributes",
3438
"chat-slim-wire-merge",
3539
"chat-start-session-action-typed-client-data",
3640
"chat-transport-recreate-missing-session",
3741
"cli-deploy-skip-rewrite-timestamp",
42+
"cli-init-ai-tooling",
3843
"coerce-concurrency-key-to-string",
44+
"create-session-stop-continuation",
45+
"dequeue-latency-histogram",
46+
"duplicate-task-ids",
3947
"env-vars-tracing-forceflush-typecheck",
4048
"envvars-import-is-secret",
4149
"large-trigger-payload-offload",
@@ -51,13 +59,15 @@
5159
"mollifier-tag-cap",
5260
"otel-suite-0218",
5361
"plugin-auth-path",
62+
"project-environments-endpoint",
5463
"resource-catalog-runtime-registration",
5564
"retry-middleware-errors",
5665
"retry-sigsegv",
5766
"runs-list-region-filter",
5867
"s2-batch-transform-linger-fix",
5968
"sessions-primitive",
6069
"trigger-client",
70+
"trigger-skills-installer",
6171
"unflatten-attributes-conflict",
6272
"warm-start-external-trace-context-leak"
6373
]

.github/VOUCHED.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ bharathkumar39293
2222
bhekanik
2323
jrossi
2424
ThullyoCunha
25-
ConProgramming
25+
ConProgramming
26+
saasjesus

.server-changes/bulk-action-cursor-pagination.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)