Title: bug: development branches are counted toward the preview branch limit on the Manage/Limits page · Issue #4281 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: bug: development branches are counted toward the preview branch limit on the Manage/Limits page · Issue #4281 · triggerdotdev/trigger.dev
X Title: bug: development branches are counted toward the preview branch limit on the Manage/Limits page · Issue #4281 · triggerdotdev/trigger.dev
Description: Provide environment information v4.5.0+ Describe the bug On the org Manage/Limits page, the "Preview branches" usage count includes DEVELOPMENT branches, not just preview branches. The number is also shown against the preview-branch limi...
Open Graph Description: Provide environment information v4.5.0+ Describe the bug On the org Manage/Limits page, the "Preview branches" usage count includes DEVELOPMENT branches, not just preview branches. The number is al...
X Description: Provide environment information v4.5.0+ Describe the bug On the org Manage/Limits page, the "Preview branches" usage count includes DEVELOPMENT branches, not just preview branches. The nu...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4281
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: development branches are counted toward the preview branch limit on the Manage/Limits page","articleBody":"### Provide environment information\n\nv4.5.0+\n\n### Describe the bug\n\nOn the org Manage/Limits page, the \"Preview branches\" usage count includes DEVELOPMENT branches, not just preview branches. The number is also shown against the preview-branch limit, so it can display nonsensical over-limit values (e.g. \"12 / 5\" when most of those are dev branches).\n\nExpected: the \"Preview branches\" count should only reflect active preview branches. Dev branches and preview branches are separate features with separate limits and should not share a counter.\n\n### Reproduction repo\n\nn/a\n\n### To reproduce\n\n1. Have at least one active development branch, on a plan with a preview branch limit (Hobby/Pro).\n2. Open the Manage/Limits page and note the \"Preview branches\" count.\n3. Archive a development branch.\n4. Observe the \"Preview branches\" count decreases by 1, even though no preview branch was archived.\n\n### Additional information\n\nDisplay-only bug — actual quota enforcement is correct. checkBranchLimit (apps/webapp/app/services/upsertBranch.server.ts) enforces two separate limits: PREVIEW -> \"branches\", DEVELOPMENT -> \"branchesDev\". Dev branches do NOT actually consume the preview quota; only the displayed number is wrong.\n\nRoot cause: the count in apps/webapp/app/presenters/v3/LimitsPresenter.server.ts (~line 155) filters only on `branchName != null` / `archivedAt: null` with no `type` filter, so it counts DEVELOPMENT branches too, then renders that total against the preview (\"branches\") limit.\n\nFix: add `type: \"PREVIEW\"` to the count's where clause (and `parentEnvironmentId: { not: null }` to mirror checkBranchLimit and exclude the branchable parent).\n\nNote: not related to branch origin — the count ignores branch type entirely, so it happens regardless of whether branches came from merged PRs, `trigger dev`, etc.","author":{"url":"https://github.com/isshaddad","@type":"Person","name":"isshaddad"},"datePublished":"2026-07-17T14:53:32Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4281"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3e40a2f0-f5be-face-6f36-b647cc06df8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B764:646AE:13C259B:1BEF9B6:6AFAF581 |
| html-safe-nonce | 4317310603b814db3105b1b28f420b2dc7cba8c1523b3573bf10814c14473fa2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzY0OjY0NkFFOjEzQzI1OUI6MUJFRjlCNjo2QUZBRjU4MSIsInZpc2l0b3JfaWQiOiIxOTYwOTI0NDI2NjY4Nzk5MzYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4b9a22269b2c2206d0098ff9e05c40f4cb2facab8b6f808a2d9ed2c11f954638 |
| hovercard-subject-tag | issue:4912402779 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/458aa5906f052524826b5276ccec560d1a09e50979cc9c6e55dc44a0f3c51b92/triggerdotdev/trigger.dev/issues/4281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/458aa5906f052524826b5276ccec560d1a09e50979cc9c6e55dc44a0f3c51b92/triggerdotdev/trigger.dev/issues/4281 |
| og:image:alt | Provide environment information v4.5.0+ Describe the bug On the org Manage/Limits page, the "Preview branches" usage count includes DEVELOPMENT branches, not just preview branches. The number is al... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | isshaddad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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 |
| react-app-name | issues |
Links:
Viewport: width=device-width