Skip to content

Re-measure the Studio startup budget after the managed engine options - #12560

Merged
danielhanchen merged 1 commit into
mainfrom
studio/rebudget-after-managed-engines
Oct 2, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio/rebudget-after-managed-engines

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Frontend build + bundle sanity is red on main, and on every frontend PR built on it (#12543, #12539, #12538):

over the startup budget: transfer 1800.5 KB > 1796.9 KB

git bisect run over the frontend commits since 2026-10-02 07:00 UTC (build + scripts/check-bundle-budget.ts per step) names #11491 (opt-in vLLM and SGLang engines). One machine, one build per side:

Build Eager startup JS Chunks
08716f09ad~1 5,997.5 KB raw / 1,793.9 KB transfer 88
08716f09ad (#11491) 6,017.9 KB raw / 1,800.2 KB transfer 91
main 5b78bafd04 6,023.4 KB raw / 1,802.1 KB transfer 91

The growth is inside the eager chat (+3.0 KB transfer) and settings (+1.1 KB) chunks: the engine options in model-config-page.tsx and the Resources tab, plus their strings.

Why a re-measure rather than a lazy import

The script asks for one or the other. I tried the lazy route first: React.lazy for both static imports of features/model-picker/components/inference-engines (InferenceEnginePicker in the model config page, InferenceEnginesSection in the Resources tab). It recovers only 0.6 KB transfer (1,802.1 to 1,801.5 KB), because most of what #11491 added is inline in components the first chat screen already renders. That would leave main red and add a loading boundary for nothing, so it is not in this PR.

Change

studio/frontend/scripts/check-bundle-budget.ts: both halves re-measured together at 5b78bafd04 and given the same margin the previous raises chose (210.8 KB raw, 65.1 KB transfer), following the file's own convention: transferBytes 1,840,000 to 1,912,000 and rawBytes 6,170,000 to 6,384,000, with the measurement and the reason recorded in the comment.

Verification

  • npm run bundle:check on main with this change: within budget (65.0 KB transfer, 211.0 KB raw to spare). Without it: over the startup budget: transfer 1802.1 KB > 1796.9 KB.
  • tests/bundle-budget-cli.test.ts and tests/bundle-budget-closure.test.ts: 41 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 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-02T20:15:49.496251Z d115196 Manual request
🔒 Security Review ⚠️ Failed 2026-10-02T20:14:31.055114Z d115196 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

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: d115196608

ℹ️ 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 faca4e2 into main Oct 2, 2026
@danielhanchen
danielhanchen deleted the studio/rebudget-after-managed-engines branch October 2, 2026 21:38
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