René's URL Explorer Experiment


Title: fix(sdk): preserve partial assistant message on chat stream failure by matt-aitken · Pull Request #4348 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(sdk): preserve partial assistant message on chat stream failure by matt-aitken · Pull Request #4348 · triggerdotdev/trigger.dev

X Title: fix(sdk): preserve partial assistant message on chat stream failure by matt-aitken · Pull Request #4348 · triggerdotdev/trigger.dev

Description: Trigger.dev – build and deploy durable AI agents and workflows - fix(sdk): preserve partial assistant message on chat stream failure by matt-aitken · Pull Request #4348 · triggerdotdev/trigger.dev

Open Graph Description: Summary When a chat.agent (or chat.createSession) turn's model stream fails mid-response (e.g. a transport timeout like UND_ERR_BODY_TIMEOUT), the assistant output that already streamed was dro...

X Description: Summary When a chat.agent (or chat.createSession) turn's model stream fails mid-response (e.g. a transport timeout like UND_ERR_BODY_TIMEOUT), the assistant output that already streamed was...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:f75dd829-31fc-6cfd-671b-bc7e3fdaf40b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93E8:2D6713:15C95:2014E:6AFB08D7
html-safe-nonce0f12d2ce659c8d678cf9abaed8efe6368298757e8f915b02dacf4fbc03ec5e94
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0U4OjJENjcxMzoxNUM5NToyMDE0RTo2QUZCMDhENyIsInZpc2l0b3JfaWQiOiI1MDU0NjM3MzQ5MDU3MjY3OTI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0ba79202908e4f7b99a69f016f7c668dfe7b1493c733ac367dc2e678a4be1525
hovercard-subject-tagpull_request:4117162773
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4348/commits
twitter:imagehttps://opengraph.githubassets.com/ea8743c04880b4098eac0901196b6d4a0943503f37aaab971777181d814d1cd4/triggerdotdev/trigger.dev/pull/4348
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea8743c04880b4098eac0901196b6d4a0943503f37aaab971777181d814d1cd4/triggerdotdev/trigger.dev/pull/4348
og:image:altSummary When a chat.agent (or chat.createSession) turn's model stream fails mid-response (e.g. a transport timeout like UND_ERR_BODY_TIMEOUT), the assistant output that already streamed was dro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematt-aitken
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4348%2Fcommits
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%2F4348%2Fcommits
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%2Fcommits&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits
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
https://github.com/triggerdotdev/trigger.dev
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
fix/chat-preserve-partial-on-stream-failurehttps://github.com/triggerdotdev/trigger.dev/tree/fix/chat-preserve-partial-on-stream-failure
Conversationhttps://github.com/triggerdotdev/trigger.dev/pull/4348
Commits14 (14)https://github.com/triggerdotdev/trigger.dev/pull/4348/commits
Checkshttps://github.com/triggerdotdev/trigger.dev/pull/4348/checks
Files changedhttps://github.com/triggerdotdev/trigger.dev/pull/4348/files
fix(sdk): preserve partial assistant message on chat stream failurehttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits#top
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
fix/chat-preserve-partial-on-stream-failurehttps://github.com/triggerdotdev/trigger.dev/tree/fix/chat-preserve-partial-on-stream-failure
fix(sdk): preserve partial assistant message on chat stream failurehttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/8152444cfd4264c0bf1259485d4f88f404b58ae0
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
8152444https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/8152444cfd4264c0bf1259485d4f88f404b58ae0
https://github.com/triggerdotdev/trigger.dev/tree/8152444cfd4264c0bf1259485d4f88f404b58ae0
fix(sdk): persist recovered partial to accumulator and snapshot on errorhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/dc63a6e6266e5e0bd1542d0b1e58de9199a3ef4c
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
dc63a6ehttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/dc63a6e6266e5e0bd1542d0b1e58de9199a3ef4c
https://github.com/triggerdotdev/trigger.dev/tree/dc63a6e6266e5e0bd1542d0b1e58de9199a3ef4c
fix(sdk): mirror success-path accumulation on chat.agent error pathhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/1fe685cf3145677ff2d7ea47761e84962dd1c177
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
1fe685chttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/1fe685cf3145677ff2d7ea47761e84962dd1c177
https://github.com/triggerdotdev/trigger.dev/tree/1fe685cf3145677ff2d7ea47761e84962dd1c177
fix(sdk): don't overwrite a committed response when a post-response step throwshttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/b6ea02fd6c69095af84882ce2d482d9035e28b40
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
b6ea02fhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/b6ea02fd6c69095af84882ce2d482d9035e28b40
https://github.com/triggerdotdev/trigger.dev/tree/b6ea02fd6c69095af84882ce2d482d9035e28b40
fix(sdk): include the recovered partial in the error event's newMessageshttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/a225c369ea8ed3ca67249dd8c4b25238c9eadd73
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
a225c36https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/a225c369ea8ed3ca67249dd8c4b25238c9eadd73
https://github.com/triggerdotdev/trigger.dev/tree/a225c369ea8ed3ca67249dd8c4b25238c9eadd73
fix(sdk): harden error-path partial recovery against fragment clobber and desynchttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/882364a4d8ab1a5b1063278b884a5facb2d9d0e1
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
882364ahttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/882364a4d8ab1a5b1063278b884a5facb2d9d0e1
https://github.com/triggerdotdev/trigger.dev/tree/882364a4d8ab1a5b1063278b884a5facb2d9d0e1
fix(sdk): preserve stream backpressure when tapping chat chunkshttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/ec33b975d77c6b3231d5addbb786f77ee9a0c329
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
ec33b97https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/ec33b975d77c6b3231d5addbb786f77ee9a0c329
https://github.com/triggerdotdev/trigger.dev/tree/ec33b975d77c6b3231d5addbb786f77ee9a0c329
fix(sdk): clean incomplete parts from the recovered error partialhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/6aeb2b95a656b25e577ce3c9c28a5ef9e1c2b933
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
6aeb2b9https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/6aeb2b95a656b25e577ce3c9c28a5ef9e1c2b933
https://github.com/triggerdotdev/trigger.dev/tree/6aeb2b95a656b25e577ce3c9c28a5ef9e1c2b933
perf(sdk): release the chat chunk buffer once the response is committedhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/ecfede634a535d9513ac637254e427ddf980f564
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
ecfede6https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/ecfede634a535d9513ac637254e427ddf980f564
https://github.com/triggerdotdev/trigger.dev/tree/ecfede634a535d9513ac637254e427ddf980f564
fix(sdk): preserve compaction and avoid double-persist on the error pathhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/19165076b01a46baaeff377c50d642cc1f897571
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
1916507https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/19165076b01a46baaeff377c50d642cc1f897571
https://github.com/triggerdotdev/trigger.dev/tree/19165076b01a46baaeff377c50d642cc1f897571
fix(sdk): include the errored user message in the error event's newMessageshttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/b5c37ee72749b9b66ba2b3cea4733dc96a05e45b
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
b5c37eehttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/b5c37ee72749b9b66ba2b3cea4733dc96a05e45b
https://github.com/triggerdotdev/trigger.dev/tree/b5c37ee72749b9b66ba2b3cea4733dc96a05e45b
fix(sdk): fold queued response data parts into the managed error partialhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/aaa51a37e9a011c8b1909a1ddcee82cfd5bb084d
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
aaa51a3https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/aaa51a37e9a011c8b1909a1ddcee82cfd5bb084d
https://github.com/triggerdotdev/trigger.dev/tree/aaa51a37e9a011c8b1909a1ddcee82cfd5bb084d
fix(sdk): satisfy the package build's stricter null-narrowing on the error partialhttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/0316b05fe3c5aa57e7edeaf8e0215b103c09145b
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
0316b05https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/0316b05fe3c5aa57e7edeaf8e0215b103c09145b
https://github.com/triggerdotdev/trigger.dev/tree/0316b05fe3c5aa57e7edeaf8e0215b103c09145b
chore(sdk): strip explanatory comments and trim the changesethttps://github.com/triggerdotdev/trigger.dev/pull/4348/commits/65fc6d2e361f5b452430e61830a1da514265c35c
https://github.com/matt-aitken
matt-aitkenhttps://github.com/triggerdotdev/trigger.dev/commits?author=matt-aitken
65fc6d2https://github.com/triggerdotdev/trigger.dev/pull/4348/commits/65fc6d2e361f5b452430e61830a1da514265c35c
https://github.com/triggerdotdev/trigger.dev/tree/65fc6d2e361f5b452430e61830a1da514265c35c
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.