Skip to content

chore(web): raise the launch bundle budget to match main - #2066

Merged
Quick104 merged 1 commit into
mainfrom
fix/web-launch-bundle-budget
Oct 8, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/web-launch-bundle-budget

Conversation

@Quick104

@Quick104 Quick104 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

ci / Web (build) fails on main and on every pull request. budget:check measures main's eager launch bundle at 322026 B brotli, 1066 B over the 320960 B budget and 42 B past the 1024 B tolerance. This PR sets the budget to the current size so CI passes again.

Approach

web/perf-budget.json changes from 320960 to 322026, the value pnpm run budget:update writes from a production build of main at bd842519e. CI reports the same figure on main.

Where the growth came from, measured locally at each commit:

Commit Eager launch bundle (brotli)
#1984, where the budget was last set 321172 B
#2018, before #2023 321669 B
#2023, "let a browser ask who's watching at launch" 322324 B
main at bd842519e 322026 B

#2023 adds 655 B. Its per-tab profile scope in utils/storage.ts and the "Who's watching?" check run during sign-in on every launch, so they can't move behind a lazy import. Its settings-only helpers (getProfileLaunchMode, setProfileLaunchMode, adoptTabProfileSelection) do ship eagerly. Moving the first two into a module that only the settings screen imports made the bundle 199 B larger, because the extra chunk costs more than the moved code. So this PR records the size instead of moving code.

Validation

  • pnpm run build, then pnpm run budget:check: "within perf-budget.json".
  • prettier --check perf-budget.json passes.
  • No source changes; the other Web and Go checks are unaffected.

Evidence

No user-visible change.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-2066/

Risks

None identified. The budget gets about 1 KB of headroom back for later growth; the next change that adds launch code past the tolerance still has to say why.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (running in T3 Code)
  • Tool(s): Claude Code (Bash), GitHub CLI, pnpm
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a (budget value only)

Note

Raise eager Brotli launch bundle budget from 320960 to 322026 bytes

Updates the eager Brotli byte budget in perf-budget.json so the launch bundle matches the current size on main. This keeps budget validation green.

Macroscope summarized 403cdd0.

Main's eager launch bundle is 322026 B brotli, 42 B past the budget's 1024 B tolerance, so Web (build) fails on main and every pull request. Most of the growth since the budget was last set comes from #2023: the per-tab profile choice and "Who's watching?" check run during sign-in on every launch, so they can't be loaded lazily. Moving its settings-only helpers into their own module made the bundle 199 B larger, so this records the current size instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 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-08T02:48:37.782743Z 403cdd0 PR opened
🔒 Security Review ✅ Completed 2026-10-08T02:49:22.900054Z 403cdd0 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.

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d9778de-1518-462f-8d7f-c12a93998329
📥 Commits

Reviewing files that changed from the base of the PR and between bd84251 and 403cdd0.

📒 Files selected for processing (1)
  • web/perf-budget.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The eagerBrotliBytes budget increased from 320960 to 322026 bytes.

Changes

Performance Budget

Layer / File(s) Summary
Eager Brotli byte budget
web/perf-budget.json
The eagerBrotliBytes budget increased from 320960 to 322026 bytes.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: rhainland

Merge Risk: ⚪ Minimal · up to 403cd

This updates the eager Brotli budget without changing shipped code. No material user impact or merge-blocking risk is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly states that the web launch bundle budget will increase. This matches the only file change and the PR objective.
Description check ✅ Passed The description explains the CI failure, the budget increase from 320960 to 322026 bytes, the validation performed, and the absence of source or user-visible changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Quick104 Quick104 added priority: P1 Core-path bug; painful workaround — next after P0 impact: perf Unusable slowness on normal hardware labels Oct 8, 2026 — with Cursor

Quick104 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Note

Grok commenting on Quick's behalf.

Ranking: priority: P1 · impact: perf. A one-line budget bump with no source changes that gets ci / Web (build) green again on main and every open PR, so it should merge next. Scope is a single concern.

@Quick104
Quick104 merged commit 52096ba into main Oct 8, 2026
20 checks passed
@Quick104
Quick104 deleted the fix/web-launch-bundle-budget branch October 8, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: perf Unusable slowness on normal hardware priority: P1 Core-path bug; painful workaround — next after P0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant