René's URL Explorer Experiment


Title: feat(sdk): add triggerConfig support to chat.headStart() by saasjesus · Pull Request #3933 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(sdk): add triggerConfig support to chat.headStart() by saasjesus · Pull Request #3933 · triggerdotdev/trigger.dev

X Title: feat(sdk): add triggerConfig support to chat.headStart() by saasjesus · Pull Request #3933 · triggerdotdev/trigger.dev

Description: Summary Adds optional triggerConfig to chat.headStart() and chat.openSession(), threading it through openHandoverSession into createSession. Merges customer trigger options (tags, queue, machine, maxAttempts, maxDuration, region, lockToVersion) using the same assembly pattern as chat.createStartSessionAction(), auto-prepending chat:{chatId} to tags. Top-level idleTimeoutInSeconds still wins over triggerConfig.idleTimeoutInSeconds; handover-prepare trigger and chatId in basePayload cannot be overridden by customer config. Fixes a latent tag-cap bug in createChatStartSessionAction: SessionTriggerConfig.tags allows at most 5 (per schema), but the preload path was slicing to 10 — now both session entry points cap at 5. Why this matters openHandoverSession is the session-entry path on turn 0 for head-start chats. Because createSession is idempotent on (env, externalId = chatId), that first call fixes the session's triggerConfig for its whole lifetime — a later createStartSessionAction cannot retroactively add tags to a session head-start already created. Test plan cd packages/trigger-sdk && pnpm test src/v3/chat-server.test.ts src/v3/createStartSessionAction.test.ts --run chat-server.test.ts: merged tags (chat:chat-1 first) and queue on createSession createStartSessionAction.test.ts: tag prepend + cap at 5 Manual: chat.headStart({ triggerConfig: { tags, queue } }) and verify handover-prepare run tags/queue in dashboard Made with Cursor

Open Graph Description: Summary Adds optional triggerConfig to chat.headStart() and chat.openSession(), threading it through openHandoverSession into createSession. Merges customer trigger options (tags, queue, machine, ...

X Description: Summary Adds optional triggerConfig to chat.headStart() and chat.openSession(), threading it through openHandoverSession into createSession. Merges customer trigger options (tags, queue, machine, ...

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

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:601ae1d9-980c-48c7-3300-ca820b089c8a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE8AE:23CE74:1CDDA33:2739995:6AFB97EE
html-safe-nonce6ad3be268b7da7050a96a717fa9a792e5a1ccd857047f829870c0547da9b2e88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEFFOjIzQ0U3NDoxQ0REQTMzOjI3Mzk5OTU6NkFGQjk3RUUiLCJ2aXNpdG9yX2lkIjoiNzEwNDE3NDAyMzA1ODg4ODY4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1cbf8c39cc06966f151fa6a9ea4a5a90525c156052697242f41b18591134b136
hovercard-subject-tagpull_request:3856115564
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/3933/files
twitter:imagehttps://avatars.githubusercontent.com/u/56917803?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/56917803?s=400&v=4
og:image:altSummary Adds optional triggerConfig to chat.headStart() and chat.openSession(), threading it through openHandoverSession into createSession. Merges customer trigger options (tags, queue, machine, ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4f01efe06174a5ba6342fd58e42d02295e0675bedbb465d6bef2dbaec8e46556
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
releasea52db8866b6543b4e83730cd6a6b1360f1a9e4dc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F3933%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%2F3933%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/3933/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3933/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/3933/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
saasjesushttps://github.com/saasjesus
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
saasjesus:feat/chat-headstart-trigger-confighttps://github.com/saasjesus/trigger.dev/tree/feat/chat-headstart-trigger-config
Conversation 5 https://github.com/triggerdotdev/trigger.dev/pull/3933
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/3933/commits
Checks 46 https://github.com/triggerdotdev/trigger.dev/pull/3933/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/3933/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3933/files
feat(sdk): add triggerConfig support to chat.headStart() https://github.com/triggerdotdev/trigger.dev/pull/3933/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/3933/files
df96c66 feat(sdk): add triggerConfig support to chat.headStart() saasjesus Jun 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3933/commits/df96c66938f783f7abd92fb2a3801cdfd1a0ea04
f40af00 fix(sdk): cap createStartSessionAction tags at 5 to match schema saasjesus Jun 12, 2026 https://github.com/triggerdotdev/trigger.dev/pull/3933/commits/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/3933/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3933/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3933/files
chat-headstart-trigger-config.md https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-0546bf88f1a6c5e5238935e8de909198f10d1c4075f3be39b8d730224e4ca052
ai.ts https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
chat-server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-285bb70c688bf6dc3d3e34034620e85dfd77e2b36567fa8b1c2cc7db9ba583b9
chat-server.ts https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
createStartSessionAction.test.ts https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-63adcc808c29f4944babf34f89ded766bfbcbcf97f4a7dc832be58692807437c
.changeset/chat-headstart-trigger-config.mdhttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-0546bf88f1a6c5e5238935e8de909198f10d1c4075f3be39b8d730224e4ca052
View file https://github.com/saasjesus/trigger.dev/blob/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c/.changeset/chat-headstart-trigger-config.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3933/{{ revealButtonHref }}
packages/trigger-sdk/src/v3/ai.tshttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
View file https://github.com/saasjesus/trigger.dev/blob/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c/packages/trigger-sdk/src/v3/ai.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3933/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-1a41664a01679e09d7182b5d113a193cea9eaad0f2092f68b4beca081617a53a
packages/trigger-sdk/src/v3/chat-server.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-285bb70c688bf6dc3d3e34034620e85dfd77e2b36567fa8b1c2cc7db9ba583b9
View file https://github.com/saasjesus/trigger.dev/blob/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c/packages/trigger-sdk/src/v3/chat-server.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3933/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-285bb70c688bf6dc3d3e34034620e85dfd77e2b36567fa8b1c2cc7db9ba583b9
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-285bb70c688bf6dc3d3e34034620e85dfd77e2b36567fa8b1c2cc7db9ba583b9
packages/trigger-sdk/src/v3/chat-server.tshttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
View file https://github.com/saasjesus/trigger.dev/blob/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c/packages/trigger-sdk/src/v3/chat-server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3933/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
Jun 13, 2026https://github.com/triggerdotdev/trigger.dev/pull/3933/files#r3407645039
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/3933
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3933/files
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-2a5ecaa706016614dfb6966b983452dfc2db84a6e51afb639233cfd1207cf8fc
packages/trigger-sdk/src/v3/createStartSessionAction.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-63adcc808c29f4944babf34f89ded766bfbcbcf97f4a7dc832be58692807437c
View file https://github.com/saasjesus/trigger.dev/blob/f40af00d1ddf22864cd57fd51fdb6dd68ad9396c/packages/trigger-sdk/src/v3/createStartSessionAction.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/3933/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-63adcc808c29f4944babf34f89ded766bfbcbcf97f4a7dc832be58692807437c
https://github.com/triggerdotdev/trigger.dev/pull/3933/files#diff-63adcc808c29f4944babf34f89ded766bfbcbcf97f4a7dc832be58692807437c
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/3933/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.