Skip to content

Raise the startup bundle budget for the modern toggles (#14322) - #14331

Merged
danielhanchen merged 1 commit into
mainfrom
ci/bundle-budget-toggles
Oct 20, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/bundle-budget-toggles

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

Frontend build + bundle sanity is red again for PRs based on current main. Main builds over the startup budget:

eager startup JS: 6684.5 KB raw, 2012.8 KB transfer, 96 chunks
over the startup budget: raw 6684.5 KB > 6684.4 KB

Measurement

Exact totals, one machine and build, Node 24, 96 chunks throughout:

Commit Raw (B) Transfer (B)
3c68c2a (#14324) 6,844,622 2,061,046
ad2fc06 (#14329) 6,844,459 2,061,006
37f5374 (#14322, modern toggles) 6,844,908 2,061,092

#14322 adds 449 B raw / 86 B transfer. switch.tsx is a shared primitive that is already in the startup chunks, so this is ordinary growth and the chunk count is unchanged. #14329 had removed 163 B just before.

Change

BUDGET in studio/frontend/scripts/check-bundle-budget.ts is raised to the main build plus the same 160 B raw / 189 B transfer margin: rawBytes 6,845,068 and transferBytes 2,061,281. A comment entry records the numbers.

Testing

npm ci && npm run build && npx tsx scripts/check-bundle-budget.ts on this branch: within budget (0.2 KB transfer, 0.2 KB raw to spare). On main, the over-budget output above.

Main measures 6,844,908 B raw / 2,061,092 B transfer at 37f5374, 126 B raw over the limit. #14322 adds 449 B raw / 86 B transfer. Limits = that build plus the usual 160 B raw / 189 B transfer margin.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T10:40:05.596258Z 036f9d1 Manual request
🔒 Security Review ⚠️ Failed 2026-10-20T10:38:26.067109Z 036f9d1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 036f9d1298

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 617844a into main Oct 20, 2026
@danielhanchen
danielhanchen deleted the ci/bundle-budget-toggles branch October 20, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant