| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:699dcf60-0ab1-8a07-9de5-3777f31a5cd6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E80A:1F5D:EDF36E:15A2D46:6AFAF304 |
| html-safe-nonce | ceda5b755e866fe7d9ba6238fbb6cd6c5bf820953529dca5e7fd6868b39eeebc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODBBOjFGNUQ6RURGMzZFOjE1QTJENDY6NkFGQUYzMDQiLCJ2aXNpdG9yX2lkIjoiNzA4MDQ5Nzc3MTAyNjUxMDU5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 50e434401e7b2ef56214974775464e9c4888d77bd9fa8b5b8c668a9916463996 |
| hovercard-subject-tag | pull_request:4090252463 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| twitter:image | https://avatars.githubusercontent.com/u/10635986?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10635986?s=400&v=4 |
| og:image:alt | Summary
Two ergonomic additions for custom chat-agent loops that own the turn loop (chat.customAgent, chat.createSession, and the hand-rolled primitives).
chat.writeTurnComplete() now resolves to {... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a85e96a83bed7871993e6b1ffda24105928eee17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4304%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4304%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Reload | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| triggerdotdev | https://github.com/triggerdotdev |
| trigger.dev | https://github.com/triggerdotdev/trigger.dev |
| Code | https://github.com/triggerdotdev/trigger.dev |
| Issues203 (203) | https://github.com/triggerdotdev/trigger.dev/issues |
| Pull requests67 (67) | https://github.com/triggerdotdev/trigger.dev/pulls |
| Discussions | https://github.com/triggerdotdev/trigger.dev/discussions |
| Actions | https://github.com/triggerdotdev/trigger.dev/actions |
| Projects | https://github.com/triggerdotdev/trigger.dev/projects |
| Security and quality39 (39) | https://github.com/triggerdotdev/trigger.dev/security |
| Insights | https://github.com/triggerdotdev/trigger.dev/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose |
| matt-aitken | https://github.com/matt-aitken |
| main | https://github.com/triggerdotdev/trigger.dev/tree/main |
| feat/sdk-chat-turn-complete-and-capture | https://github.com/triggerdotdev/trigger.dev/tree/feat/sdk-chat-turn-complete-and-capture |
|
Conversation
18
| https://github.com/triggerdotdev/trigger.dev/pull/4304 |
|
Commits
3
| https://github.com/triggerdotdev/trigger.dev/pull/4304/commits |
|
Checks
58
| https://github.com/triggerdotdev/trigger.dev/pull/4304/checks |
|
Files changed
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
|
feat(sdk): return lastEventId from writeTurnComplete and typed capture result
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#top |
|
Show all changes
3 commits
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
|
335c087
feat(sdk): return lastEventId from writeTurnComplete and typed captur…
matt-aitken Jul 20, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4304/commits/335c08742590a0fa31fd246698a428cd0c62c605 |
|
a83bfbd
test(sdk): cover pipeAndCapture status/partial-capture and writeTurnC…
matt-aitken Jul 20, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4304/commits/a83bfbd941509e103a369d47fa640cfb7219dab9 |
|
a6d0ddb
fix(sdk): preserve partial on hard-error, return sessionInEventId, ha…
matt-aitken Jul 21, 2026
| https://github.com/triggerdotdev/trigger.dev/pull/4304/commits/a6d0ddbe59c24769e8068c09d1eed2567cff903a |
|
Clear filters
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
|
chat-custom-agent-capture.md
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-99aba57846bc8c81f25a6e06ef117af9a968902746a0e2214305dc0b9c0dbb11 |
|
changelog.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-a9d88d1cce91d9f879391c4736b619d4c211cc00c0a1cfd5c7db7e4119725132 |
|
compaction.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-6b560d73c160d780e8e7d8a5e0e40e7037cac8c5130caf1c83c87045c52dd235 |
|
custom-agents.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
fast-starts.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-08c505bdbdd4d7c4e8227461df62a19bcf73ffee36f392fbed504190c435c6f7 |
|
pending-messages.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-8221029e3926d4ab845c60011262851aa8c6f10af9790210471963d1cc4c3bec |
|
reference.mdx
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-58e648685c48d39e8d19f714ccdb9a6eca84024f3490b656f62a0ff535a22f3d |
|
ai.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a |
|
test-session-handle.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-4a1d5a2e027987bf49c6900bfcb998aa70db61b3bdd364306c06f3b7302c099a |
|
chat-pipe-and-capture.test.ts
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-d3a3169d1ffa588a80317867d0d496e9c19517babfa25941c17763ef34f411ad |
| .changeset/chat-custom-agent-capture.md | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-99aba57846bc8c81f25a6e06ef117af9a968902746a0e2214305dc0b9c0dbb11 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/.changeset/chat-custom-agent-capture.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| docs/ai-chat/changelog.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-a9d88d1cce91d9f879391c4736b619d4c211cc00c0a1cfd5c7db7e4119725132 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/changelog.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-a9d88d1cce91d9f879391c4736b619d4c211cc00c0a1cfd5c7db7e4119725132 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-a9d88d1cce91d9f879391c4736b619d4c211cc00c0a1cfd5c7db7e4119725132 |
| docs/ai-chat/compaction.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-6b560d73c160d780e8e7d8a5e0e40e7037cac8c5130caf1c83c87045c52dd235 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/compaction.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-6b560d73c160d780e8e7d8a5e0e40e7037cac8c5130caf1c83c87045c52dd235 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-6b560d73c160d780e8e7d8a5e0e40e7037cac8c5130caf1c83c87045c52dd235 |
| docs/ai-chat/custom-agents.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/custom-agents.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-aa22c9fedc21c400cd9c3eba314803d27850039367de1469b442a2bba7c96650 |
| docs/ai-chat/fast-starts.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-08c505bdbdd4d7c4e8227461df62a19bcf73ffee36f392fbed504190c435c6f7 |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/fast-starts.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-08c505bdbdd4d7c4e8227461df62a19bcf73ffee36f392fbed504190c435c6f7 |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-08c505bdbdd4d7c4e8227461df62a19bcf73ffee36f392fbed504190c435c6f7 |
| docs/ai-chat/pending-messages.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-8221029e3926d4ab845c60011262851aa8c6f10af9790210471963d1cc4c3bec |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/pending-messages.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-8221029e3926d4ab845c60011262851aa8c6f10af9790210471963d1cc4c3bec |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-8221029e3926d4ab845c60011262851aa8c6f10af9790210471963d1cc4c3bec |
| docs/ai-chat/reference.mdx | https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-58e648685c48d39e8d19f714ccdb9a6eca84024f3490b656f62a0ff535a22f3d |
|
View file
| https://github.com/triggerdotdev/trigger.dev/blob/a6d0ddbe59c24769e8068c09d1eed2567cff903a/docs/ai-chat/reference.mdx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/triggerdotdev/trigger.dev/pull/4304/{{ revealButtonHref }} |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-58e648685c48d39e8d19f714ccdb9a6eca84024f3490b656f62a0ff535a22f3d |
|
| https://github.com/triggerdotdev/trigger.dev/pull/4304/files#diff-58e648685c48d39e8d19f714ccdb9a6eca84024f3490b656f62a0ff535a22f3d |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
| Please reload this page | https://github.com/triggerdotdev/trigger.dev/pull/4304/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |