René's URL Explorer Experiment


Title: fix(sdk): reset skipToTurnComplete when a new chat turn starts by wuweiweiwu · Pull Request #4744 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(sdk): reset skipToTurnComplete when a new chat turn starts by wuweiweiwu · Pull Request #4744 · triggerdotdev/trigger.dev

X Title: fix(sdk): reset skipToTurnComplete when a new chat turn starts by wuweiweiwu · Pull Request #4744 · triggerdotdev/trigger.dev

Description: ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Reproduced with useTriggerChatTransport + useChat and the stop pattern from the ai-chat frontend docs: Send a message so a turn is streaming. Call transport.stopGeneration(chatId), then useChat's stop(). Send another message. Before this change the second turn never renders: no parts arrive, status stays streaming, and the session stays isStreaming: true, so a stop button stays on screen until the page is reloaded. The run itself is fine and everything persists, so a reload shows the full response. Cause: stopGeneration sets state.skipToTurnComplete = true, and the read loop only clears that when it sees a TURN_COMPLETE record. The abort closes the reader before that record arrives, so the flag survives into the next turn and every record of that turn is skipped, including its own TURN_COMPLETE. After this change the same sequence streams the second turn normally. Verified against 4.5.11 and 4.5.12 (both affected) with the equivalent patch applied to the built SDK. Changelog Reset skipToTurnComplete when a new chat turn or action is sent, so a message sent after stopGeneration streams normally instead of leaving the chat stuck in a streaming state.

Open Graph Description: ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Reproduced with useTriggerChatTransport + useChat...

X Description: ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Reproduced with useTriggerChatTransport + useChat...

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

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:4852a5b8-753c-6243-6339-b63045d922c2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA6F0:1C7E4:366A753:4D258BB:6AFB05BC
html-safe-nonceaef4b27acbff25bbc01d9f939afa89b6ff45cc0ca0ef3a9a4371ede8b4138855
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkYwOjFDN0U0OjM2NkE3NTM6NEQyNThCQjo2QUZCMDVCQyIsInZpc2l0b3JfaWQiOiIzOTQyNzQ1NTg1NDI0NzI5NTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5d08ff2344b5f9a335d84ae3663a1c59f96cbb0416b1f257e457b5c77461cacf
hovercard-subject-tagpull_request:4328518620
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/4744/files
twitter:imagehttps://avatars.githubusercontent.com/u/35270620?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/35270620?s=400&v=4
og:image:alt✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Reproduced with useTriggerChatTransport + useChat...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
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
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4744/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4744%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%2F4744%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/4744/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4744/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
matt-aitkenhttps://github.com/matt-aitken
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
wuweiweiwu:fix/chat-skip-to-turn-complete-resethttps://github.com/wuweiweiwu/trigger.dev/tree/fix/chat-skip-to-turn-complete-reset
Conversation 17 https://github.com/triggerdotdev/trigger.dev/pull/4744
Commits 3 https://github.com/triggerdotdev/trigger.dev/pull/4744/commits
Checks 64 https://github.com/triggerdotdev/trigger.dev/pull/4744/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4744/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
fix(sdk): reset skipToTurnComplete when a new chat turn starts https://github.com/triggerdotdev/trigger.dev/pull/4744/files#top
Show all changes 3 commits https://github.com/triggerdotdev/trigger.dev/pull/4744/files
e4010e5 fix(sdk): reset skipToTurnComplete when a new chat turn starts devin-ai-integration[bot] Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4744/commits/e4010e5bd0c940854fee3de21cbed51d59d82374
ffa693e test: cover new turn after a stop without turn-complete wuweiweiwu Aug 21, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4744/commits/ffa693e457a555c6500ac7e455578cfae6e3cea8
0bc0f42 Merge branch 'main' into fix/chat-skip-to-turn-complete-reset nicktrn Aug 25, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4744/commits/0bc0f428600037ecc2a5f951f6639d4e67ad5e2e
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4744/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
fluffy-pans-argue.md https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-8e6241c6e70d770263e03606ebbb306f212f8bd7863997db122eae87b468c51a
chat.ts https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
chat-transport-events.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-e845612269862dcc918347582a7595361a24acad6f097325fc43eefa35e89508
.changeset/fluffy-pans-argue.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-8e6241c6e70d770263e03606ebbb306f212f8bd7863997db122eae87b468c51a
View file https://github.com/wuweiweiwu/trigger.dev/blob/0bc0f428600037ecc2a5f951f6639d4e67ad5e2e/.changeset/fluffy-pans-argue.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4744/{{ revealButtonHref }}
packages/trigger-sdk/src/v3/chat.tshttps://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
View file https://github.com/wuweiweiwu/trigger.dev/blob/0bc0f428600037ecc2a5f951f6639d4e67ad5e2e/packages/trigger-sdk/src/v3/chat.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4744/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-fcabf40729dcab619f789d289291c0187dcc76366e51bf53dfe5bb6225587420
packages/trigger-sdk/test/chat-transport-events.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-e845612269862dcc918347582a7595361a24acad6f097325fc43eefa35e89508
View file https://github.com/wuweiweiwu/trigger.dev/blob/0bc0f428600037ecc2a5f951f6639d4e67ad5e2e/packages/trigger-sdk/test/chat-transport-events.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4744/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-e845612269862dcc918347582a7595361a24acad6f097325fc43eefa35e89508
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4744/files
https://github.com/triggerdotdev/trigger.dev/pull/4744/files#diff-e845612269862dcc918347582a7595361a24acad6f097325fc43eefa35e89508
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.