René's URL Explorer Experiment


Title: fix(chat): keep steering, action and injected messages in the conversation by ericallam · Pull Request #4816 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(chat): keep steering, action and injected messages in the conversation by ericallam · Pull Request #4816 · triggerdotdev/trigger.dev

X Title: fix(chat): keep steering, action and injected messages in the conversation by ericallam · Pull Request #4816 · triggerdotdev/trigger.dev

Description: Summary A steering message sent while the agent was answering onTurnComplete: async ({ newUIMessages }) => { await db.saveMessages(newUIMessages); }, Before: the steer reached the model for the answer it steered, and reached the browser, but never uiMessages or newUIMessages, so it was never saved and it disappeared on reload. Now it is in both. The model also forgot it from the next turn onwards. chat.agent keeps a UI accumulator and a model accumulator, and the drain appended to the UI one only; the model saw the message through the prepareStep return value, which is per-step. The model lane is advanced by appending each turn's delta, so it never learned the message existed: turn 1 accumulator → [user, steer, assistant] the UI, the snapshot and chat.history.* all have it turn 2 model prompt → [user, next-user] the model answers as though it was never sent The drain now hands back what it claimed and the model lane is appended to before the response is, so the order stays steer-then-answer. Appended rather than rebuilt from the UI lane: compaction replaces the model lane with a summary and deliberately leaves the UI lane whole, so a rebuild restores every message the summary had replaced. A first version of this fix did exactly that, caught in review; the steer was present in the next prompt and so was the whole pre-compaction transcript. This is also the surface disagreement the QA lane reported: a recap in the same run recalled a mid-turn steer while the managed loop denied it. The recap was reading the persisted snapshot, which is written from the UI lane. Both now agree. The same on chat.createSession() and chat.MessageAccumulator. Those keep their own accumulator, and the drain recorded what it claimed by pushing into a locals array only chat.agent populates, so there the push was a silent no-op. A mid-turn steer shaped that turn's answer and then existed nowhere: not in turn.uiMessages, not in turn.messages, and not queued as its own turn either. The drain now returns what it claimed and each surface records it in both of its lanes, appending for the same reason as above. A steer on a turn that then fails. The error path built newUIMessages from the wire message and the partial only, so a turn that failed after a steer reported everything except the steer. It is now seeded from the per-turn list. This only affected a stream that rejects (a transport failure); an AI SDK error part completes the stream and was never affected. An undo, edit, or regenerate onAction: async ({ action }) => { if (action.type === "undo") chat.history.slice(0, -2); }, Before: the rollback lived only in the running worker. It held while that worker stayed warm, then the next continuation booted from a snapshot that still contained the undone messages. They came back, minutes later, with no error. Now the action writes the snapshot. The rollback fix is for platform-managed persistence. With hydrateMessages the runtime deliberately does not write, because your store is the source of truth, so a rollback is still yours to save, and the answer that follows chat.turn() reaches your store through onTurnComplete like any turn's. The actions page now covers both models; it previously said only that persistence was your responsibility. Injected system context chat.inject([{ role: "system", content: "The user just upgraded to Pro." }]); Before, on AI SDK 7: every provider rejected it (AI_InvalidPromptError from standardizePrompt, thrown before any provider call). The turn ended in the app's error fallback and persisted an assistant message with no parts, so the agent looked like it had stopped answering. Now it is appended to the model's instructions, where it is also treated as trusted, which is the reason to inject context in the first place. Instructions are delivered by the helper, so a system-role injection needs it: run: async ({ messages, signal }) => streamText({ ...chat.toStreamTextOptions(), // without this, a system injection never arrives model, messages, abortSignal: signal, }), The conversational lane has no such requirement. An injection also applies to the next turn only, rather than repeating on every turn after it, and within that turn it is consumed once rather than once per read, so a run() that builds options more than once sees the same instructions in every build. An edit-only action is not a turn. It used to share the turn's completion path, which fired onTurnComplete, kept the turn number, and consumed the one-shot instruction lane. The action branch now writes its own snapshot and completion, so the next real turn is still the next turn and still receives an instruction injected before the action. The snapshot cursor after a failed turn. The error path wrote its snapshot with the failed turn's completion cursor but never updated the shared cursor, so a later history-changing action, whose snapshot is cursor-neutral and reuses it, wrote the cursor from before the failed turn. A continuation would then resume from there and replay output the failed turn had superseded. The cursor moves on the error path now. This one has unit coverage only: the value is decided in-process before the upload, and the test reads the same write directly. A steer transformed by pendingMessages.prepare. The steered turn saw the transformed form; later turns saw the raw message reconverted. The pending list now carries the model messages the drain actually injected, and reconciliation appends those, on both surfaces. A steer on a turn that then fails, in the model lane. The previous round reported it to the hook's newUIMessages; it was still left pending in the model lane, so the failed turn's messages lacked it and the next turn received it one slot late. The catch path reconciles it now, before the partial is considered. The steer in onTurnComplete.newMessages, and a history edit after a steer. The per-turn model delta the hook reports never received the steer's model form, so append-only persistence from newMessages lost the model's view of it. And a chat.history edit after a steer was drained rebuilt the model lane from the UI lane, which already held the steer, then appended it again, so later turns received it twice. Reconciliation now writes the delta too and skips the lane append for anything a rebuild already placed. A prepared steer after a history edit, and in a failed turn's delta. A chat.history edit rebuilt the model lane from the UI lane, which put the steer's raw form back and, when a compaction override replaced that lane in the same turn, left the steer with no form at all. The rebuild now leaves consumed steers out and reconciliation appends the prepared form once; a steer the edit removed stays removed. The failed-turn delta is likewise built from the recorded forms rather than by converting the UI list, so newMessages reports the same form the lane holds. An action can become a turn. onAction is a state edit. To answer after the edit, return chat.turn(): a turn runs on the edited history with everything a turn has, the agent's system prompt and tools, steering, compaction, injected instructions, onTurnStart and onTurnComplete, numbering and persistence. Returning a StreamTextResult, string or UIMessage from onAction is no longer supported and fails with a pointer to chat.turn(). That path was a turn without a turn's guarantees, each of which had to be re-added by hand, and its delivery to the browser was unreliable. The edit is snapshotted before the turn starts, so a turn cut short continues from the edited history, and run() receives the turn with trigger: "action-turn", so a handler that returns early on "action" still answers. Before, a regenerate handler produced the answer itself: onAction: async ({ action, streamText }) => { if (action.type === "regenerate") { chat.history.slice(0, -1); return streamText({ model, messages: await convertToModelMessages(chat.history.all()) }); } } After, it edits and hands off: onAction: async ({ action }) => { if (action.type === "regenerate") { chat.history.slice(0, -1); return chat.turn(); } } Actions travel on useChat's own request path. TriggerChatTransport recognises body.action on a useChat request and sends it as an action, so useChat owns the response and a turn that follows the action renders like a message turn. useChatActions({ sendMessage }) wraps sendMessage(undefined, { body: { action } }); regenerate({ body: { action } }) works the same way. The frontend docs had said useChat consumed the stream transport.sendAction returns; it never did, so an action's answer was never rendered by an app following them. transport.sendAction is unchanged for callers outside useChat. Approving a tool call no longer undoes compaction. A tool-approval response arrives as an update to the existing assistant message, and that path rebuilt the model lane from the UI lane, at the start of the continuation and again when its response was committed. A chat that had been summarised to fit the context window was sent the whole transcript on the next call. The replaced message's run of model messages is now swapped in place, with a fallback to the old reconversion if the lane's tail does not match what that message contributed. Verification Each of the four has a test that fails without it, and each was run end to end against a deployed agent twice, once with the fix present and once with only that fix reverted, so the tests are known to fail in its absence rather than merely to pass in its presence. A 46-scenario sweep of the surrounding chat surface came back clean. One later fix, recording only the steering messages a drain actually claimed, has unit coverage only: reproducing it needs a second consumer taking a record while shouldInject() awaits, which the deployed harness cannot produce. The steering fix closes both halves: the durability one, and the model-context one that #4795 left behind as an expected-fail test. That test is now a passing test, verified red first (turn 2's user prompts came back without the steer). The model-context fix, the createSession fix, the compaction interaction on both surfaces, and the failed-turn path were each run end to end against a deployed agent in both directions, with a runId guard confirming the later turns belonged to the same live run. One bundle carried the compaction regression on the createSession surface only: on it the compaction leg failed and the no-compaction steering leg passed, which is a direct demonstration that the earlier steering coverage was blind to the compaction interaction. The second review round's fixes (failed action, prepared steer form, failed-turn reconciliation) were run the same way, deployed in both directions. The snapshot-cursor fix has unit coverage only: the value is decided in-process before the upload. The third round (the steer in newMessages, and once after a history edit) was run deployed in both directions too; the duplicate count under the reverted build doubles as proof the history-edit rebuild path ran. The fourth round (a prepared steer through a history edit, with and without compaction, and in a failed turn's delta) was run deployed in both directions; the history-edit case was proven against two different reverts, since removing one half of the old code produces a duplicate and removing both makes the steer vanish. The fifth round (the tool-approval continuation) was run deployed in both directions too; the approval case was proven against each replace site separately, with a following-turn assertion that catches the response-commit site, which the continuation's own prompt cannot see. The action-to-turn path and the useChat routing were run deployed in both directions: a regenerate action renders its new answer through useChat at the timing that broke the old path, and reverting either the fall-through into the turn or the transport's body.action routing makes it fail. The action-reply legs from the earlier rounds are retired with the feature they tested. An action that lands while a turn is still streaming is still spliced into that turn's request stream (a pre-existing client race, not addressed here). The docs for the action model live on #4884, since those pages also carry that branch's changes.

Open Graph Description: Summary A steering message sent while the agent was answering onTurnComplete: async ({ newUIMessages }) => { await db.saveMessages(newUIMessages); }, Before: the steer reached the model for th...

X Description: Summary A steering message sent while the agent was answering onTurnComplete: async ({ newUIMessages }) => { await db.saveMessages(newUIMessages); }, Before: the steer reached the model fo...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4816

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0d3babed-0b41-16d6-8355-3d468faa4c6a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE78A:2EB5D6:8357BF:C1AAFD:6AFAFB79
html-safe-nonce7bd9075f90a09816c44331490d5e8f6b35f79eedcf088bb0284456e11f8fc17a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzhBOjJFQjVENjo4MzU3QkY6QzFBQUZEOjZBRkFGQjc5IiwidmlzaXRvcl9pZCI6IjY0Mjg5MjU1NjU0OTg3NTE4NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac01d8b404403bf7e9ef4dccf45debf643e15a900e734719c2813fd9de1cc2d964
hovercard-subject-tagpull_request:4385147786
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4816/files
twitter:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/534?s=400&v=4
og:image:altSummary A steering message sent while the agent was answering onTurnComplete: async ({ newUIMessages }) => { await db.saveMessages(newUIMessages); }, Before: the steer reached the model for th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54f7a6886649661c85eee945cca0773566bfb4065370e0429b7c8f7204184650
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf8450eb633ec589502c42ff6f4072e40db65da3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4816%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4816%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
fix/chat-agent-accumulatorhttps://github.com/triggerdotdev/trigger.dev/tree/fix/chat-agent-accumulator
Conversation 99 https://github.com/triggerdotdev/trigger.dev/pull/4816
Commits 37 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits
Checks 67 https://github.com/triggerdotdev/trigger.dev/pull/4816/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4816/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
fix(chat): keep steering, action and injected messages in the conversation https://github.com/triggerdotdev/trigger.dev/pull/4816/files#top
Show all changes 37 commits https://github.com/triggerdotdev/trigger.dev/pull/4816/files
c6c35d5 test: cover the head-start accumulator seed without hydrateMessages ericallam Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/c6c35d59a7608bf0f4d3a982e688080b0a7eb3a8
5fef13f fix(chat): put injected steering messages into the accumulator ericallam Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/5fef13fc1f9bfe9d28eaa13f59438aa3fe78929b
4b0f52a fix(chat): persist history an action rolled back ericallam Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/4b0f52a3114a97157f4b1503ff1e940360087c0f
e399b60 fix(chat): make a response streamed from onAction part of the convers… ericallam Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/e399b60e123237043e1e72c1c98ca08c2026973b
52bd98d fix(chat): route a system-role injection to the instructions lane ericallam Aug 20, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/52bd98d342b303fcc0ea0e56eff00371c10eab51
47f2f8f fix(chat): address review on the accumulator, instructions and action… ericallam Aug 28, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/47f2f8f2322aa9267d14596b5003f8ec58c4bb69
52772b5 fix(chat): report a failed action stream instead of committing it as … ericallam Aug 28, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/52772b5ea5f0014bda7ea2caabff14faf5d434b4
c6b0dbd docs(chat): note the instructions delivery path and one-shot injectio… ericallam Aug 29, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/c6b0dbd0f4e2231c6bcdbb56d9cbb050934686d8
e3318cf docs(ai-chat): say what an action persists under each persistence model ericallam Aug 29, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/e3318cf4fa286e4b0abe89908e67bc711c23526b
02e0a70 docs(ai-chat): delete the replaced answer in the regenerate example ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/02e0a70dca5e083a5abad6c97dd0f5736707da89
e6618cf docs(ai-chat): style-guide pass on the injection and action sections ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/e6618cfa06efe4d7ef1023c40149f50e83facf31
1f7fb5e docs(ai-chat): drop em dashes from the docs and changesets ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/1f7fb5e21e2a21a500047343320f8287ab28d007
3246d12 docs(ai-chat): drop the remaining em dashes from the actions and inje… ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/3246d12efdc1ae645e284ac20f03ac1500028489
86d67fa docs(chat): warn about the two upgrade hazards in the changesets ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/86d67fa4c1e27ae0a77d5efed8d8ddf2d0ad281c
e2737f6 fix(chat): consume injected instructions per turn, not per options build ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/e2737f6cf69a39e2015e9fc9f53c66305357b6a5
692c060 fix(chat): keep an injection made during the turn that consumed the lane ericallam Sep 3, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/692c060bdbaf23af705609c520030c6f640a5d5f
900418d fix(chat): rebuild the model messages after a steering injection ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/900418d92b766c002421df3cd3f0a8fdc4e8348b
83fe5ef test(chat): cover the model-lane rebuild on a turn that captures no r… ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/83fe5ef97af99cb1852ec322df14277b8fb60452
6683e4b fix(chat): keep a steer in the lanes on the createSession surface ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/6683e4b19cdce3ee6c2b06a06f90491aa0b59f7b
bf82221 fix(chat): append a steer to the model lane instead of rebuilding it ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/bf822210fcc3a02a5232f3423d13eedcf2a70e57
dd06745 fix(chat): report a drained steer from a turn that fails ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/dd067456458a6bf2150912d7e056f0fff60890f7
a0a07bb test(chat): pin a one-shot instruction across an action ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/a0a07bb36cd7cc3e2dce27f73750cfb1a706acad
c9fe897 test(chat): use the spread form in the action-instruction test ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/c9fe897f0776d68ec2f18a57051e3c5796da6d00
4f535ac fix(chat): keep a steer's prepared form for later turns ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/4f535ac0f14e048502b231ecdd8777d77a8fb002
39ea541 fix(chat): reconcile a steer into the model lane when the turn fails ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/39ea54191ad056c77fe6972dd874a990d4bc6e5a
920c76d fix(chat): keep a failed action from counting as a turn ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/920c76db90daef9a6a794d150fa3fdf8ca024101
e348d61 fix(chat): move the snapshot cursor on a failed turn ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/e348d615207dd2a62dc45d8772ce20ff730d5914
0ef1caa docs(chat): cover the second review round in the changesets ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/0ef1caa9aa99d351b2ae8ae783d0729cb067612b
ae72c70 fix(chat): report a steer in the turn delta, and once after a history… ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/ae72c70687d40cac3658762f7e8c9c73884afcf7
62fd77c fix(chat): keep a prepared steer through a history edit and a failed … ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/62fd77c05cfe002b8b1bdf71a5f01d6cc31b50df
6482650 fix(chat): deliver plain onAction replies, and keep compaction throug… ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/6482650315530df6b63f7c6a5420f8561f4350a0
472eaf4 fix(chat): keep an instruction injected after an action for the next … ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/472eaf494440d5c5f0979ca84f587d203c870070
023432d feat(chat): send actions through useChat so their turns render ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/023432dfd9912ea344d82d490bd555fa0d4d4bff
d332a2a feat(chat): let an action become a turn with chat.turn() ericallam Sep 4, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/d332a2adc3a072509f28d3ea8e9d021772f53c63
0cf59a2 fix(chat): persist an action's edit before its turn, and label that turn ericallam Sep 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/0cf59a22ab4049f751a63dcf1ebb8dd9242af0f7
8d5d466 fix(chat): merge an action's metadata over the transport's clientData ericallam Sep 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/8d5d46644d71acd9c9cdf34b318d39fb05756f5c
ee8f449 docs(chat): correct three changesets after the chat.turn() redesign ericallam Sep 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4816/commits/ee8f449c5695968277c5c570799ddfaf422892f7
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4816/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
action-stream-into-conversation.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-32c27af5f29aa438d87dd98afd3f6e89f1fa4c325866f81c122bae1bc75ff410
createsession-steering-lanes.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-f7faebde36f6bc125ca5dfd5237a0402fb5be348e3703efa1b24823b95b40af7
inject-instructions-shape.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-47af475880827f353d9308587decf6fedeaf0b5a6cb4d1e205e485237438b5dd
inject-system-to-instructions.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-e4fa311ba2aba77505afaa41a2df8f5bf04cac77a24ac6c58dd16b13eeed9fe7
persist-action-history-mutations.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-28282756ca7123c4d613271ccea014d807ae13ad1ddc5e2e7c717a5ba418c6ec
steering-messages-accumulator.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-7b1d864b004ebb5780f1a1b45046bff818d089a18d193050a0669283ecae4fdf
use-chat-actions.md https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-9d85616124e273e371a7e65a43850623a1dc79fc3c6a884f592932149d6760a7
actions.mdx https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
background-injection.mdx https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c8ff055075af927f79f721e3bfbb2a6d4b23e56dd55a62a5fd3fbed3410c48f1
frontend.mdx https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-0ca382a5d50361ead811d9e36ac14fe4767f49ee2e751b45b77cb45712902e87
testing.mdx https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-193042b9e11240ee8055e218e929250c8ab9bcf241f1537c5fa0da539a2bf9e2
ai.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
chat-react.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-bd66505962858e47bbc1ab2ae3b1422b22cd1365d0ff53a87e201b3c8d661372
chat.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-8a256830aa33eacdad4d7a46d7ef31368424eccb570236cc5b08f7e0a7876738
chat.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
mock-chat-agent.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-d5b3e51c31466b619dfd277ca1526277dad3ff6d73a80fc63761c5d126afb73c
accumulator-steering-compaction.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-0749ffeb36640517697b9017856d9dcbd6b7c1f11670ae85175ee64f87fab36a
action-snapshot-cursor.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-22579e92aca41623390dc7b737648a67eb51f34e34446b7ed5e836cf32645a88
action-snapshot.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-3fd48fc368199b483c5f6f866b71558042e3c6e73721ab056a749072f84c9508
action-stream-accumulator.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c26520760e12cb8db16599fd62b700e7ed9a16460ed37a454db2f47bc8bbc5f3
action-turn.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-f7d4f8117367289b2cd02f65a7d9c085763c694ffc95ec65f08d398f606663b3
chatHandover.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-ff1841c9aee3b33e838af89993f46858e1a1d10f9e45ac473196a7d69e232d11
createsession-steering-lanes.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-4cfc0f5ecff05a4c2b276e0f7c16af4d67cdf3aa1b7464de0f319aab53aa87a7
error-snapshot-cursor.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-aa4d6c905af0deb08422976cbb979e29c95eb77e6d14cd4ba6f5f07a279c2d07
hitl-uncompacts.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-ff792eb63736314560975b6202c106f0e3252c9a54d5bb29f9b136af2b5f2ce3
inject-system-instructions.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-6d59dc14c909853a6f59858bc85ca8cc115229aa6f64916eaa2a2c25b3bac3bf
instructions-action-replay.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-95fdac759fe490de1c3460237014e6f7916c1f0e28fd5c47419e1c62bbed3b6f
mockChatAgent.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-57bae465d6d60ad1ba7ad0a3d65dbd8febd0b8ad573c71def72beff99a0f6687
steering-accumulator.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-2323fec784896795b56a2f697837d25128dac3ea5ab3bc5daf6f08e2b3c781d2
steering-compaction-lanes.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-1620e2676f8a4ea24368afbf560c910576382906a55914a5ed7c8167cb16ab9b
steering-error-path.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-f8844330d460333ddaa6421e708cd05058384efc7e2491b7a8929ded6f72f048
steering-history-edit-once.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-e812ab15ed64d2d6fca502082b9c7ff7be35bd9b6110935cad12b232255065e8
steering-injection.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-4b24e7b007a38b17160e7a37f6091bae85e6545c69e4eea013069f99fd72463d
steering-prepare-transform.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-f1f5bbabb07e1929b4c701222361dd7d379c88b30ca4d0200149f9713745c6ea
.changeset/action-stream-into-conversation.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-32c27af5f29aa438d87dd98afd3f6e89f1fa4c325866f81c122bae1bc75ff410
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/action-stream-into-conversation.md
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/createsession-steering-lanes.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-f7faebde36f6bc125ca5dfd5237a0402fb5be348e3703efa1b24823b95b40af7
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/createsession-steering-lanes.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/inject-instructions-shape.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-47af475880827f353d9308587decf6fedeaf0b5a6cb4d1e205e485237438b5dd
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/inject-instructions-shape.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/inject-system-to-instructions.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-e4fa311ba2aba77505afaa41a2df8f5bf04cac77a24ac6c58dd16b13eeed9fe7
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/inject-system-to-instructions.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/persist-action-history-mutations.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-28282756ca7123c4d613271ccea014d807ae13ad1ddc5e2e7c717a5ba418c6ec
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/persist-action-history-mutations.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/steering-messages-accumulator.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-7b1d864b004ebb5780f1a1b45046bff818d089a18d193050a0669283ecae4fdf
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/steering-messages-accumulator.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
.changeset/use-chat-actions.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-9d85616124e273e371a7e65a43850623a1dc79fc3c6a884f592932149d6760a7
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/.changeset/use-chat-actions.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
docs/ai-chat/actions.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
View file https://github.com/triggerdotdev/trigger.dev/blob/ee8f449c5695968277c5c570799ddfaf422892f7/docs/ai-chat/actions.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4816/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
https://github.com/triggerdotdev/trigger.dev/pull/4816/files#diff-c6ec66f06c7e04b6b86490a24f651f07c35e1b2a50e52f0902ed20f14aa07dad
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4816/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.