From 43db17f23b807b6aeb0d0583c21f87eb31502356 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Mon, 26 Oct 2026 18:12:07 +0800 Subject: [PATCH] docs(changelog): include the side-chat changes and credit @NolanHo #1035 (seed trim on a model switch) and #1044 (local images and deliveries) merged after v0.28.0 and ship in v0.28.1; the changelog and the release notes now list them and credit their author. --- CHANGELOG.md | 1 + CHANGELOG_EN.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index afdb23f6..907ed439 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### v0.28.1 - 🛡 **并发同键冷读合并(OOM 修复)**:全量重启后会话全部转为 detached,12 条 `/sidebar/*` 路由共享的 cwd 解析会对同一会话各做一次宿主冷观察(整份日志读 + 解码;39MB 级会话 × 44 个并发请求 ≈ 1.7GB → OOM)。现在 `cwdOf()` 把**同一会话 + 同一客户端 cwd 提示**的并发请求合并为一次真实读,其余 await 同一结果;不引入 TTL(宿主本身按持久化 revision 缓存已完成冷读),客户端提示参与 key 以免跨提示串味。`tests/smoke.spec.ts` 新增「12 并发 → 1 次冷读」与「不同提示不合并」两例。 +- 💬 **侧边对话的渲染与上下文**(贡献者 PR [#1044](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1044) @NolanHo、[#1035](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1035) @NolanHo):本地图片与交付卡在转录里就地渲染;模型切换重写 system prompt 后,种子仍按最后一次 summarizing compaction 切尾,不再把压缩前历史整段带进新线程。 - **runGit 输出上限加固**(贡献者 PR [#999](https://github.com/omdsh-dev/DSH-better-sidebar/pull/999) @lhh010):字节封顶后的 chunk 一律丢弃(闩锁)、超时/封顶路径统一销毁 stdio 并 SIGKILL 进程树、stderr 纳入同一预算;病态工作区的结果从「宿主 `RangeError` 崩溃」降为「一次 SCM 刷新失败」。 - **worktree 会话的根选择与地址基准**([#947](https://github.com/omdsh-dev/DSH-better-sidebar/issues/947) / [#950](https://github.com/omdsh-dev/DSH-better-sidebar/issues/950) / [#952](https://github.com/omdsh-dev/DSH-better-sidebar/issues/952);贡献者 PR [#956](https://github.com/omdsh-dev/DSH-better-sidebar/pull/956) @yanzhaohui1999):同一会话不再有两个基准——聊天链接按会话 header cwd 解析、打开/保存不再二次拼接,linked worktree 里也不再静默读到另一检出的同名文件。 - **关闭侧聊页签时归档其会话**([#942](https://github.com/omdsh-dev/DSH-better-sidebar/issues/942);贡献者 PR [#981](https://github.com/omdsh-dev/DSH-better-sidebar/pull/981) @mvanhorn):线程的完整父会话副本不再作为独立会话残留在工作区列表里。 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index ccb07cc2..7b029291 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -7,6 +7,7 @@ ### v0.28.1 - **Concurrent single-flight for cold cwd reads (OOM fix)**: after a full restart every session is detached, and the shared cwd resolution behind all twelve `/sidebar/*` routes ran one host observation per call (a full log read plus decode; a 39 MB session × 44 concurrent requests ≈ 1.7 GB → OOM). `cwdOf()` now shares one resolution between concurrent requests for the same session + client cwd hint; there is no TTL (the host already caches completed cold reads by persistence revision), and the hint stays in the key so different hints never leak across each other. Two new `tests/smoke.spec.ts` cases pin "12 concurrent → 1 cold read" and "different hints do not merge". +- **Side Chat** ([#1035](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1035), [#1044](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1044), @NolanHo): local images and deliveries render in the transcript, and a model switch that rewrites the system prompt now trims the seed at the latest summarizing compaction instead of carrying the pre-compaction history into a new thread. - **No more silent wrong-file writes**: tab reconciliation now reaches tabs opened in **background sessions**, and a worktree session resolves chat links against **one address base**. Renaming or deleting an open file no longer re-creates the old path on the next save, and a relative link inside a linked worktree no longer silently opens a same-named file from another checkout ([#915](https://github.com/omdsh-dev/DSH-better-sidebar/issues/915), [#947](https://github.com/omdsh-dev/DSH-better-sidebar/issues/947), [#950](https://github.com/omdsh-dev/DSH-better-sidebar/issues/950), [#952](https://github.com/omdsh-dev/DSH-better-sidebar/issues/952)). - **Host crash guard for pathological git output**: the bounded `runGit` reader now latches after the byte cap, destroys both stdio streams and kills the process tree, and budgets stderr too. A pathological worktree can no longer take the whole host down with `RangeError: Invalid string length` ([#999](https://github.com/omdsh-dev/DSH-better-sidebar/pull/999)). - **Git page**: histories with more than 1,000 branches load again ([#1013](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1013)). **Tags now decorate commits, rows and details** — lightweight and annotated, with their own inventory budget and pagination fingerprint, without consuming the branch limit ([#983](https://github.com/omdsh-dev/DSH-better-sidebar/issues/983)). @@ -15,7 +16,7 @@ - **Sidebar**: the bottom-workbench toggle stays visible while the right panel is open ([#989](https://github.com/omdsh-dev/DSH-better-sidebar/issues/989)); the macOS dock fallback avoids the window controls instead of pinning itself to the top-left corner ([#992](https://github.com/omdsh-dev/DSH-better-sidebar/issues/992)); a content-stable tab scope ends needless full-file re-reads ([#1057](https://github.com/omdsh-dev/DSH-better-sidebar/pull/1057)); closing a side-chat tab archives its session instead of leaving a copy behind ([#942](https://github.com/omdsh-dev/DSH-better-sidebar/issues/942)). - **Package**: export the `dsh-better-sidebar/icon` subpath so other packages can resolve `icon.svg` through `exports` ([#1016](https://github.com/omdsh-dev/DSH-better-sidebar/issues/1016)). -**Community contributions**: @lhh010 (#999), @wang-kaopu (#1018, #1020), @yanzhaohui1999 (#929, #956, #1012, #1002), @finley08 (#965), @UNscientific-9 (#1052, #1057), @mvanhorn (#981), @z11y11w (#1055), @WinterXMQ (#1053). +**Community contributions**: @lhh010 (#999), @wang-kaopu (#1018, #1020), @yanzhaohui1999 (#929, #956, #1012, #1002), @finley08 (#965), @UNscientific-9 (#1052, #1057), @mvanhorn (#981), @z11y11w (#1055), @WinterXMQ (#1053), @NolanHo (#1035, #1044). ### v0.28.0