René's URL Explorer Experiment


Title: bug: starting a second `trigger dev` session can crash it or silently break rebuilds · Issue #4286 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: starting a second `trigger dev` session can crash it or silently break rebuilds · Issue #4286 · triggerdotdev/trigger.dev

X Title: bug: starting a second `trigger dev` session can crash it or silently break rebuilds · Issue #4286 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: macOS 26.6 CPU: (14) arm64 Apple M4 Pro Memory: 454.95 MB / 48.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/cheema/.local/state/fnm_multishells/3536_1784491292657/bin/node Yarn:...

Open Graph Description: Provide environment information System: OS: macOS 26.6 CPU: (14) arm64 Apple M4 Pro Memory: 454.95 MB / 48.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/cheema/.local/state/fnm_multi...

X Description: Provide environment information System: OS: macOS 26.6 CPU: (14) arm64 Apple M4 Pro Memory: 454.95 MB / 48.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/cheema/.local/state/fnm_multi...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4286

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: starting a second `trigger dev` session can crash it or silently break rebuilds","articleBody":"### Provide environment information\n\nSystem:\n  OS: macOS 26.6\n  CPU: (14) arm64 Apple M4 Pro\n  Memory: 454.95 MB / 48.00 GB\n  Shell: 5.9 - /bin/zsh\nBinaries:\n  Node: 24.14.0 - /Users/cheema/.local/state/fnm_multishells/3536_1784491292657/bin/node\n  Yarn: 1.22.22 - /opt/homebrew/bin/yarn\n  npm: 11.9.0 - /Users/cheema/.local/state/fnm_multishells/3536_1784491292657/bin/npm\n  pnpm: 10.25.0 - /opt/homebrew/bin/pnpm\n  bun: 1.3.5 - /Users/cheema/.bun/bin/bun\n\ntrigger.dev CLI 4.5.4, @trigger.dev/sdk 4.5.4\n\n\n### Describe the bug\n\nI hit this while setting up a new project. I had `trigger dev` running, started another dev session for the same project, and the new one crashed mid-build with an uncaught ENOENT writing to `.trigger/tmp/store/\u003chash>` (screenshot below, stack included).\n\nDigging into the CLI source, here is what I believe happens. `getStoreDir()` (packages/cli-v3/src/utilities/tempDirectories.ts) creates `.trigger/tmp/store` when a dev session starts and registers an exit handler that deletes it recursively. The path is deterministic per project and branch, so every dev session of the same project shares it. When you start a second session, the takeover makes the first one exit, and its cleanup deletes the store out from under the new session. `createFileWithStore()` (packages/cli-v3/src/utilities/fileSystem.ts) ensures the build file's parent directory before writing, but not the store directory, so the next store write fails.\n\nThe timing decides what you see. If the cleanup lands during the new session's initial build, it crashes loudly like mine did. If it lands later, the next watch rebuild prints \"Rebuilding local worker…\" and hangs forever with no error output, which is the nastier version; that one reproduces deterministically. And if the old process happens to die without running its cleanup, nothing breaks at all, which is probably why this can look intermittent.\n\n\n### Reproduction repo\n\nNot project-specific: reproduces on any project with the steps below (it's a CLI dev-session race, no special code involved).\n\n### To reproduce\n\nOrganic: run `npx trigger.dev@latest dev`, wait for \"Local worker ready\", then start a second `trigger dev` for the same project in another terminal. Depending on where the old session's cleanup lands, the new session either crashes with the ENOENT mid-build (screenshot) or hangs silently on a later rebuild.\n\nDeterministic shortcut for the hang variant: with one dev session running, delete `.trigger/tmp/store` (the same deletion the exit cleanup performs), then make any content change to a task file. The rebuild starts and never finishes, with no error output.\n\n### Additional information\n\nA one-line fix works: ensure the store directory exists in `createFileWithStore` right before the store write, the same way the function already ensures the build path a few lines earlier. I patched my local install with it and the exact repro heals: the rebuild completes and the store gets repopulated. Happy to open that PR with a regression test once vouched.\n\nOne side observation from debugging: watch-rebuild errors seem to get swallowed entirely, which is what turns this case into a silent hang instead of a visible error.\n\n\u003cimg width=\"1728\" height=\"1117\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/622ceb3e-9325-45e2-8b8e-634770f0831f\" />","author":{"url":"https://github.com/mcheemaa","@type":"Person","name":"mcheemaa"},"datePublished":"2026-07-19T20:09:52Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4286"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6cbadea9-e98b-8cc9-b46b-4e2d35b9ac14
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE4C:C123A:4D4CFD:6DF248:6AFB0709
html-safe-noncef9e3ba736995dca0c39dac02546a016d73bc63f38a2b92d5d35808b3855c6ea5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTRDOkMxMjNBOjRENENGRDo2REYyNDg6NkFGQjA3MDkiLCJ2aXNpdG9yX2lkIjoiMjkyODEwNTQzMTk5NTQ1MTE0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac447b8e7d0f1ee36720c8583b6e3689dd764fd86a7b5942b3ac8cc54c373ba548
hovercard-subject-tagissue:4924213347
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4286/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6066860b0ecb954fc1db9f999bf102da467d0c24ad9972f1d2a5a2fc5c6c0731/triggerdotdev/trigger.dev/issues/4286
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6066860b0ecb954fc1db9f999bf102da467d0c24ad9972f1d2a5a2fc5c6c0731/triggerdotdev/trigger.dev/issues/4286
og:image:altProvide environment information System: OS: macOS 26.6 CPU: (14) arm64 Apple M4 Pro Memory: 454.95 MB / 48.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.0 - /Users/cheema/.local/state/fnm_multi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemcheemaa
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/4286#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4286
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%2Fissues%2F4286
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4286
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4286
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4286
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
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4286
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4286
bug: starting a second trigger dev session can crash it or silently break rebuildshttps://github.com/triggerdotdev/trigger.dev/issues/4286#top
https://github.com/mcheemaa
mcheemaahttps://github.com/mcheemaa
on Jul 19, 2026https://github.com/triggerdotdev/trigger.dev/issues/4286#issue-4924213347
https://private-user-images.githubusercontent.com/54610255/623688783-622ceb3e-9325-45e2-8b8e-634770f0831f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ4MzY1MzMsIm5iZiI6MTc5NDgzNjIzMywicGF0aCI6Ii81NDYxMDI1NS82MjM2ODg3ODMtNjIyY2ViM2UtOTMyNS00NWUyLThiOGUtNjM0NzcwZjA4MzFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE2VDEzMzcxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0YzM4MzFmZWFkZTVkZjMxMzJlMzU1Y2ZkNmM2ZjJlM2I4OTNiOTFiNzMwOTdiY2VhNDljOWNhMjg4OWI5YTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.EnlJHKsu9ZwDQ864KOZRFdmW94LSguLxCVnE4gla0EE
https://github.com/itzzdev09
itzzdev09https://github.com/itzzdev09
on Aug 28, 2026https://github.com/triggerdotdev/trigger.dev/issues/4286#issuecomment-5458258413
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4286
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4286
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.