René's URL Explorer Experiment


Title: feat(chat): custom agent mailbox helpers and session.in delivery fixes by gtremper · Pull Request #4644 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(chat): custom agent mailbox helpers and session.in delivery fixes by gtremper · Pull Request #4644 · triggerdotdev/trigger.dev

X Title: feat(chat): custom agent mailbox helpers and session.in delivery fixes by gtremper · Pull Request #4644 · triggerdotdev/trigger.dev

Description: Trigger.dev – build and deploy durable AI agents and workflows - feat(chat): custom agent mailbox helpers and session.in delivery fixes by gtremper · Pull Request #4644 · triggerdotdev/trigger.dev

Open Graph Description: Summary Adds chat.messages.hasPending() and chat.messages.next() so a custom agent loop can inspect pending chat input without consuming it and take one record at a time, and fixes four ways a chat...

X Description: Summary Adds chat.messages.hasPending() and chat.messages.next() so a custom agent loop can inspect pending chat input without consuming it and take one record at a time, and fixes four ways a chat...

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

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:da58b183-7e1c-cd81-f558-15493855ac6d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E5C:250215:7120F:A1AC7:6AFB0A75
html-safe-nonce3029e7402ec87e9ebe1bbf313c021faf6c1baeb0f884f49152e9c2c120b9e4b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTVDOjI1MDIxNTo3MTIwRjpBMUFDNzo2QUZCMEE3NSIsInZpc2l0b3JfaWQiOiI0MzkzMDUyODY2MDkyOTI3NjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac18e6efca5971fb5512f5ee3c1ef194d2ecc22f2a5510c9c6296336b772abc1ff
hovercard-subject-tagpull_request:4292940637
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/4644/commits
twitter:imagehttps://opengraph.githubassets.com/1d85db445cdf9ac35b0a3229ff957bb28ec4461adcdf94b331d54c5d3b25a1ab/triggerdotdev/trigger.dev/pull/4644
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1d85db445cdf9ac35b0a3229ff957bb28ec4461adcdf94b331d54c5d3b25a1ab/triggerdotdev/trigger.dev/pull/4644
og:image:altSummary Adds chat.messages.hasPending() and chat.messages.next() so a custom agent loop can inspect pending chat input without consuming it and take one record at a time, and fixes four ways a chat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegtremper
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/4644/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4644%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%2F4644%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/4644/commits
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4644/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
ericallamhttps://github.com/ericallam
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
gtremper:graham/chat-mailbox-observabilityhttps://github.com/gtremper/trigger.dev/tree/graham/chat-mailbox-observability
Conversationhttps://github.com/triggerdotdev/trigger.dev/pull/4644
Commits23 (23)https://github.com/triggerdotdev/trigger.dev/pull/4644/commits
Checkshttps://github.com/triggerdotdev/trigger.dev/pull/4644/checks
Files changedhttps://github.com/triggerdotdev/trigger.dev/pull/4644/files
feat(chat): custom agent mailbox helpers and session.in delivery fixeshttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits#top
ericallamhttps://github.com/ericallam
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
gtremper:graham/chat-mailbox-observabilityhttps://github.com/gtremper/trigger.dev/tree/graham/chat-mailbox-observability
feat(chat): add custom agent mailbox helpershttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/843777fbd472114b3812733c64be9df1fc9d4568
https://github.com/gtremper
gtremperhttps://github.com/triggerdotdev/trigger.dev/commits?author=gtremper
843777fhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/843777fbd472114b3812733c64be9df1fc9d4568
https://github.com/triggerdotdev/trigger.dev/tree/843777fbd472114b3812733c64be9df1fc9d4568
fix(chat): fail loudly when record peeking is unsupportedhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/39b5c5706c06ecd188924033a9f5c41e20ad8b3d
https://github.com/gtremper
gtremperhttps://github.com/triggerdotdev/trigger.dev/commits?author=gtremper
39b5c57https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/39b5c5706c06ecd188924033a9f5c41e20ad8b3d
https://github.com/triggerdotdev/trigger.dev/tree/39b5c5706c06ecd188924033a9f5c41e20ad8b3d
fix(chat): keep mailbox cursor behind pending inputhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/6abc529a758762d3e29c1c12ad13e80155fd15b2
https://github.com/gtremper
gtremperhttps://github.com/triggerdotdev/trigger.dev/commits?author=gtremper
6abc529https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/6abc529a758762d3e29c1c12ad13e80155fd15b2
https://github.com/triggerdotdev/trigger.dev/tree/6abc529a758762d3e29c1c12ad13e80155fd15b2
fix(chat): preserve mailbox cursor across waitpointshttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/b334ab267e3d3ab87a3a1a4bc2d14ad781da1dea
https://github.com/gtremper
gtremperhttps://github.com/triggerdotdev/trigger.dev/commits?author=gtremper
b334ab2https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/b334ab267e3d3ab87a3a1a4bc2d14ad781da1dea
https://github.com/triggerdotdev/trigger.dev/tree/b334ab267e3d3ab87a3a1a4bc2d14ad781da1dea
docs(chat): clarify non-blocking mailbox readshttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/f4d18266306726fd4bcd6f22b6eea871f0176274
https://github.com/gtremper
gtremperhttps://github.com/triggerdotdev/trigger.dev/commits?author=gtremper
f4d1826https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/f4d18266306726fd4bcd6f22b6eea871f0176274
https://github.com/triggerdotdev/trigger.dev/tree/f4d18266306726fd4bcd6f22b6eea871f0176274
fix(chat,sdk): stop an unconsumed control record wedging the mailboxhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/7655a5cbccc99f77ec8f1b9ab206b05b40b7ee1b
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
7655a5chttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/7655a5cbccc99f77ec8f1b9ab206b05b40b7ee1b
https://github.com/triggerdotdev/trigger.dev/tree/7655a5cbccc99f77ec8f1b9ab206b05b40b7ee1b
Merge remote-tracking branch 'origin/main' into pr4644https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/89bcf85fdd41277af8a9e76541eb3bfb02541790
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
89bcf85https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/89bcf85fdd41277af8a9e76541eb3bfb02541790
https://github.com/triggerdotdev/trigger.dev/tree/89bcf85fdd41277af8a9e76541eb3bfb02541790
fix(chat,sdk): drop dead claim-kind docs and quiet the drain on known kindshttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/0eb932f77ee8d4c9004685ec8c4b4e4b4c8ab85a
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
0eb932fhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/0eb932f77ee8d4c9004685ec8c4b4e4b4c8ab85a
https://github.com/triggerdotdev/trigger.dev/tree/0eb932f77ee8d4c9004685ec8c4b4e4b4c8ab85a
refactor(chat,sdk): resume from the channel instead of the waitpoint payloadhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/e5c71237f35980c860982d6ac87224f72a504e73
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
e5c7123https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/e5c71237f35980c860982d6ac87224f72a504e73
https://github.com/triggerdotdev/trigger.dev/tree/e5c71237f35980c860982d6ac87224f72a504e73
fix(chat,sdk): hold the resume cursor only behind records that matterhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/90ec43e090b3e5435110cd9ba929bdef69ec924b
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
90ec43ehttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/90ec43e090b3e5435110cd9ba929bdef69ec924b
https://github.com/triggerdotdev/trigger.dev/tree/90ec43e090b3e5435110cd9ba929bdef69ec924b
fix(chat,sdk): release the handover claim on every surface's turn boundaryhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/839c046150a532fe9541a207ed2170461e94ee36
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
839c046https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/839c046150a532fe9541a207ed2170461e94ee36
https://github.com/triggerdotdev/trigger.dev/tree/839c046150a532fe9541a207ed2170461e94ee36
docs(chat): describe the resume cursor accurately in the changeset and API docshttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/0a1abe7612aa7bd32390ff097fdb357f0c3e08ab
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
0a1abe7https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/0a1abe7612aa7bd32390ff097fdb357f0c3e08ab
https://github.com/triggerdotdev/trigger.dev/tree/0a1abe7612aa7bd32390ff097fdb357f0c3e08ab
fix(chat,sdk): stop an already-applied control record being applied again on resumehttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/36c37d56053505af22c0aaa2ef62f7b313ec576a
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
36c37d5https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/36c37d56053505af22c0aaa2ef62f7b313ec576a
https://github.com/triggerdotdev/trigger.dev/tree/36c37d56053505af22c0aaa2ef62f7b313ec576a
feat(core): route session channel records by declared delivery disciplinehttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/c1f5ba8ffe7132714e05b9558b3ad608b7f586d5
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
c1f5ba8https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/c1f5ba8ffe7132714e05b9558b3ad608b7f586d5
https://github.com/triggerdotdev/trigger.dev/tree/c1f5ba8ffe7132714e05b9558b3ad608b7f586d5
refactor(chat,core): route session.in instead of tracking one cursor for every consumerhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/86672f39e81de73e169c419e90cbb609909780f8
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
86672f3https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/86672f39e81de73e169c419e90cbb609909780f8
https://github.com/triggerdotdev/trigger.dev/tree/86672f39e81de73e169c419e90cbb609909780f8
fix(chat,sdk): close the stale-stop gap for chats upgrading from an older SDKhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/027eaf9e8dc9864dfebff54d37794f5c8defef3d
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
027eaf9https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/027eaf9e8dc9864dfebff54d37794f5c8defef3d
https://github.com/triggerdotdev/trigger.dev/tree/027eaf9e8dc9864dfebff54d37794f5c8defef3d
docs(chat): describe the stop fix and the exact hasPending guarantee in the changesethttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/e6bd62307cdb27c3ea8b271179b6c05509b5f8c9
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
e6bd623https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/e6bd62307cdb27c3ea8b271179b6c05509b5f8c9
https://github.com/triggerdotdev/trigger.dev/tree/e6bd62307cdb27c3ea8b271179b6c05509b5f8c9
docs(chat): correct the mailbox docs and describe the stop guaranteehttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/dfed2bc6893d1df67b1ba2b9ade69dd788721529
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
dfed2bchttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/dfed2bc6893d1df67b1ba2b9ade69dd788721529
https://github.com/triggerdotdev/trigger.dev/tree/dfed2bc6893d1df67b1ba2b9ade69dd788721529
fix(chat,sdk): take the replay window from the channel, not just the turn boundaryhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/89b5eb1a3ad04147853488fa742c60a2c5d71220
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
89b5eb1https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/89b5eb1a3ad04147853488fa742c60a2c5d71220
https://github.com/triggerdotdev/trigger.dev/tree/89b5eb1a3ad04147853488fa742c60a2c5d71220
fix(chat,sdk): only treat channel records as replayed when the run is resuminghttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/4693292ade7a9baa1e3d97e013943a514b989d41
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
4693292https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/4693292ade7a9baa1e3d97e013943a514b989d41
https://github.com/triggerdotdev/trigger.dev/tree/4693292ade7a9baa1e3d97e013943a514b989d41
fix(chat,sdk): attach the input router per run, not per chathttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/471d17d812a8c795aaffa85a45833c7fad768c28
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
471d17dhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/471d17d812a8c795aaffa85a45833c7fad768c28
https://github.com/triggerdotdev/trigger.dev/tree/471d17d812a8c795aaffa85a45833c7fad768c28
test(chat): cover onReceived for a steering message landing mid-turnhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/b0dd503498f0757e29636d659a9dbc41d7ff0271
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
b0dd503https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/b0dd503498f0757e29636d659a9dbc41d7ff0271
https://github.com/triggerdotdev/trigger.dev/tree/b0dd503498f0757e29636d659a9dbc41d7ff0271
docs(chat): note that a recovered answer needs a refresh to appearhttps://github.com/triggerdotdev/trigger.dev/pull/4644/commits/6538847713ed85b89191a944609221d5c3b9275b
https://github.com/ericallam
ericallamhttps://github.com/triggerdotdev/trigger.dev/commits?author=ericallam
6538847https://github.com/triggerdotdev/trigger.dev/pull/4644/commits/6538847713ed85b89191a944609221d5c3b9275b
https://github.com/triggerdotdev/trigger.dev/tree/6538847713ed85b89191a944609221d5c3b9275b
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.