Skip to content

Studio: raise the startup bundle budget for #14190 - #14198

Merged
danielhanchen merged 1 commit into
mainfrom
fix/bundle-budget-after-14190
Oct 19, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/bundle-budget-after-14190

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Main is over the startup bundle budget again, by 17 B raw, so Frontend build + bundle sanity fails on every PR based on it:

over the startup budget: raw 6665.9 KB > 6665.9 KB      (main at 551dc28123)

#14168 reset both limits to the measured build plus a 160 B raw / 189 B transfer margin. #14190 (open //host links as web links) then added 177 B raw / 52 B transfer to the eager startup chunks. It merged while its own bundle check was still queued, so the raise never happened.

Cause

studio/frontend/src/lib/open-link.ts is the shared link opener, and the eager shell imports it. #14190 adds leading/trailing control-character trimming and //host (scheme-relative) link handling there (+16 lines). That is real growth with no lazy home: the opener is needed from the first screen. #14187, the other commit since the reset, changes no frontend code.

Change

Testing

One machine and build, Node 24, exact byte totals from the budget script, 95 chunks throughout. CI has matched this machine to the byte on every earlier budget change.

tree raw B transfer B
4dc8bf0bd2 (after #14168, no frontend change since) 6,825,725 2,054,072
main 551dc28123 (+ #14190, #14187) 6,825,902 2,054,124
  • Main against the old limits: over the startup budget: raw 6665.9 KB > 6665.9 KB.
  • With this change: within budget (0.2 KB transfer, 0.2 KB raw to spare).

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 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-19T05:42:00.730653Z 06abf35 Manual request
🔒 Security Review ⚠️ Failed 2026-10-19T05:40:51.013601Z 06abf35 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. Nice work!

Reviewed commit: 06abf3576e

ℹ️ 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 94464ba into main Oct 19, 2026
@danielhanchen
danielhanchen deleted the fix/bundle-budget-after-14190 branch October 19, 2026 05:47
danielhanchen added a commit that referenced this pull request Oct 19, 2026
## Summary

Main is over the startup bundle budget again, by 28 B raw, so `Frontend
build + bundle sanity` fails on every PR based on it:

```
over the startup budget: raw 6666.1 KB > 6666.1 KB      (main at 1de12ab)
```

#14198 set both limits to the measured build plus a 160 B raw / 189 B
transfer margin. #14197 then added 188 B raw / 66 B transfer to the
startup chunks (it keeps the FLUX.3 Image Klein GGUF row under its Fast
FP8 row). It merged while its own bundle check was still queued, so it
never raised the limit.

## Cause

#14197 changes `model-selector/model-catalog.ts`, `recommended-fit.ts`
and `pickers.tsx`. The picker catalog is imported by startup code
(`features/chat/api/chat-adapter.ts` among others), so the new ordering
rule ships in the eager chunks. It is small real growth with no lazy
home. #14143, the other commit since, changes no frontend code.

## Change

- **`check-bundle-budget.ts`:** a BUDGET comment entry for #14197, and
both limits moved to the measured build plus the same margin:
  - `rawBytes`: 6,826,062 -> 6,826,250.
  - `transferBytes`: 2,054,313 -> 2,054,379.

## Testing

One machine and build, Node 24, exact byte totals from the budget
script, 95 chunks throughout. CI has matched this machine to the byte on
every earlier budget change.

| tree | raw B | transfer B |
|---|---|---|
| `94464babd6` (#14198) | 6,825,902 | 2,054,124 |
| main `1de12ab309` (+ #14197, #14143) | 6,826,090 | 2,054,190 |

- **Main against the old limits:** `over the startup budget: raw 6666.1
KB > 6666.1 KB`.
- **With this change:** `within budget (0.2 KB transfer, 0.2 KB raw to
spare)`.
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