Skip to content

[PR] feat: panel-embedded blog & articles — render bundled markdown in the panel's own style - #4597

Merged
ranxianglei merged 9 commits into
masterfrom
2026-10-24_panel-blog-view
Oct 25, 2026
Merged

ranxianglei merged 9 commits into
masterfrom
2026-10-24_panel-blog-view

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

这是什么(按 owner 反馈重做,#4588 的思路被否后换头)

面板不接入整个官网;而是在面板里加一个自己的「博客 Blog」页,用面板自己的视觉渲染几篇内置的博客与长文(和更新日志区同一套路:markdown 服务端转义优先渲染 → 面板组件),点卡片展开正文,双语跟随面板语言切换,离线可读。

改动

  • src/web/blogfeed.ts(新):GET /__bili/blog JSON feed——收录 ① website/blog/posts/*.md(+.zh.md 双语对)② website/articles.json 清单列出的仓库长文(paper 中英文)。服务端用 web/markdown.ts(XSS-safe)渲染;图片走独立路由 GET /__bili/blog-assets/<rel>——穿越/坏编码/扩展名白名单三重门;目录缺失→空 feed,绝不抛。内存缓存每进程一次(内容只随包更新变)。
  • web/markdown.ts 两个增量能力(纯增量,kernel handoff 输出不受影响):图片引用(http(s)/面板资产路由之外的源一律丢弃)+ GFM 管道表格(复用面板 .data 表格样式)
  • 面板:博客/Blog 页(PAGES+nav+页壳+i18n zh/en+CSS)、卡片列表点击展开、懒填充正文
  • package.json files 只收需要的:paper/*.md、paper/figures/*.png(原有)、website/blog/posts、website/articles.json——包体增量 ~100KB,不再整站 1.5MB
  • 文档同步:CHANGELOG / README zh+en / 官网 docs 页 WebUI 列表 / architecture.md

配置面(§3)

零新键/env/磁盘缓存。内容随自更新前进,GitHub Pages(#4561)仍是永远最新的完整文库;面板这份是离线兜底快照。owner 签核记录在 #4587(含本轮改向说明)。

验证

  • tests/web-blogfeed.test.ts 7 例全绿(排序/双语配对/XSS 逃逸/图片改写与穿越丢弃/表格/资产路由正负双向/坏清单降级/空根空 feed/真树探测);web-i18n 键对齐 10/10
  • web-sessions/web-changelog/admin-origin/admin-probe 定向套件绿;typecheck 干净
  • 真机冒烟(npm run build 后跑 dist):博客导航就位、feed 返回 meet-bili(中英)、图片路由 200 image/png、%2e%2e 穿越 404
  • 依赖提示:文章库条目要等 [PR] feat: website article library — sync repository long-form markdown into the site #4564 合入(manifest 在那边);合后 paper 自动进 feed,本 PR 无需再动

Closes #4587

@ranxianglei ranxianglei changed the title feat: panel-embedded blog & articles — render bundled markdown in the panel's own style [PR] feat: panel-embedded blog & articles — render bundled markdown in the panel's own style Oct 24, 2026
@ranxianglei

ranxianglei commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner Author

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

owner 实测发现「博客点不了」——已修复并补了回归测试(c5b03c8):

根因:client.ts 路由函数的顶层正则白名单 ^#/(overview|config|updates|connect|logs)$ 是独立硬编码的,我加 Blog 页时只更新了 PAGES 数组和 dispatch,漏了这一处——#/blog 匹配不上,静默落回 overview。教训:页面注册有三处联动(PAGES / route 白名单 / dispatch),这种硬编码清单才是漂移源。

验证(这次是真跑过的):新测试 tests/web-blog-route.test.ts 用 vm harness 执行真实 WEB_CLIENT:① hash=#/blog → blog 区显示、overview 隐藏、feed 恰好拉一次、卡片渲染;② #/overview 与 #/logs → 不碰 feed、blog 区保持隐藏。反向验证过:把修复撤掉测试必红,恢复必绿。typecheck + build + dev server 冒烟均复跑通过。

预览 server 已用新构建重启,还是这个地址:http://192.168.10.157:18742/__bili/ → 顶栏「博客」。

ranxianglei and others added 3 commits October 25, 2026 03:46
… in the panel's own style (#4587)

Per owner feedback the panel does NOT serve the whole website; it renders a
few posts/articles with its own look instead:
- src/web/blogfeed.ts: GET /__bili/blog JSON feed (website/blog/posts/*.md +
  website/articles.json manifest, both EN/ZH) rendered server-side with
  web/markdown.ts; images ride guarded GET /__bili/blog-assets/<rel>
  (traversal/encoding/extension gates); fail-soft, no config surface
- web/markdown.ts gains image refs (http(s)/panel asset route only) and GFM
  pipe tables rendered with the panel's .data classes — additive, kernel
  handoff output unaffected
- panel gets a 博客/Blog page (card list, click to expand, bilingual via the
  existing language toggle which reloads) + nav entry + CSS
- package.json files ships only the needed markdown + figures (+~100KB,
  not the whole site)
…the PAGES list (#4587 owner repro)

#/blog fell through the top-level regex (overview|config|updates|connect|logs)
and silently stayed on overview. Add blog to the alternation and pin both
directions with a real-vm WEB_CLIENT harness test (tests/web-blog-route.test.ts):
fix reverted -> red; fix present -> green.
A post with neither a frontmatter date nor a YYYY-MM-DD filename prefix
got date = base.slice(0,10) — a garbage string that broke the documented
undated-tail ordering. The manifest-article path already validated its
date (validDate ? date : ""); apply the same gate to the post fallback.
Pinned by a fixture post with no date anywhere.
ranxianglei pushed a commit that referenced this pull request Oct 24, 2026
…#4597)

Conflicts (2, both union-of-intent):
- src/web/page.ts: keep master's #3536 empty-favicon head change AND keep the full nav (overview/sessions/config/connect/logs/updates/blog). Note: master's #4590 line-rewrite silently dropped the #/updates nav link from page.ts while client.ts still routes #/updates — this merge keeps the link alive on this branch; the master-side loss is reported separately.
- CHANGELOG.md: keep both sides' Unreleased/Added entries (master's D5-5 + #4316 layer-3 PR3 blocks, then this PR's blog entry).
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_panel-blog-view (0607133)

Latest build — install this exact version

npm install -g billion-context@0.0.5715-pr.4597.0ed6ea7

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
0607133 billion-context@0.0.5715-pr.4597.0ed6ea7 build
66058a3 billion-context@0.0.5676-pr.4597.52b8621 build
fbf7f2e billion-context@0.0.5602-pr.4597.4d904f3 build
900c09c billion-context@0.0.5581-pr.4597.2445817 build
89b0cbb billion-context@0.0.5580-pr.4597.b97aefe build
ed837ab billion-context@0.0.5577-pr.4597.c39a915 build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

冲突已解决,push 完成:merge commit ed837abdd 已推到 2026-10-24_panel-blog-view(fast-forward,无需 force-push)。PR 状态现为 mergeable: true,blocked = 等必需 CI 检查跑完。

查重: 不重复(本 PR 即冲突当事方;更早的同名 PR #4588 已按 owner 反馈关闭并由本 PR 取代)。
标签: scope/ui + p3(功能类、面板 UI 范围、轻微;已保留原 pr 标签)。

结构化八问

  1. 是什么问题:PR 分支与 master 冲突(dirty)——分支上次同步到 ba5ab0bce 后,master 又合入了 [PR] merge: tier-5 train — dsh prepare/streaming domain (7 PRs: bili_final terminal marker, auto-fold storm gate, wire-only guard) #4590(tier5-prepare-train,441 文件),两边都动了同一批面板文件,共 12 个文件双侧触碰。
  2. 什么原因导致的:不是代码缺陷,是并行开发的正常文本冲突:只有 2 处真冲突(src/web/page.ts 顶栏导航行、CHANGELOG.md Unreleased 区),其余 10 个重叠文件 git 自动合并干净。
  3. 影响范围与严重程度:只挡本 PR 合并(dirty 不可合),对用户运行实例零影响。已解除。
  4. 怎么修复的:把 master merge 进分支(不 rebase,避免 force-push),两处冲突按「意图并集」解:
  5. 是否有回归问题:逐项核过既有行为——Updates tab(Add a changelog section to the web page. Explore whether we can at least auto-fetch the release notes for each version a | web页面增加changlog,看是否可以至少自动拉去每个版本release 的内容,并在适当的地方用户点击能看到更新了啥 #3719):client.ts 的 PAGES/路由白名单/loadUpdates 两侧都在,合并树完整;博客路由(c5b03c8 修的 PAGES/route 白名单/dispatch 三处联动)未被合并触碰;i18n 双语键两侧共存(web-i18n 对齐测试绿);package.json 版本保持 0.1.206 未动,files 数组为两侧并集。另发现一个 master 侧既有缺陷(与本 PR 无关):[PR] merge: tier-5 train — dsh prepare/streaming domain (7 PRs: bili_final terminal marker, auto-fold storm gate, wire-only guard) #4590 的 favicon 改动拿 Add a changelog section to the web page. Explore whether we can at least auto-fetch the release notes for each version a | web页面增加changlog,看是否可以至少自动拉去每个版本release 的内容,并在适当的地方用户点击能看到更新了啥 #3719 之前的旧快照整行重写了 page.ts 导航行,把 master 上的 #/updates 顶栏链接抹掉了(功能还在、手动敲 URL 能开,但顶栏入口没了)——已立 EN | Web panel top bar lost its Updates tab entry — #4590 favicon rewrite dropped the nav link #4616([no-dispatch],修复随本 PR 合并自动带上,一行小修性质)。
  6. 是否破坏缓存:不涉及(未触碰压缩/缓存/重试/增量游标任何逻辑)。
  7. 是否改了设计方向:不涉及。
  8. 是否引入新配置:无。

本地验证(定向):typecheck 干净;tsup build OK(dist-external OK);定向跑 tests/web-{blogfeed,blog-route,i18n,updates,routing,changelog}.test.ts = 40 pass / 0 fail。全量套件判定以推送 head 上的远程 CI 为准,红了先看 #4599。

…line-rewrite

9addf98 (#3536 favicon fix) rewrote the whole topbar line in
src/web/page.ts and dropped the updates <a> as a side effect — the
Updates tab stayed routed (PAGES/route()/loadUpdates in client.ts) but
became unreachable from the panel UI, and its nav.updates catalog entry
turned into the dead-key failure on pristine master (#4599 born-red
list). Restoring the anchor at its original position (after logs) fixes
the regression at the source and makes the catalog key referenced again.
Found while resolving this branch's rebase conflict in the same line.
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

查重: 不重复。 本 PR 即功能请求 #4587 的实现载体(Closes #4587);open/closed issue/PR 中无其他「面板内置博客」实现——#4588 是「面板接整个官网」的早期方向,已被 owner 否决关闭,与本 PR 机制不同(整站接入 vs 内置离线快照渲染)。

做了什么:独立代码审查(逐文件读 diff + 读改动前既有行为,不复述 issue 结论)→ rebase 到当前 master 146b34f27(2 处冲突按 union-of-intent 解决)→ 顺手修掉审查发现的 2 个小问题(独立标注 commit)→ 本地定向验证全绿 → push 新 head 900c09c67,PR 冲突态已清(mergeable=True)。透明说明:rebase 前分支上有一个 ci-check 自动 merge commit(ed837abdd,同步 master),我用线性 rebase 栈替换了它——逐文件 diff 核对过,冲突解法一致,仅多出下述两个小修,无内容丢失。

八问:

  1. 是什么问题:按 The panel includes a built-in snapshot of the official website: website/ is shipped with the npm package, and the proxy | 面板内置官网快照:website/ 随 npm 包发布,代理在 /__bili/site/ 提供博客与文档 #4587 在面板里加自己的「博客 Blog」页——用面板自己的视觉渲染几篇内置 markdown(发布笔记 + 长文),双语跟随面板语言,离线可读;不是接入整个官网。
  2. 什么原因导致的(审查视角):原设计成立——feed/资产双路由、图片穿越三重门、fail-soft 空 feed、服务端转义优先渲染、每进程内存缓存、零配置面。但审查发现两个真实缺陷:① blog feed 的文件名日期回退未校验;② rebase 时发现 master 自身回归(The favicon.ico request in the dsh settings panel is being routed into proxy forwarding (hitting upstream and returning | dsh 设置面板里的 favicon.ico 请求掉进代理转发(打到上游 403),面板静态资源路径应全部由管理面自答 #3536 删锚点,见下)。均已当场修掉。
  3. 影响范围与严重程度:新增 Blog 页 = bili Web 面板用户面,纯增量,不动既有功能。两处小修:① 新代码的小正确性缺陷(无日期前缀且无 frontmatter date 的帖子会拿到垃圾 date 串,破坏「无日期者稳定尾部排序」契约);② master 侧回归——Updates tab 自 The favicon.ico request in the dsh settings panel is being routed into proxy forwarding (hitting upstream and returning | dsh 设置面板里的 favicon.ico 请求掉进代理转发(打到上游 403),面板静态资源路径应全部由管理面自答 #3536 起从 topbar 不可达(只能手输 URL),同时其 i18n 键成为 master born-red 死键(CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 born-red 清单已列)。严重度均为低(p3)。
  4. 怎么修复的:① blogfeed.ts 日期回退改为先 validDate 校验再取、否则置空(commit 5793205c3,测试补了无日期 fixture 钉住);② 恢复 #/updates topbar 锚点到原位置(logs 之后,commit 900c09c67)——根因是 The favicon.ico request in the dsh settings panel is being routed into proxy forwarding (hitting upstream and returning | dsh 设置面板里的 favicon.ico 请求掉进代理转发(打到上游 403),面板静态资源路径应全部由管理面自答 #3536 favicon 修复整行重写 topbar 时顺手把该行删了,页面本身(PAGES/route/loadUpdates)从未退役,所以修法是恢复锚点而不是删 i18n 键;这同时从根上消掉死键门禁红。CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 已留言建议 master 侧同向修复。
  5. 是否有回归问题:逐项审过既有行为——
    • web/markdown.ts 增量能力(图片引用 + GFM 管道表格)会波及既有消费者 handoffHtml(src/web/sessions-data.ts:1201):行为变更披露——旧 = 含 ![x](http…) 或管道表格行的边缘内容渲染为字面「!+链接」/普通段落行 → 新 = 渲染为 img/表格;转义语义不变(XSS 面不变),属保真度提升,kernel handoff 输出不受影响;
    • Updates 锚点恢复 = 找回既有能力(旧=不可达 → 新=可达),非新语义;
    • 无日期帖子的 date 字段:旧=垃圾串 → 新=空串(排序更稳);
    • 错误处理/阈值/时序/输出格式均未动;博客两个 admin 路由仍先过 tunnel/loopback/trusted-origin 门才到 dispatch(admin.ts:211-228 逐行核过);资产路由正负双向都有测试钉住(%2e%2e 穿越、坏编码、扩展名白名单)。
  6. 是否破坏缓存:不涉及。feed 缓存键于进程生命周期(内容只随包更新变);不动请求管道与 prefix cache。
  7. 是否改了设计方向:没有。沿用更新日志区既有套路(服务端渲染 → 面板组件);GitHub Pages 仍是永远最新的完整文库,面板这份是离线快照。
  8. 是否引入新配置:零新键/env/磁盘缓存(owner 签核记录在 The panel includes a built-in snapshot of the official website: website/ is shipped with the npm package, and the proxy | 面板内置官网快照:website/ 随 npm 包发布,代理在 /__bili/site/ 提供博客与文档 #4587)。

标签: p3 / pr / scope/ui(已就位:功能请求、面板 UI 面、轻微严重度)。

验证:本地定向套件 74/74 绿(web-blogfeed 7 / web-blog-route 2 / web-i18n 10 / web-sessions / web-changelog / web-updates / web-routing / admin-origin / admin-probe);typecheck 干净;build OK(build-info=900c09c67)。全量回归判定以 push 后远程 CI 为准。

CI 状态:PR 现可合并(冲突已清)。当前红条全部是 master 146b34f27 的继承红(unused-exports ClientBuildCheck + LIVE_FILES tripwire 分片,均在 #4606 修复集内)——#4599 已留言;#4606 合入后 rebase/重触发即绿,分支侧无需再动。

收工判定:审查通过,冲突已解,两处小修已带并披露(见第 5 问行为变更)。CI 转绿后即可由人合并(agent 不合并);文章库条目待 #4564 合入 manifest 后自动进 feed,本 PR 无需再动。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

CI 状态更正(接上条):head 900c09c67 上当前这次 CI run(40129386997)是 skip-scope run(plan job 判为 labeled 事件触发,#4599 floor 16 记过的模式:非 ci:full 的 labeled 事件 → 全跳过,短暂遮蔽真实状态)——静态门禁全绿,唯一真实红 = 继承的 unused-exports(ClientBuildCheck,master born-red,#4606 覆盖)。test 矩阵本次没有跑,所以这个 head 还没有全量测试判定。按 CI 协调政策不重复烧矩阵去复现已知的继承红(LIVE_FILES tripwire 在 #4606 合入前每个 rebase 过的 head 都会命中同一签名):等 #4606 合入后我把分支 rebase 到新 master 重触发,那次 push 事件 run(scope=core)就是本 head 的真实全量判定。若需要现在就出判定,给 PR 打 ci:full 标签即可跑全矩阵(预期除继承红外全绿)。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

状态说明(这条是旧评论的重复转发,无新指令):收到的是 floor 3(c5b03c8「博客点不了」修复报告)的重投——该问题当时已处理完毕,线程其后已推进多轮。当前实况核对过:

收工判定:冲突已清、审查已过、无新增动作;等 #4606 合入后做最后一次 rebase/重触发转绿,即可由人合并(agent 不合并)。

ci-check added 2 commits October 25, 2026 06:08
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

unused-exports 红已修(新 head fbf7f2efd)——归因是混合的:1 继承 + 2 本 PR 自带,本线程此前的「剩余红=纯继承」判定漏了后两条,在此更正。

拉了失败 job(run 40126930026,head ed837ab)日志核实,门禁共报 3 条:

发现 归因
src/agent/client-build-note.ts: ClientBuildCheck 继承——与 master head 146b34f 逐字节同一报错行(#4545 引入、de-export 清扫漏掉,#4602/#4606 修复集内)
src/web/blogfeed.ts: BLOG_ASSET_PREFIX 本 PR 自带——导出但全仓无任何文件引用,仅本文件内部使用
src/web/blogfeed.ts: BlogItem 本 PR 自带——同上

处置(两个独立标注 commit,已推):

本地验证:node scripts/check-unused-exports.mjs → ✓ unused-export gate: clean (6 waived);typecheck 绿。等 CI 在新 head 重触发。

八问

  1. 是什么问题:unused-exports 门禁报 3 个「导出了但没人用」的符号,PR 检查矩阵一直过不去。
  2. 什么原因导致的:① master 侧 train 新增的类型只在本文件用却带 export,清扫漏掉(已知,在 fix(ci): master unused-exports is red — ClientBuildCheck is exported but only used inside its own file #4602/[PR] fix(ci): clear the two master-red gates in one branch — unused-exports (#4602) + the #3890 LIVE_FILES tripwire (#4604) #4606);② 本 PR 写 blogfeed.ts 时给内部常量/类型顺手加了 public export,没有外部消费者。
  3. 影响范围与严重程度:纯 CI 门禁信号问题,零用户可见影响;不修则本 PR 永远过不了该门禁。
  4. 怎么修复的:三处声明各去一个 export 关键字;符号原位保留、文件内照用,无跨文件引用,不改任何运行时行为。
  5. 是否有回归问题:审过——三条声明均无文件外 import(gate 的 INTERNAL_ONLY 判定 + 全仓 grep 双重确认),去 export 对 TS 类型擦除和 const 作用域均无语义影响;wire/持久化/配置面未触碰。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:没有。
  8. 是否引入新配置:没有。

收工判定:点名的 unused-exports 应在新 head 转绿;若仍有其他红,均为继承项(LIVE_FILES tripwire 分片,盘点第 2 条,#4606 修复集内),#4606 合入后 rebase/重触发即可,分支侧无需再动。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

本次告警对应的红是「过期红」——分支在两次告警之间被改写又恢复,当前 head 已全绿,无需再推任何提交。

发生了什么(时间线):

  1. 我上一轮把 3 处 de-export 修好推到 fbf7f2efd(含此前会话的 topbar 锚点恢复 900c09c67);
  2. 之后 ci-check bot 改写了分支(新提交 89b0cbbe6,"drop dead nav.updates i18n catalog key",作者 ci-check@local):它丢掉了 topbar 锚点恢复和我的两条门禁修复,换成了另一个方向的修法(删 i18n 死键而非恢复链接)。本条告警(run 40128460303,head 89b0cbb)就是这次中间态的红——blogfeed 的两个导出随改写复活;
  3. 再之后分支又被推回 fbf7f2efd(即第 1 步的状态)。当前远端 tip = fbf7f2efd。

当前状态核实(本地 checkout fbf7f2efd 实测):

处置:不推任何东西——我在中间态上准备的两条重复修复提交若推出,只会重新引入被丢弃的谱系、重开竞态,且无新增内容。

八问

  1. 是什么问题:告警的红来自一个已不存在的分支中间态(ci-check 改写产物),不是当前代码的缺陷。
  2. 什么原因导致的:多个写入者并发操作同一 PR 分支——ci-check 用「删死键」替换了「恢复链接」并顺带抹掉了门禁修复,随后分支又被恢复回修复后的状态;告警检测与状态恢复之间存在时间差。
  3. 影响范围与严重程度:零用户影响;唯一实质风险是并发写分支的竞态本身(哪个写入者最后推谁就赢),当前已收敛到正确状态。
  4. 怎么修复的:无需修复——当前 head 本就包含全部 3 处 de-export,本地复验门禁+typecheck 双绿,CI 在该 head 上全套 success。
  5. 是否有回归问题:审过当前 head——blogfeed 两个内部符号无文件外引用(去 export 无语义变化);ClientBuildCheck 同法;i18n 键与链接配对完整。无回归。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:没有。留一个待拍板项给 owner:nav.updates 曾有两个相反修法在几分钟内先后落分支(恢复 topbar 链接 vs 删除 i18n 键),现在是「链接+键都在」的版本(面板顶栏有 Updates 入口,#/updates 页可点达)。若产品上不想要这个入口,应成对删(链接+键),只删键会留下不可达页;我的建议是维持现状。
  8. 是否引入新配置:没有。

收工判定:PR 当前 head fbf7f2efd CI 全绿,unused-exports 点名的失败已不存在于现行 head;本 lane 不再推提交,等 PR 正常流转。

…r-article pages (#4587 owner feedback)

Owner: no collapse/expand cards; dozens of posts must not bloat one page. The
index now renders metadata only (date/kind/title rows as hash links); an
article's HTML renders only when its #/blog/<slug> page is opened (same
pattern as the sessions detail view). Feed fetch stays once-per-process cached.
vm-harness tests cover index links, detail render (locale twin), unknown slug
degrade, and the not-activating directions.
@ranxianglei

Copy link
Copy Markdown
Owner Author

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

按 owner 反馈把折叠卡片改成了正经博客路由(5c6cc10):

  • #/blog = 索引页:只渲染元数据(日期 / 种类徽章 / 标题行),每行是 hash 链接——发几十上百篇也只是几十行轻量 DOM,不会卡;
  • #/blog/<slug> = 独立文章页:打开哪篇才渲染哪篇的正文(返回链接 + 日期/徽章 + post-body),和面板 #/sessions/<id> 细节页同一套模式;
  • feed 仍是每进程一次、内存缓存,索引↔文章来回切换不再重复拉取;
  • 测试:tests/web-blog-route.test.ts 4 例(真 WEB_CLIENT vm harness)——索引起跳链接、文章页渲染(含语言孪生)、未知 slug 降级为返回链接不崩、非 blog hash 绝不触碰 feed;web-blogfeed / web-i18n 共 21 例全绿,typecheck + build 通过。

另:本次推送叠在分支上已有的 4 个评审修复提交之上(date 回退校验、#3536 顶栏锚点还原、去内部导出等),fast-forward 无冲突,一并纳入本 PR。预览 server 已用最终构建重启(http://192.168.10.157:18742/__bili/)。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

第 2 次冲突已解决,push 完成:merge commit 66058a3b8 已推到 2026-10-24_panel-blog-view(fast-forward,无 force-push)。PR 现 mergeable: true,blocked = 等必需 CI 检查。本轮转发的旧评论(5c6cc10 子路由改造报告)已知悉——那个 push 就是本次冲突解决所叠的分支基础,原样保留。

查重: 不重复(本 PR 即冲突当事方)。标签: pr / scope/ui / p3(已就位,不变)。

结构化八问

  1. 是什么问题:PR 分支与 master 再次冲突(dirty)——master 合入了 [PR] fix(release): label-gated head-tree publish for conflicted carve-out ship PRs #4596(release 标签改名 backport-ship + Opt-in raw dumps (ACP_DUMP_BODY) write conversation bodies to disk unmasked with no warning — real credentials landed on disk #4482 dump 字节帽修复 + 恢复 #/updates 顶栏锚点,即 EN | Web panel top bar lost its Updates tab entry — #4590 favicon rewrite dropped the nav link #4616 的 master 侧修复),与分支又碰上 3 个文件。
  2. 什么原因导致的:并行开发的正常文本冲突,非代码缺陷。3 个重叠文件里只有 1 处真冲突:src/web/page.ts 顶栏导航行(master 加回 updates 链接 vs 本分支的 7 链接全导航行)。另两处自动合并干净:client-build-note.ts 两侧做了逐字节相同的改动(都去掉 ClientBuildCheck 内部导出——与 [PR] fix(ci): clear the two master-red gates in one branch — unused-exports (#4602) + the #3890 LIVE_FILES tripwire (#4604) #4606 同一行修法);CHANGELOG.md 两侧插在不同小节(Post-fold resaves erase resolved block interval bounds | 折叠后重存会把已解析的块区间边界抹回未知(-1/-1) #4608 Fixed 条目 vs 面板博客条目)。
  3. 影响范围与严重程度:只挡本 PR 合并,对用户运行实例零影响。已解除。
  4. 怎么修复的:把 master merge 进分支(不 rebase,避免 force-push)。唯一真冲突按「意图并集」解:保留本分支的 7 链接导航行(overview/sessions/config/connect/logs/updates/blog)——它是 master 行的严格超集,master 要恢复的 updates 锚点天然包含在内;CHANGELOG 两侧条目全留。
  5. 是否有回归问题:逐项核过——Updates tab(EN | Web panel top bar lost its Updates tab entry — #4590 favicon rewrite dropped the nav link #4616):合并树顶栏含 #/updates,master 侧修复完整保留;博客子路由(owner 反馈的 #/blog 索引 + #/blog/<slug> 文章页,5c6cc10d)未被合并触碰;unused-exports 门禁:ClientBuildCheck 两侧同去导出(与 [PR] fix(ci): clear the two master-red gates in one branch — unused-exports (#4602) + the #3890 LIVE_FILES tripwire (#4604) #4606 一致),博客 feed 的内部导出已在分支自身提交清掉;package.json 版本保持 0.1.206 未动;merge diff 对 PR head 恰好等于 [PR] fix(release): label-gated head-tree publish for conflicted carve-out ship PRs #4596 的 19 文件批次(+315/−44),无任何额外内容混入。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入新配置:无。

本地验证(定向):typecheck 干净;build OK(build-info=66058a3b8,dist-external OK);定向跑 tests/web-{blogfeed,blog-route,i18n,updates,routing,changelog}.test.ts + tests/admin-{origin,probe}.test.ts = 48 pass / 0 fail。全量套件判定以推送 head 上的远程 CI 为准。

收工判定:两次冲突均已解除,分支自上次 rebase 栈以来仅新增这一个 merge commit,CI 转绿后即可由人合并(agent 不合并)。

@ranxianglei

Copy link
Copy Markdown
Owner Author

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

PR #4597 更新说明(owner 已确认样式,进入可合并准备):

  1. 样例文章已从工作区撤除(feed 恢复只含 meet-bili)。
  2. 本分支重新合并了最新 origin/master(此前另一侧的 conflict-sync 停在旧整合点,bd29924d 之后 master 又走了 21 个提交)。之前红掉的三个用例正是整合点过旧所致:[Bug] Epoch confirmation reaps the retained fold before pausing, breaking decompress and realignment recovery #4260 epoch-latch(由 b06b408/dc86ca83 修)、cancelled-growth auto-fold fixture(由 6843789 重挂)、escalation latch review gap(同源)。合并后本地四个文件复跑:除下述继承红外全绿。
  3. 剩余一个失败是 master 侧既有问题,非本 PR 引入:tests/storage-orphan-recovery.test.ts “cold load recovers the pre-fix orphan freeze before processing a request” —— 在裸 origin/master(28b667b)本地同样红。关联线索:Cold loads keep serving an index frozen by pre-#4249 orphan-skipped ingests #4370/[PR] fix: recover orphan-frozen indexes on cold load #4373 一线、[PR] [ci-unblock] Revert \"one-time ledger restamp …\" (#4575): restore the green master test matrix #4668(ci-unblock,restamp 回滚恢复绿矩阵)。按 CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 总控规则在此备注,不另开 issue。

web 定向套件(web-blog-route / web-blogfeed / web-i18n 共 21 例)+ typecheck + build 均绿。等远端 CI 裁决(#4599)。

@ranxianglei
ranxianglei merged commit d1b46fc into master Oct 25, 2026
43 of 50 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.834-master.d1b46fc (rolling master tag).

npm install -g billion-context@0.0.834-master.d1b46fc  # 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

Projects

None yet

1 participant