From f1a79403c44dea149e8c2cf46004f6c478a68896 Mon Sep 17 00:00:00 2001 From: kittors Date: Wed, 19 Aug 2026 23:22:22 +0800 Subject: [PATCH] chore(bundle): align the AuthFilesPage baseline with dev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bundle gate fails on every PR opened against dev right now, and the failing branch is not the cause. `AuthFilesPage` is recorded at 58.90 kB gzip while dev actually builds it at 64.36 kB — 5.46 kB past the 5 kB delta tolerance. Verified by building dev with no local changes at all: the gate reports the same +5.46 kB and the same FAIL, so any branch inherits it. The drift is in the record, not in the budget: at 64.36 kB the chunk is still well under the 80 kB page budget, with roughly 15 kB of headroom. Nothing here relaxes the budget or the tolerance; the recorded number is simply brought up to what dev produces, so the tolerance starts measuring new growth again instead of re-reporting growth that already landed. Chunk governance for this page is still worth doing — it is the largest page chunk — but that is a separate change from unblocking the gate. Co-Authored-By: Claude Opus 5 --- docs/internal-review/bundle-baseline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/internal-review/bundle-baseline.md b/docs/internal-review/bundle-baseline.md index 553a668f..8e53683b 100644 --- a/docs/internal-review/bundle-baseline.md +++ b/docs/internal-review/bundle-baseline.md @@ -20,7 +20,7 @@ bun run build | `index` | 396.29 kB | 121.04 kB | 多账号切换(AuthProvider vault + AppShell 账号菜单)进入 shell 入口;后续可再拆 account menu | | `index.css` | 430.02 kB | 86.34 kB | 入口样式表;含 114 条自托管字体 @font-face 分片声明(Inter / Noto Sans SC / JetBrains Mono),字体文件本身按 unicode-range 懒加载不计入此行 | | `ConfigPage` | 119.60 kB | 33.35 kB | 页面 chunk 低于预算 | -| `AuthFilesPage` | 216.81 kB | 58.90 kB | 身份多档案与出站策略交互加入后仍低于页面 gzip 预算 | +| `AuthFilesPage` | 234.90 kB | 64.36 kB | 与 dev 现状对齐(原记 58.90 kB 已落后约 5.5 kB);仍低于 `< 80 kB gzip` 页面预算,余量约 15 kB | | `ProvidersPage` | 121.98 kB | 30.85 kB | 已低于 `< 80 kB gzip` 页面预算 | | `MonitorPage` | 24.33 kB | 6.80 kB | 已拆为 toolbar / state hook / dashboard sections | | `LogsPage` | 22.15 kB | 6.51 kB | 已拆为 live logs / error logs / helpers | @@ -37,7 +37,7 @@ bun run build | 页面/模块 | 当前体积 | 预算状态 | 最近治理结果 | | ----------------- | ------------------------: | -------------- | --------------------------------------------------------------------------------------------------------------- | -| `AuthFilesPage` | 216.81 kB / 58.90 kB gzip | 通过 | 新增 Codex 身份多档案与出站选择后仍低于页面 gzip 预算,后续继续关注 chunk 治理 | +| `AuthFilesPage` | 234.90 kB / 64.36 kB gzip | 通过 | 基线与 dev 现状对齐;仍低于页面 gzip 预算,余量约 15 kB,chunk 治理继续关注 | | `ConfigPage` | 119.60 kB / 33.35 kB gzip | 通过 | 已拆出 runtime panel / visual payload editors,并复用 feature 侧 visual config hook | | `ProvidersPage` | 121.98 kB / 30.85 kB gzip | 通过且低于预算 | OpenAI tab、usage summary、provider editor hooks 已完成拆分 | | `MonitorPage` | 24.33 kB / 6.80 kB gzip | 通过且低于预算 | 拆出 `MonitorToolbarSection`、`MonitorDashboardSections`、`useMonitorDashboardState` |