Skip to content

build(mobile): raise the page bundle's code fence to 11 MiB - #44416

Merged
AmoabaKelvin merged 1 commit into
mainfrom
build/mobile-page-bundle-budget-11
Nov 19, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
build/mobile-page-bundle-budget-11

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The phone app's page has a size limit checked in CI. It filled up again after this week's phone fixes, so the last two phone PRs fail the build. This raises the limit to 11 MiB.

Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0

What Changed

MOBILE_WEB_APP_BUNDLE_MAX_TOTAL_BYTES in verify-mobile-web-app-bundle.mjs goes from 10.5 MiB to 11 MiB (about 512 KB more room). The phone's own contract (32 MiB total, 10 MiB per asset, 3 MiB entry) is unchanged.

Why

Main measures about 5 KB under the 10.5 MiB fence. #44242 (phone row actions) is 225 bytes over and #44250 (phone /fork and /usage) is 2,613 bytes over, on size alone. Trimming unrelated page code is left for a dedicated mobile size round.

Linked Issue

None.

Visual Proof

N/A: build limit only, nothing in the app changes.

Testing

The constant is only read by the bundle verifier, which CI's build:mobile-web runs. oxfmt is clean.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

No test added: the value is a budget, and tests must not pin constants.

Risk

The phone page may grow by up to about 512 KB more before CI stops it, a first-load cost over a paired connection. Back out with a plain revert.

Level: Low

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Main sits about 5 KB under the 10.5 MiB fence after the phone parity round, so
the last phone PRs (row actions, /fork and /usage) fail build:mobile-web on size.
Real size cuts are left for a mobile size round.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The mobile web app bundle’s maximum total size increases from 10.5 MiB to 11 MiB. The accompanying comment is updated to state the new limit.

Merge Risk: Minimal · up to 47375

This raises the mobile web bundle size limit used by the build check by about 512 KB. It does not change runtime behavior. Future PRs may now grow the bundle somewhat further before CI blocks them, but this change alone causes no performance regression and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: it raises the mobile web page bundle size limit to 11 MiB. The raw summary confirms the only code change is the MOBILE_WEB_APP_BUNDLE_MAX_TOTAL_BYTES constant going from 10…
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.
Description check Passed The author describes a one-constant change that raises the mobile web bundle total-byte limit from 10.5 MiB to 11 MiB so the last two phone PRs pass the CI size check. The description covers the ELI5,…
Full details: Title check

Explanation

The title names the change: it raises the mobile web page bundle size limit to 11 MiB. The raw summary confirms the only code change is the MOBILE_WEB_APP_BUNDLE_MAX_TOTAL_BYTES constant going from 10.5 to 11 MiB. The title is specific and matches the main change. It uses the 'build(mobile):' prefix, which is a conventional form.

Full details: Description check

Explanation

The author describes a one-constant change that raises the mobile web bundle total-byte limit from 10.5 MiB to 11 MiB so the last two phone PRs pass the CI size check. The description covers the ELI5, what changed, why, testing rationale, risk with a rollback path, and the review checklist. It is missing a linked issue, the AI Disclosure section is blank, and the lint/typecheck/test/build checklist item is unchecked. The template's Testing section asks for the platforms actually tested, and the 'manually tested' box is unchecked. None of these gaps prevents a reviewer from understanding the change. The 'Visual Proof' N/A reasoning is given. The 'Linked Issue' is 'None', which the template says should always be present for outside contributors, though the author may be a maintainer.

  • Autofix · 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b0e25029-563b-403b-81b4-461ad5c0fdce
Commits

Reviewing files that changed from the base of the PR and between 8748fa3 and 47375d0.

Files selected for processing: 1

  • config/scripts/build/mobile-web-app/verify-mobile-web-app-bundle.mjs

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

@AmoabaKelvin
AmoabaKelvin merged commit 3099082 into main Nov 19, 2026
39 checks passed
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