Skip to content

[PR] fix(web): Web panel minor fixes, batch 1 — Four reviewed minor fixes merged for review | fix(web): Web 面板小修合集第一辑 —— 四件已评审小修合并送审 - #5845

Merged
ranxianglei merged 6 commits into
masterfrom
2026-11-07_web-panel-small-fixes-batch
Nov 7, 2026
Merged

ranxianglei merged 6 commits into
masterfrom
2026-11-07_web-panel-small-fixes-batch

Conversation

@ranxianglei

@ranxianglei ranxianglei commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

这个 PR 干什么

把四个此前各自挂审未合的 web 面板小修收进一个分支,一次 CI、一次送审;你只需一次性 review + merge。每件原本都是状态板上 ✅可合 的独立 PR(#3916),各自分支的 CI 红绿参差,合一后以本 PR 的新 CI 为准。

清单(一件一个独立提交)

提交 修什么(人话) 原 PR 原 issue 原作者
fix(web): conflict reports cover non-dsh clients… 冲突报告覆盖非 dsh 客户端:日志尾部补 codex 压缩证据链签名;版本段新增本进程实际观测到的客户端 UA(有界注册表,发布前 redact) #4651 #4649 ranxianglei
fix(updater): web panel "Check now" checks only 面板「立即检查」按钮现在真·只检查,不再顺带下载/安装(autoUpdate:false 时旧行为会偷偷执行完整升级) #4794 #4791 ranxianglei
fix(web): compression-blocks treemap node fills follow the theme 压缩块树图节点填充从写死的浅色改成主题变量,暗色模式下可读(浅色值逐字节不变,零视觉漂移) #5422 #5417 ranxianglei
feat(web): resizable session-table columns 会话表格列宽可拖拽:整侧级联伸缩,总宽与两侧外缘固定,最右列永不出视口 #4827 #4826 wxy(@yanhuojiyusheng,外部贡献者)

贡献身份保留

#4827 的提交保留原贡献者 git 作者身份(wxy 2398249916@qq.com),并在提交信息追加 Co-authored-by——squash-merge 后署名仍留在合并提交上。

二选一说明(两个 issue 各有两份重复实现,本 PR 各取其一)

冲突消解说明(仅一处)

#4651 rebase 到新 master 时撞上刚合入的 #5146 措辞(hostClientVersionLines(),profile 版本行的「不再裸 ?」):两边意图都保留——#5146 的 profile 措辞在内,observed-UA 行放在 early-return 路径之外。handle.ts import 块冲突取并集两行。

Pre-flight 结果

  • npm ci ✅ · npm run build ✅ · tsc --noEmit ✅
  • web 全组 27 个文件 223/223 通过(含各件回归钉)
  • updater 组 164/166:2 个失败(registryUrlFor 地址断言)在本机纯 master 基线上同样失败 = 本机 registry 环境噪音,非本分支引入;远程 hermetic CI 无此变量
  • 未触碰 kernel/,无 version bump,无 config surface 变化

本 PR 合并后处理的 issue

Closes #4826
Closes #5417
Closes #4791
Closes #4649

CI 修正补记(2026-11-07,首次送审后新增一个提交)

首版在三个 shard 上红于同两个测试(#5719 T1/T8),与本 PR 改动无关:上游 30a8bc2d(经 #5734 于 11-06 合入)改了 src/session-resolve.ts 的 re-anchor 档序却漏同步了旧套件里两根钉子,导致所有基于 11-06 前 master 的 PR(包括主干自身)同时在这两点变红——纯 master worktree 本地复现同样两失败、无关分支的 CI 亦同红,均核实。本分支已 rebase 到新 master c45ac219,并按 #5734 自己 commit message 文档化的行为变更重对齐这两根钉子(T1 改钉新档 reason 串,key/action 断言不变;T8 由期望 derived-persona 改为 reanchor)。对本 PR 原有各件零影响。

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-07_web-panel-small-fixes-batch (49bfbbc)

Latest build — install this exact version

npm install -g billion-context@0.0.8455-pr.5845.ebc2529

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
49bfbbc billion-context@0.0.8455-pr.5845.ebc2529 build
2e876de billion-context@0.0.8453-pr.5845.62cbfa9 build
2d9a9a9 billion-context@0.0.8449-pr.5845.10fd066 build
a614052 billion-context@0.0.8445-pr.5845.adcacdb build
51be4a7 billion-context@0.0.8438-pr.5845.874f2d0 build
0ddf970 billion-context@0.0.8433-pr.5845.dd5cde0 build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr5845.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title fix(web): Web 面板小修合集第一辑 —— 四件已评审小修合并送审 [PR] fix(web): Web panel minor fixes, batch 1 — Four reviewed minor fixes merged for review | fix(web): Web 面板小修合集第一辑 —— 四件已评审小修合并送审 Nov 7, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

查重:不重复——本 PR 是四件已各自挂审的 web 小修(#4651/#4794/#4827/#5422 对应 issue #4649/#4791/#4826/#5417)的收口合集,合并后以本 PR 新 CI 为准。已核实 GitHub 侧状态:四个原 PR 与两个「二选一」落选 PR(#4650、#5254)目前全部仍 open,无其他并行 PR 在修同样四处;落选两份是否真为同机制重复,我在本轮 review 里独立复核(不照抄本 PR 描述),结论随最终审核给出。按关闭政策,这些 PR 的关单由 owner 执行,我只会打标签+留说明。

标签:bug + scope/ui + p2(四件中三件是缺陷修复、全部落在 web 面板/更新器 UI 面;#4791「Check now 顺带装包」违反显式 autoUpdate:false 设定属个别功能异常,批次取最高档 p2)。

开始完整 review(原 issue 方向核对 → 逐提交读 diff → 回归清点 → 定向测试),结论稍后按结构化八问回帖。

@ranxianglei
ranxianglei force-pushed the 2026-11-07_web-panel-small-fixes-batch branch 2 times, most recently from 51be4a7 to a614052 Compare November 7, 2026 05:28
ranxianglei and others added 4 commits November 7, 2026 13:55
…es + observed client UAs (#4649, picked up from PR #4651)

Rebased onto current master: hostClientVersionLines now carries master's
#5146 no-bare-?s profile wording inside the if/else restructure this fix
introduced (observed-UA lines stay outside the early-return path). Conflicts
in handle.ts import block resolved as union (billing + ua registry imports).
…k-mode readable (#5417, picked up from PR #5422; supersedes PR #5254 which fixes the same visual defect)
Session tables (overview + sessions list) get a drag handle on every column
boundary except the last. Dragging widens one side and shrinks the other
cascade-style (nearest column first), so the table's total width and both
outer edges stay fixed and the rightmost column can never leave the viewport.

- lazy snapshot on the first pointermove: a plain click no longer pins the
  table to pixel widths
- per-column floors (120px for the first column, 48px otherwise) clamp the
  cascade instead of the nearest neighbour
- columns hidden by col:nth-child(n+6) at <=720px are never revived
- keyboard: focusable handle, ArrowLeft/ArrowRight step 20px
- pointercancel / lostpointercapture detach the listeners
- th/td clip with ellipsis once the columns are pinned
- i18n: ses.resize_column (zh/en); handle labels refresh on locale switch

Refs #4826
Co-authored-by: wxy <2398249916@qq.com>
(external contribution preserved from PR #4827 by @yanhuojiyusheng, fixes #4826)
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

CI 自动修复车道(attempt 1/3)结论:本 PR 代码干净,三个红腿全部是继承性 master 红;本车道零推送,已上报 #4599 等哨兵收敛。

  1. 是什么问题:PR 的 CI 有 3 个红测试分片(ubuntu-24/s2、ubuntu-22/s2、windows-22/s4),各挂在 tests/issue5719-msgid-lane-identity.test.ts 的同样两个确定性子测试上——T1 的 reason 字符串钉对不上、T8 期望 fork('derived-persona')却得到 'reanchor'。
  2. 什么原因导致的:master 合入 PR [PR] fix: keep the live conversation on its raw lane when a full compaction lands with a persona-text drift (#5719) #5734(E5 self-checkpoint reanchor,提交 30a8bc2d0e)后,src/session-resolve.ts:398 在 tagChanged 分支新增了更高优先级的 reanchor 档,它先于 [resolveSessionOrder] Full compaction and persona tag drift occurring in the same turn → inevitably forks to |sub: side | [resolveSessionOrder] Full compaction and persona tag drift occurring in the same turn → inevitably forks to |sub: side | [resolve… #5719 的 msgid-rescue 档和 byte-evidence fork 触发,把旧测试的两个钉打穿——纯 master 侧漂移,与本 PR 的 14 个 web/updater 文件零交集(与失败路径无接触)。
  3. 影响范围与严重程度:任何基于当前 master、且分片恰好含该测试文件的 PR 都会红(本 PR 是实例之一);严重度 = 阻塞不相干 PR 的合并,无运行时行为影响(纯测试钉漂移)。
  4. 怎么处置的:先用本地 A/B 验证继承性(同一文件在 PR head 与干净 master tip c45ac21 上各跑一次,结果逐字一致:6/8 绿、同两个红,错误信息与 CI 完全相同);按 CI 协调政策(2026-10-24),master 级失败禁止在 PR 分支重复修,已将完整证据链(失败签名 + 肇因提交 + 机制 + A/B 结果)报到 CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599,由哨兵把修复收敛到 ci-fixes;ci-fixes 当前相对 master 无增量,故也不做无意义的 merge 推送。
  5. 是否有回归问题:无——本车道零代码改动、零推送,既有行为未变。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向 / 引入新配置:不涉及。

收工判定:本 PR 除继承红外没有其他阻塞项;待哨兵把 #5719 测试钉修复落到 ci-fixes(或直接修进 master)后,merge ci-fixes 或重跑 CI 即可转绿,本车道保持待命。

@ranxianglei
ranxianglei force-pushed the 2026-11-07_web-panel-small-fixes-batch branch from a614052 to 2d9a9a9 Compare November 7, 2026 06:00
… rung order (30a8bc2)

Upstream 30a8bc2 (merged via #5734 on Nov 6) made an authored-checkpoint conv declaration re-anchor on the raw lane BEFORE the store-overlap rung, and even when the store view is null — its own commit message documents 'this shape went from forks to re-anchors'. It added tests/issue5719-self-checkpoint-reanchor.test.ts but did not realign T1/T8 of this older suite, leaving every old-base PR (and the main branch itself) red on exactly those two pins.

T1 now pins the self-declaration reason string (same outcome asserts kept: key raw + action reanchor); T8 now expects reanchor on the raw key where it previously expected the byte-evidence degrade to derived-persona/sub-fork. Marker-less shapes untouched (their pins still pass unmodified).
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

独立复审完成(逐件对照源码,不是照抄 PR 描述)。结论:四件代码层面全部通过,无待拍板项;新 head CI 重跑绿后即可合。

结构化八问

  1. 是什么问题:把四件此前各自挂审的 web 面板/更新器小修收进一个分支一次送审——冲突报告覆盖非 dsh 客户端、面板「立即检查」真·只检查、树图暗色模式、会话表格列宽可拖拽。
  2. 什么原因导致的(各件根因):①冲突报告的日志签名表只有 dsh 指纹、客户端版本段只读 dsh profile 包 → codex 机器的报告永远缺证据链;②「立即检查」旧接线走 force=true,同时旁路了 advisory block/backoff/single-writer 安全门 → autoUpdate:false 机器点一下偷偷执行完整升级;③树图节点填充写死浅色 hex,无主题变量映射;④会话表格固定 colgroup 宽度,首列 auto 吃掉 900+px。
  3. 影响范围与严重程度:均为体验/可观测性缺陷,无数据丢失、无不可用。①波及所有非 dsh 用户的冲突诊断;②波及所有 autoUpdate:false 用户(明确禁用的升级被静默执行,四件中最重,故整批 p2);③④为暗色可读性与宽表可用性。
  4. 怎么修复的(机制层面):①签名表补 codex 日志签名 + 新增有界进程内 UA 注册表(24 族×8 UA×120 字符,FIFO 驱逐),每个模型请求打点,版本段尾部追加、发布前统一 redact;②新增 checkOnly 路径:只跳过 pacing 类节流(throttle 窗口/backoff/策略节奏),全部安全门保留并改为「报告裁决」,下载/安装严格不触发;③写死色改 CSS 主题变量(浅色值逐字节一致,零漂移);④整侧级联伸缩:总宽与两侧外缘固定,拖右扩当前列、右侧由近及远让位到下限(首列 120px/其余 48px),移动端隐藏列永不复活,键盘 ←/→ 可用。
  5. 是否有回归问题:既有行为逐项清点——①冲突报告输出纯增量(UA 行追加在末尾,既有行不变),发布端 redact 覆盖整个 blob;②行为变更(即修复本身,已披露):「立即检查」语义从「可能触发完整升级」变为「只检查+显示裁决」;.last-install.json 的 source 值对面板发起的安装从 advisory:web-panel 变为 manual-web(读取方兼容任意字符串);checkOnly=false 的 legacy 路径逐行验证字节级不变;③浅色模式树图渲染字节一致;④列拖拽为纯增量交互,既有布局不动。无静默语义漂移。
  6. 是否破坏缓存:不涉及(未触碰前缀缓存/wire/缓存相关路径)。
  7. 是否改了设计方向:不涉及(无架构/边界/数据流转向;UA 注册表是进程内诊断面,不进存储)。
  8. 是否引入新配置:无(无 config 字段、无 env、无 CLI flag;注册表上限是代码内具名常量)。

逐件审查要点(独立验证)

  • ①冲突报告:4 条 codex 签名逐字核对真实日志点(handle.ts:2753 / prepare-openai.ts:365 / prepare-responses.ts:303,607,806,812);测试正反双向都有(含「codex 相邻但无关的行不得误捕」负例);BILI_PLUGIN_MARKER 读字面量避免 ESM 环,与仓内既有纪律一致。
  • ②Check now:hermetic mock registry + 真实 npm tarball 布局;主回归 = issue 场景精确复现(autoUpdate:false 点击 ⇒ tarball 请求数 0、磁盘版本不变、last-checked 已刷新);blocked-advisory / deferred / up-to-date 各有裁决钉。
  • ③树图暗色:两套暗色调色板(OS media + pinned data-theme)都定义了全部变量,测试正则钉住。
  • ④列拖拽(外部贡献 wxy):按外部提交从严标准过——级联数学手工推演与实现一致,隐藏列守卫/监听器清理/幂等重绑全部正确,vm 沙盒行为测试带手工计算期望值。质量达标,无需重构。发现并顺手修掉 1 个真缺陷:提交信息里 Refs #4826Co-authored-by: 缺换行,squash 后 wxy 署名会丢——已 amend 修正,作者身份保留(最终 log 已核)。

CI 事件说明(如实披露)

合并后收尾(留给你)

两件「二选一」我独立核实过:#4650 与 #4651 同症状同机制(#4650 还带 kernel-lock 漂移,排除正确);#5254 与 #5422 文件集完全相同。取一舍一的判断都成立,建议合并本 PR 后把 #4650、#5254 按重复关闭(agent 不关单,留给你操作)。

结论

代码层面无拦下项,回归清单干净;head 2e876de 的 CI 重跑预期转绿(#5719 pin 已对齐)。auto-merge 门禁不适用(触碰 src/update.ts + 含 feat 成分),需人工合并。标签已按 PR diff 本身判定:bug / p2 / scope/ui(与现有标签一致,未调整)。

…x auto-compact site list

- src/update.ts / src/server/update-actions.ts: the check-only docs said only the throttle window is skipped, but the install-failure backoff is bypassed on that path too (`!force && !checkOnly && backoffInCooldown`) — name both pacing gates and drop backoff from the armed-gate list.
- src/web/diagnostics.ts: CONFLICT_LOG_PATTERNS entries are one-per-message-shape, not one-per-log-site — "codex local auto-compaction detected" fires on both the openai and responses wires.
- tests/issue4649-conflict-report-client-coverage.test.ts: add the prepare-openai.ts site to the evidence-line list.

Comment-only; zero behavior change. Verified: affected test files pass, tsc --noEmit clean.
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

CI 已全绿:head 2e876de 上 30/30 check 通过、0 失败——此前红的三个 shard(ubuntu-22/2、windows-22/4、ubuntu-24/2)全部转绿,#5719 的 T1/T8 pin 对齐生效,确认首轮红与本次四件改动无关。

收工判定:可合。合并后两件收尾留给你:#4650(被 #4651 取代)、#5254(#5422 重复)按重复关闭;Closes #4826/#5417/#4791/#4649 随合入自动关闭。

@ranxianglei
ranxianglei merged commit 295ba58 into master Nov 7, 2026
51 checks passed
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.1067-master.295ba58 (rolling master tag).

npm install -g billion-context@0.0.1067-master.295ba58  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment