René's URL Explorer Experiment


Title: feat(sdk): route chat.agent transcript persistence through a TranscriptStorage seam by ericallam · Pull Request #4893 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(sdk): route chat.agent transcript persistence through a TranscriptStorage seam by ericallam · Pull Request #4893 · triggerdotdev/trigger.dev

X Title: feat(sdk): route chat.agent transcript persistence through a TranscriptStorage seam by ericallam · Pull Request #4893 · triggerdotdev/trigger.dev

Description: Summary Introduces the TranscriptStorage seam inside chat.agent and makes the built-in snapshot writer its default implementation. No public option yet; the default path behaves as before, apart from the blob now being written as version 2. Design A storage has load (called once when a run boots to continue a conversation) and save (called after every turn, failed turn and history-changing action). save receives a changeset of id-addressed operations: put (upsert by message id), remove, truncateAfter and state, plus the stream cursors the next boot resumes from. The runtime keeps a shadow of the transcript it last handed to save (ids in order plus a fingerprint per message) and diffs the accumulator against it. A changed message in the common prefix is an in-place put; anything past the prefix is one truncateAfter on the last common id followed by puts in order. Applying the result reproduces the accumulator exactly for any edit, and the common cases come out as the natural operations: a turn is two puts, an undo is one truncateAfter, a regenerate is a truncateAfter and a put. The shadow only advances when save resolves, so a failed save is folded into the next changeset; every operation is idempotent, so a retried changeset converges. Every changeset also carries the whole transcript as it stands after the changes (entries with a final flag, plus the runtime's state). A row-per-message store applies the changes; a store that keeps the conversation as one document writes the transcript as-is and needs no state of its own between saves. The default storage is the second kind: it serialises the transcript and rewrites the blob, so a turn still costs one PUT and no GET, and nothing is held in memory between saves. The snapshot read and write helpers move to their own module so the storage can import them without a cycle; the test seams keep their import path.

Open Graph Description: Summary Introduces the TranscriptStorage seam inside chat.agent and makes the built-in snapshot writer its default implementation. No public option yet; the default path behaves as before, apart fr...

X Description: Summary Introduces the TranscriptStorage seam inside chat.agent and makes the built-in snapshot writer its default implementation. No public option yet; the default path behaves as before, apart fr...

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

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:e919c5dd-f897-5c61-b3d2-df8d11fa356a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBFD6:2C8A8F:749887:AC8807:6AFAF68C
html-safe-nonce5db7f8695da7251ba762b8ea5fd8c1598232c400552382e029eabee32301a182
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkQ2OjJDOEE4Rjo3NDk4ODc6QUM4ODA3OjZBRkFGNjhDIiwidmlzaXRvcl9pZCI6IjY0MzA4NTc1NzkyMjc0NDQ4NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf2b4500685319eb3009ae1ece522185bc48927340864dcc1dea8e5ab9fbb9993
hovercard-subject-tagpull_request:4452494769
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/4893/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 Introduces the TranscriptStorage seam inside chat.agent and makes the built-in snapshot writer its default implementation. No public option yet; the default path behaves as before, apart fr...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
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
releasea85e96a83bed7871993e6b1ffda24105928eee17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4893/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4893%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%2F4893%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/4893/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4893/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4893/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
feat/transcript-snapshot-v2-tri-13667https://github.com/triggerdotdev/trigger.dev/tree/feat/transcript-snapshot-v2-tri-13667
feat/transcript-storage-seam-tri-13667https://github.com/triggerdotdev/trigger.dev/tree/feat/transcript-storage-seam-tri-13667
Conversation 69 https://github.com/triggerdotdev/trigger.dev/pull/4893
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/4893/commits
Checks 66 https://github.com/triggerdotdev/trigger.dev/pull/4893/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4893/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4893/files
feat(sdk): route chat.agent transcript persistence through a TranscriptStorage seam https://github.com/triggerdotdev/trigger.dev/pull/4893/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/4893/files
a075eb1 feat(sdk): route chat.agent transcript persistence through a Transcri… ericallam Sep 5, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4893/commits/a075eb1787e5daf95d11effcc3c0ff693500757a
f03adfb fix(sdk,core): keep continuation-boot recovery green under the monoto… ericallam Sep 8, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4893/commits/f03adfb4e289978ce2f0f7d830065edbc182df86
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4893/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4893/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4893/files
chat-snapshot-integration.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b6a9339e008700168189d5621b6f41661d7dfcde4b3a48d008e7730699ad983a
replay-after-crash.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
chatSnapshot.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
test-session-stream-manager.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-599d0e2e3bfc12718243dfe52f2b6cf01bef1c3c8152dc8d54bc46133a50574b
ai.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
chatSnapshotIo.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-88827d8bf4a899766f6c32224ccdb12d48f0e82484f34a7e3da15a6470de58c3
mock-chat-agent.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-d5b3e51c31466b619dfd277ca1526277dad3ff6d73a80fc63761c5d126afb73c
transcriptStorage.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-2c8179068133cca136cddeddb9d2be840ecea0c45ab97d2758d6d5aec7a6fa20
action-snapshot.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-3fd48fc368199b483c5f6f866b71558042e3c6e73721ab056a749072f84c9508
action-stream-accumulator.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-c26520760e12cb8db16599fd62b700e7ed9a16460ed37a454db2f47bc8bbc5f3
action-turn.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-f7d4f8117367289b2cd02f65a7d9c085763c694ffc95ec65f08d398f606663b3
chat-snapshot.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-713de8576efebc6ef7811572ac958f959d560661a4afe7d33caf569fc2885d40
mockChatAgent.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-57bae465d6d60ad1ba7ad0a3d65dbd8febd0b8ad573c71def72beff99a0f6687
transcript-storage.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-2e3388d804c0ecd6694cb9666aa0af1700b171a2770248f8f283ec5b0bc36870
apps/webapp/test/chat-snapshot-integration.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b6a9339e008700168189d5621b6f41661d7dfcde4b3a48d008e7730699ad983a
View file https://github.com/triggerdotdev/trigger.dev/blob/f03adfb4e289978ce2f0f7d830065edbc182df86/apps/webapp/test/chat-snapshot-integration.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4893/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b6a9339e008700168189d5621b6f41661d7dfcde4b3a48d008e7730699ad983a
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b6a9339e008700168189d5621b6f41661d7dfcde4b3a48d008e7730699ad983a
apps/webapp/test/replay-after-crash.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
View file https://github.com/triggerdotdev/trigger.dev/blob/f03adfb4e289978ce2f0f7d830065edbc182df86/apps/webapp/test/replay-after-crash.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4893/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-b4dbe60cec261b7bbedacae6c67122c563020d3c95e05d1a6612ed7806d02259
packages/core/src/v3/sessionStreams/chatSnapshot.tshttps://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
View file https://github.com/triggerdotdev/trigger.dev/blob/f03adfb4e289978ce2f0f7d830065edbc182df86/packages/core/src/v3/sessionStreams/chatSnapshot.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4893/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-8208d71e468f9fab9c888724cc4cf34613b29cf0293b6a76fa0f4ba39b10bb63
packages/core/src/v3/test/test-session-stream-manager.tshttps://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-599d0e2e3bfc12718243dfe52f2b6cf01bef1c3c8152dc8d54bc46133a50574b
View file https://github.com/triggerdotdev/trigger.dev/blob/f03adfb4e289978ce2f0f7d830065edbc182df86/packages/core/src/v3/test/test-session-stream-manager.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4893/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-599d0e2e3bfc12718243dfe52f2b6cf01bef1c3c8152dc8d54bc46133a50574b
https://github.com/triggerdotdev/trigger.dev/pull/4893/files#diff-599d0e2e3bfc12718243dfe52f2b6cf01bef1c3c8152dc8d54bc46133a50574b
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4893/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4893/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.