Repository navigation
[PR] feat(web): changelog section — per-release notes from GitHub Releases (#3719) - #4152
Conversation
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.5170-pr.4152.a16d88cThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4152.tgz
npm install -g packageInstall instructions are refreshed on each push. |
|
(ai: zhipuai-lb/glm-5.3) 扩展提交 5cff125(同 qwen worker 实现、主会话独立复验):独立的「更新 / Updates」导航 tab,与总览/会话/设置并列:
主会话复验:tsc 0 错;27/27 测试;build;真机冒烟——GET /__bili/update/state 返回正确快照;坏版本形状 400;合法版本在源码 checkout 上被 #580 守卫正确拒绝(预期行为,真 npm 安装上才会执行);面板 HTML 含新 tab 全部元素。 |
(ai: vllm-qwen/qwen3.8-27b) CI 修复完成 + 剩余红分片取证结论 修复:去掉 4 个类型声明的 剩余红:只剩
已立项 #4161 跟踪(标签 bug + scope/ci + p2),附完整观测表与三个候选修法(逐个加固受害测试 / 把这类形状加入 run-ci-tests.mjs 的有界重试分类 / 组合)供拍板。其中 #4079-egress-window-fuse 在 4 个分片流里中 3 次,是最脆的一个。 建议:runner 池恢复后人工 rerun 一次即可(或等 #4161 落地后 rerun);master 自身红着时继续烧 rerun 收益很低。 八问
判定:unused-exports 修复完成且可验证(job 绿);剩余红为环境性 flake(master 对照实验同红 + 受害者轮换 + diff 纯类型级三重证据),已立项 #4161。建议 runner 池恢复后 rerun 一次收尾。 |
|
(ai: zhipuai-lb/glm-5.3) Round 2 of the #3719 polish, now on this branch (commit 771d62c):
Verification on the pushed head: tsc clean, web-changelog/web-updates/web-i18n/admin-origin 27/27, build OK, live CDP DOM dump (first=SUMMARY, dOpen=true, clean serialization) + zh screenshot. Note: these edits were first made in the shared checkout which was force-moved by the v0.1.204 release flow (uncommitted work lost); they were rebuilt byte-for-byte from the captured served page in an isolated worktree and re-verified end-to-end before pushing. |
bb1322b to
0cd4005
Compare
…#3719) - GET /__bili/changelog: GitHub Releases API (per_page=20), in-memory cache, one network hit per 10 minutes (mirrors update-notes throttle discipline); fail-soft — offline/HTTP/malformed failures return 200 {releases, error:"offline"} - web panel overview page: collapsible 更新日志 / Changelog card, per-release expandable notes (escaped plain text + URL links, no markdown dependency), GitHub links; bilingual i18n - /acp panel footer: 'changelog: <tag> <url>' line once the cache is warm (sync read only; once-per-process background warm-up, fail silent)
…3719) A nav tab parallel to config/connect holding everything self-update: running/disk version + last-check time, pushed release notices with tier badges, a forced check now, upgrade-now and install-specific- version actions (a selection below the running version confirms as a rollback), plus the changelog card moved here from overview. src/update.ts stays untouched: the new update-actions module only holds the process's UpdateOptions (registered once by the CLI alongside startAutoUpdate on the SAME object) and calls its existing exports — checkForUpdate(force) / forceInstallVersion / readDiskVersion / lastUpdateCheckTime — each behind an in-flight dedupe flag. Three new admin-gated routes (/__bili/update/state|check|install) follow the existing POST 400 shape and the DNS-rebinding origin gate.
…ullets/latest badge (#3719)
…3719) Round-2 polish of the Updates tab, re-played in an isolated worktree after the shared checkout was force-moved by the v0.1.204 release flow (uncommitted round-2 edits were lost at 2026-10-22 00:49; rebuilt byte-for-byte from the captured served page + verified end-to-end again): - changelog opens by default; 「全部展开 / 收起全部」action row - version select jumps to that release (open + scroll + flash highlight) - release bullets grouped into fixed-order categories with counts (feat/fix/kernel/host-lane/storage/update/web-ci-tests/other), empty groups skipped - fixes carried from the previous round: mutable paragraph buffer, well-formed <details> open tag, bold **…** rendering in intro paragraphs
…#3719) registerUpdateActions lived inside if (opts.autoUpdate) in the CLI startup path, so installs running with auto-update off (ACP_AUTO_UPDATE=0 / config autoUpdate:false) got a panel whose check/upgrade buttons always returned "self-update not wired in this process". Manual and auto channels are independent by design (#1481 advisory watcher already is): hoist the shared updateOpts out of the gate, start the background loop only when enabled, register the manual actions unconditionally.
…de + bilingual targeted release notes (#3719) Follow-ups requested on #4152: 1. Rename the updates tab to 版本/Versions (zh nav.updates/up.title, en counterparts) — the page covers changelog + version operations, not just updates. 2. dsh settings panel gains the matching tab (PAGE_IDS + PAGE_KEYS + zh/en tab_updates) so the embedded panel exposes the versions page like the standalone web UI does. 3. The critical-update banner now carries a one-click upgrade button when the fix is still 'available' (ready = restart-only, no button). It posts the phase-2 install endpoint and keeps feedback inside the banner; new i18n keys sys.update_now/updating/update_done. 4. Release-notes entries gain optional summaryZh / minVersion / maxVersion: zh-locale web surfaces pick the Chinese one-liner (banner + notices), entries only reach RUNNING versions inside the inclusive [min, max] window. /acp text stays English (compat boundary); unset fields keep the exact historic behavior — existing entries need zero changes. CI validator + README document the new fields; tests are bidirectional (#3617).
0cd4005 to
da8425c
Compare
#4177 landed the storage durability trio but its new suite spawns child processes without registering in scripts/live-files.mjs, so the #1248 SPAWN_RE tripwire fails every CI run — master aa198fe is red and every branch rebased onto it inherits the failure. Concurrency review: the suite only spawns `node -e setTimeout` probes (no port binding) and isolates data in mkdtempSync dirs; slot 31 / zone band 19811 is free. Fixes #4333. (cherry picked from commit 9759e3e)
|
(ai: zhipuai-lb/glm-5.3) 四项小需求已落上新 head
验证:typecheck 0 错;六测试文件 38/38(update-notes/web-update-banner/web-updates/web-i18n/web-changelog/admin-origin,含 #3617 双向断言);build OK。 另:本分支此前 4 分片秒红不是本 PR 引入——master |
Since #4177 the storage contract suites transitively import acp-kernel at runtime (backend -> store -> runtime-status -> knobs -> config), and tsx resolves it to kernel/dist — which this job never built. Mirror the prerequisite the main test matrix (run-ci-tests pretest parity) and ci-e2e-dsh.yml already carry. Fixes #4336. (cherry picked from commit 0f21448)
(ai: vllm-qwen/qwen3.8-27b) CI 排查收口:本分支的红已全部定位,mysql-contract 修复已验证生效;余 3 个 test 分片仍在跑(runner 偏慢)。 mysql-contract 红的根因(非本 PR 引入)
windows (22,1) 分片红 = 环境 flake
当前 CI 状态(head d23b88b,run 39818643648)
八问:
判定:待余下 3 分片落地——若绿,本分支唯一红即 windows(22,1) 的环境 flake,rerun failed jobs 可清、可合;若其中任何一个出现已知 flake 家族之外的新失败签名,我会单独跟进并回帖。 |
|
接冲突 |
# Conflicts: # src/server/admin.ts
…4152 merge Merging master into the changelog branch kept two placements of tests/storage-durability.test.ts (PR's alphabetical insert + master's appended entry). The appended form follows the file's own rule (mid-list inserts renumber every later port band), so keep that one and match master exactly.
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.745-master.994a467 # this exact build
npm install -g billion-context@master # always the newest merged build
|
Fixes #3719
这是什么
Web 面板新增「更新日志」区块:自动拉取 GitHub Releases 每个版本的发布说明,用户点开就能看到更新了啥,附 GitHub 链接;
/acp命令尾部同步显示最新版本号+链接。填补 critical 横幅(只弹严重版)之外的常规更新通道。改动(8 文件 +407/−0)
src/web/changelog.ts(新):GitHub Releases 拉取+缓存。10 分钟节流(失败也节流,离线机器不打扰)、inflight 去重、失败保留旧视图、永远 HTTP 200({releases:[],error:"offline"})、stopIdleTimer()守 billion-context: 400 Bad Request when codex sendsrole: "developer"messages — request a request-body compat transform hook #552 契约src/server/admin.ts:GET /__bili/changelog,与其他只读__biliGET 同一鉴权链(loopback/trusted-origin 先于分发)src/web/page.ts+client.ts+styles.ts:总览页折叠卡片,首版本默认展开;正文 escapeHtml 后做 URL 链接化(函数式 replacer 防$/&注入),零 markdown 依赖src/web/i18n.ts:6 键 ×zh/en(en 无汉字按 web-i18n 钉)src/plugin.ts:/acp尾行changelog: <tag> <url>——同步读缓存(status 路径零网络);每进程一次后台 warm-up,fail-silenttests/web-changelog.test.ts(新):8 测试——字段映射/排序/20 上限/坏行跳过/节流+force/失败永不抛+节流/旧视图保留恢复/HTTP 500 与非数组设计边界
api.github.com(每 10 分钟最多 1 次),与既有 npm update check 同级;UI 链接直达 GitHub/acp尾行只在缓存已暖时出现(首查后台进行,下次 status 出现)验证
tsc --noEmit0 错;web-changelog 8/8、web-i18n 10/10、admin-origin 4/4;全部 web-* 130/130;npm run build过GET /__bili/changelog→ 200 + 20 版本(v0.1.203 正文 22973 字符与 GitHub Release 一致)实现由 worker delegate (ai: vllm/qwen3.8-27b) 完成,主会话 (ai: zhipuai-lb/glm-5.3) 审阅 diff、复跑测试并冒烟验证。