Menghuan1918
f65ac689fc
merge #954 : fix(sidebar) agent-opens heartbeat and never-give-up reconnect
2026-11-08 00:09:36 +08:00
Menghuan1918
7c395231b8
merge #1129 : fix(editor) selection popup uses host floating-button tokens
2026-11-08 00:09:10 +08:00
Menghuan1918
67c1f860bf
merge #1132 : fix(sidebar) merge quote records from other pages of the same origin
2026-11-08 00:08:07 +08:00
Menghuan1918
076fd17ef3
merge #1131 : fix(editor) restored drafts keep their mtime baseline
2026-11-08 00:07:45 +08:00
Menghuan1918
315193ad1f
merge #1154 : fix(markdown) restores nested code-region masks
2026-11-08 00:07:19 +08:00
Menghuan1918
137a48d25f
merge #1152 : fix(sidechat) install model-selection notice in every thread setup
2026-11-08 00:06:57 +08:00
Menghuan1918
edc77eb1f2
merge #1149 : fix(tasks) re-read agentTeams/agents per request
2026-11-08 00:06:16 +08:00
Menghuan1918
bd6363021d
docs: 重构 AGENTS.md,把发版手册 / 开发规范 / 版本适配拆成独立文档
...
- docs/release.md: 完整发版流程、版本号同步清单、Release note 模板与写作规则
- docs/development.md: 开发红线细则(构建纯度 / chunk / i18n / 皮肤 / 图标 / 稳态 / 测试矩阵 / 跨平台)
- docs/dsh-version-adaptation.md: 基线、支持线矩阵、抬基线清单、0.2.1→0.2.2 差异
- AGENTS.md: 收缩为每次都要遵守的规则 + 索引,删掉过期的 0.2.x 历史与冗长叙述
- 修正 AGENTS §3/§3.10 的失效交叉引用(host-contracts / 指南 / 一个 spec 注释)
2026-11-07 22:17:22 +08:00
ymac
63097c8b79
fix(markdown): 代码区掩码可嵌套,restore 必须跑到稳定
...
markdown-code.ts 先用 NUL 占位替换围栏块,再在掩码后的文本上扫行内代码段;
一个行内段可以把围栏占位符包进自己的替换文本里,而 restore 只做一趟
String#replace —— 内层占位符原样留在输出里。NUL 一路穿过
rewriteLocalImageUrls / rewriteLocalMarkdownLinks 进 MarkdownText,被 markdown
解析器当成 U+FFFD,于是整段代码块渲染成 `�21�` 这样的字面段落(实测一份
中文契约文档:§2.3 的三段键清单只剩 `�17�` `�16�` `�15�`,整篇 22 个代码块
只剩 1 个)。
两处修:
- restore 循环到不再变化(嵌套深度 ≤ 掩码数),往返恢复字节级不变;
- 行内代码段不再跨空行配对(CommonMark 的行内段不能跨段落)。此前一个
落单反引号会与半篇之后的反引号配对,把中间整段内容一起掩掉,图片/链接
重写也会漏掉那一片。
tests/markdown-code.spec.ts 钉住往返与两个判别性用例(回退任一处即红),
并在 0.28.1 基线上跑通 markdown 相关 12 个套件(141 例)与 tsc。
2026-11-07 22:06:01 +08:00
PerryLink
fe291fa0af
fix(sidechat): 在 setup 里装回 installModelSelection,切模型后新模型收到 [model changed]
...
0.2.2 把路由挪到 AgentModel 后,0.30.0 适配把 installModelSelection 一并删了;但该函数仍注册 agent/pre-step 监听来追加 [model changed] 提示,宿主 composeAgent 在两条分支都先装它、再 presets.mount。恢复为共享 threadSetup:5 个 setup 分支先 install 再 mount,并补 create / cold-resume 的监听回归测试。
2026-11-07 20:56:17 +08:00
PerryLink
e70b4e516d
fix(tasks): 每请求重读 agentTeams/agents,晚挂载的实验层不再永久 503
...
buildTeamsApi() 把两个可选服务取成构建期快照;agent-teams 是本插件之后才可能挂载的实验层,快照到 undefined 后 membershipOf() 永远返回 503。改为在 membershipOf() 内逐请求 ctx.get()(与 subagent-live-route 的可选运行时同模式),并补一条晚挂载的回归测试。
2026-11-07 12:53:29 +08:00
unsc9
7b6863976a
fix(editor): 划选引用的浮动按钮改用宿主浮动按钮令牌,消除半透明底色
...
.selectionPopup 的底色此前取菜单令牌(默认亮 #fcfdfeb3 / 暗 #303136a3,自带
30%~36% 透明,因为菜单本来就盖在压暗浮层上)。按钮却浮在正文上方:底下密集的
代码字形透上来就显得发虚。
改用宿主自己选区引用动作(dsh-message-quotes 的 QuoteSelectionAction)那一对
不透明默认色:常态 --dsw-alias-button-floating-fill、悬停与键盘聚焦
--dsw-alias-button-floating-hover。悬停色在默认主题下与旧的
interactive-bg-hover-solid 解析值相同(都是 neutral-bluish-75 / -800),这次
换它只为与宿主同源,并补上 :focus-visible;几何与扁平边框不变。
tests/theme.spec.ts 钉住两个填充值,禁止退回菜单令牌与 interactive-bg-hover。
2026-11-05 18:42:56 +08:00
晴猫
cd570d339b
fix(editor): 备份与磁盘比较时忽略行尾,CRLF 文件改完又撤销不再弹恢复提示
...
备份内容来自 CodeMirror,永远是 LF;readDraftBackup 用严格相等和磁盘原文比,
CRLF 文件因此永远判为不同。把 TextEditor 的 sameDocument 挪到
editor-draft-backup.ts 导出,两边共用。只打开不编辑不写备份,不受影响。
2026-11-05 19:03:46 +09:00
晴猫
d45aaa96ce
fix(editor): 恢复的草稿带回自己的 mtime 基线,保存不再绕过 fs-conflict
...
备份只存文本,重开时基线取刚读到的新 mtime,所以「恢复 → 保存」发出去的
expectedMtimeMs 恰好等于磁盘当前值,host 放行,标签关闭期间别处写入的内容
被旧草稿覆盖。
- 备份条目增加 baseMtimeMs(写入时编辑器的 mtimeRef)
- 接受恢复且基线与本次读取不同时:mtimeRef 退回条目基线,savedTextRef 置空,
否则横幅的 Reload 会把磁盘判为「只改了 mtime」就地解决,下次保存照样覆盖
- 没有基线的旧条目维持现状
Refs #1072
2026-11-05 19:03:46 +09:00
晴猫
f4ba2b7930
fix(sidebar): 同源多个页面写引用记录不再互相覆盖(否则对方的 chip 发送被拒)
...
insertQuoteChip 只在首次读存储,saveStore 却用本实例内存整体重写 key。两个
标签页交替引用时,后写的一方把另一方的记录抹掉,那枚 chip 发送时 codec 报
no longer available,宿主拒发。写之前先把存储并进内存,编号也随之不再相撞。
只影响浏览器访问(同 origin 多页面);桌面端只有一个主窗口,不会触发。
测试:selection-quote.spec 新增 2 例(两个 fresh 模块共用一个 Storage)。
2026-11-05 18:54:03 +09:00
Menghuan1918
0b6293f051
release: merge dev for v0.30.1 (settings nav icon via the shell's icon slot)
2026-11-05 11:00:34 +08:00
Menghuan1918
050ae69d40
chore(release): prepare v0.30.1
...
- package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION -> 0.30.1
- CHANGELOG: 未发布 -> v0.30.1 (bilingual)
- README / README_ZH: install commands target 0.30.1; Recent Updates trimmed to
v0.30.1 / v0.30.0 / v0.29.0
- external-plugin-guide: current version v0.30.1
2026-11-05 11:00:34 +08:00
Menghuan1918
11e6c8e63a
merge fix/settings-nav-icon-slot: 设置导航图标改走宿主插槽,消除双图标
2026-11-05 00:55:21 +08:00
Menghuan1918
ad159053f1
fix(settings): 侧边卡片的导航图标改走 settings.section.icon 插槽(此前标记 + CSS 遮罩会叠出两个图标)
2026-11-05 00:55:17 +08:00
Menghuan1918
9285c06e00
release: merge dev for v0.30.0 (DSH 0.2.2 support, side-chat images, clickable quote chips, editor draft backup)
2026-11-04 22:52:19 +08:00
Menghuan1918
fdaa597121
chore(release): prepare v0.30.0
...
- package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION already at 0.30.0
- CHANGELOG: 未发布 → v0.30.0 (25 entries, bilingual)
- README / README_ZH: install commands target 0.30.0; Recent Updates trimmed to
v0.30.0 / v0.29.0 / v0.28.2
- AGENTS + external-plugin-guide: baseline DSH 0.2.2-rc.1, current version v0.30.0
- plan record: docs/plans/2026-11-04-dsh-0.2.2-rc.1-adaptation.md
2026-11-04 22:51:32 +08:00
Menghuan1918
908db10904
docs: 记录 0.2.2 模型切换去重的那一笔
2026-11-04 22:22:05 +08:00
Menghuan1918
b10e3e9c4f
merge fix/022-model-selection-dedupe: AgentModel.select 已是落盘动作,去掉重复 append
2026-11-04 22:20:42 +08:00
Menghuan1918
7ef1dfa989
fix(sidechat): 模型切换不再把 model/selection 记两次(0.2.2 的 AgentModel.select 自己落盘)
2026-11-04 22:20:41 +08:00
Menghuan1918
78697cab50
merge chore/dsh-0.2.2-rc.1: 适配 DSH 0.2.2-rc.1(基线抬到 0.2.2 线,v0.30.0)
2026-11-04 22:13:11 +08:00
Menghuan1918
7a4a15292e
chore(dsh): 适配 DSH 0.2.2-rc.1(基线/peer/CI/脚本/文档 + AgentModel 与 PTC 类型变化)
2026-11-04 22:13:07 +08:00
Menghuan1918
09b83cc6aa
docs: 记录 2026-11-04 分诊与合入批次(10 个 PR/分支、18 条 issue 关闭、1 条判为宿主侧)
2026-11-04 21:18:32 +08:00
Menghuan1918
a1af72a641
test(e2e): 引用 chip 的可见标签是本地化文案,按文件名断言而不是冒号分隔(#1111 后续)
2026-11-04 21:18:08 +08:00
Menghuan1918
91a5d79f19
merge #1072/#1071: fix(editor) 原生页签关闭与桌面退出保留未保存草稿(宿主无确认钩子,改草稿备份 + 重开恢复)
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
2026-11-04 21:06:04 +08:00
Menghuan1918
cafb73b21b
merge #1109 : fix(sidechat) 压缩 seed 里重映射 delivery 水位线,不再产出不可读的子会话日志
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
2026-11-04 21:05:59 +08:00
Menghuan1918
cf976885af
merge #1107 : fix(install) 装完先查 profile 自带的宿主包是否混版(诊断:peer 无法约束 profile 树)
2026-11-04 21:05:55 +08:00
Menghuan1918
4224c78a98
fix(editor): 原生页签关闭与桌面退出保留未保存草稿(#1072 / #1071)
...
宿主原生页签条的关闭路径只有一个同步清理钩子(唯一的阻止方式是 throw,
会把异常抛给 replaceTab / 公共 close() 调用方),桌面 Cmd+Q 则完全在壳内
完成(before-quit → app.exitRequested),页面没有可取消事件;壳内也没有
will-prevent-unload 处理器。插件因此不伪造拦截,改为降低损失:
- 草稿变脏时按 1 s 节流把实时文档写入 localStorage(sessionId::path,
单条 200k 字符 / 总计 600k / 最多 8 条 FIFO)
- 原生 registerCloseHandler('editor') 与 beforeunload 时立即 flush
- 重开同一文件提示恢复;保存、确认丢弃、确认刷新/换文件即删除备份
新增 src/client/editor-draft-backup.ts;docs/host-contracts.md §C 记录宿主
限制与将来的接法。测试:新增 editor-draft-backup.spec.tsx(8 例)+ guard
spec 2 例;去掉任一修复点后对应用例均转红。
2026-11-04 21:04:16 +08:00
Menghuan1918
4c1d4177d9
fix(install): 装完先查 profile 自带的宿主包是否混版(#1107)
...
profile 自带的 @deepseek-ai/dsh-* 会覆盖宿主安装的同一批包(DSH 的 profile
解析先取 profile 前缀内的副本),本插件静态 import 的 dsh-subagent 因此绑到
混搭版本;混版缺导出时宿主只报 DesktopHostFatalError / required plugins did
not activate,看不到是哪个包缺了什么。
新增随包发布的 scripts/check-profile-host-tree.mjs:按 DSH 的 profile 解析
规则(只看 profile 前缀内的副本、上级 profiles/node_modules 不参与)判定
dsh-subagent 精确声明的 dsh-attachment peer。install.sh / install.ps1 装完
运行它,混版时打印两份版本号与修复命令并退出,不再提示重启。README 常见
问题、docs/host-contracts.md 与中英 CHANGELOG 同批记录;新增
tests/install-host-tree.spec.ts 真跑发布脚本钉住行为。
2026-11-04 21:03:54 +08:00
Menghuan1918
45b4d42ef6
fix(sidechat): rebase inherited delivery watermarks in the compaction seed
...
A side thread opened while the parent was mid-turn could persist a child
session the host can never read again: SessionFormatError "delivery
throughSeq must precede its marker".
Root cause: when the parent has compacted, buildSidechatInheritance copies
the log around its last checkpoint with RENUMBERED seqs, but the inherited
session-log-deepseek/delivery-accepted watermark (throughSeq) is an
absolute seq. Left alone it keeps pointing at the parent's position and
can land at or after the marker's own new seq, which the v4 reader treats
as corrupt; the parent's includeDescendants export then fails with it.
The rebase now carries the watermark through the same map it applies to
every other seq citation, and drops the record when the watermark fell
inside the dropped span (there is no child-side equivalent). The verbatim
full-copy path is untouched — seqs are identity there, so nothing changes.
Tests: tests/sidechat-compaction-seed.spec.ts builds a compacted parent
carrying real delivery markers and asserts every surviving marker cites
the same earlier event the parent marked, while markers whose watermark
was trimmed away do not survive (red before the fix: throughSeq 15 for a
marker at seq 8).
Closes #1109
2026-11-04 20:59:08 +08:00
Menghuan1918
4f6b763d1e
merge #1089 : fix(changelog) 恢复被 mermaid 合并截断的发布历史,并加完整性守卫
2026-11-04 20:49:50 +08:00
Menghuan1918
89b85a82a8
merge #1111 : feat(sidebar) 划选引用 chip 可点击回跳源文件并闪行段(合入前修正:二次点击 nonce、落盘失败回退、注册契约与文档)
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
2026-11-04 20:48:47 +08:00
Menghuan1918
45b538283d
merge #1099 : feat(sidechat) 支持粘贴/选中图片(合入前修正:大 body 才计入准入、宿主附件错误分类、文档与常量收敛)
...
# Conflicts:
# CHANGELOG.md
2026-11-04 20:47:47 +08:00
Menghuan1918
30093748a2
docs: 同步 14 条 DSH peer,修正 chip 底部入口与行号漂移说明
2026-11-04 20:46:52 +08:00
Menghuan1918
5de590e61f
test: 引用 chip 的二次点击、落盘失败与真实注册契约
2026-11-04 20:46:52 +08:00
Menghuan1918
90238e1cc2
fix(client): 引用 chip 二次点击仍跳转闪光,落盘失败回退内置 chip
2026-11-04 20:46:52 +08:00
Menghuan1918
9c64e43e08
docs: move the side chat image section under the API chapter
...
The section was nested under the removed free-window chapter; it now sits after the archive routes as 6.2, drops the false claim that the image-remove control is the host Button, and points the connection-admission references at section 6.
2026-11-04 20:45:25 +08:00
Menghuan1918
68778b36a0
chore(sidechat): share image constants and drop the dead transcript helper
2026-11-04 20:45:25 +08:00
Menghuan1918
7780387820
fix(sidechat): gate image prompt admission and classify host failures
...
Only a prompt body past the 1 MiB metadata cap is counted toward the concurrent image admission limit, so plain-text prompts are never rejected; exceeding the cap answers 413 too-large instead of a retryable 503. admitPromptContent failures now route on the host attachment code: oversized images are 413 too-large, storage faults are 500 sidechat-error, both keeping the host message.
2026-11-04 20:45:22 +08:00
Menghuan1918
82921c78ab
review(merge batch): Windows-only case fold for repo roots; changelog entries for #1101/#1110
2026-11-04 20:38:49 +08:00
Menghuan1918
85593d4769
merge #1112 : feat(git) 容器工作区在 Git 面板顶部显示全部子仓库并可切换(#988 可见性后续)
...
# Conflicts:
# CHANGELOG.md
2026-11-04 20:36:37 +08:00
Menghuan1918
5178cabcec
merge #1101 : fix(changes) 视角切换改用公开 SegmentedControl,删除对宿主私有 CSS 哈希类名的依赖(#1098)
2026-11-04 20:33:57 +08:00
Menghuan1918
f6008bdf65
merge #1110 : fix 页面 CSS zoom 不再被误判为页面级 transform(panel host 几何自检按累积 zoom 归一)
2026-11-04 20:31:31 +08:00
Menghuan1918
4b61d6802b
merge #1104 : fix(terminal) 底部工作台终端不再自带黑底(:global 选择器 + 特异性 0,3,0)
2026-11-04 20:30:36 +08:00
Zabo
f49bad2279
feat(git): show every child repository in the Git panel with a visible switcher
...
A container workspace (a project directory that is not itself a repository)
can hold several independent repositories. Discovery and `git.status`
already report all of them; the panel listed them only in the
"more actions -> repository" submenu, so nothing on screen said the others
existed and the body silently rendered repositories[0].
Render one chip per discovered root above the Changes section, mark the
root the panel is pinned to, and switch through the existing chooseRepo so
reads, mutations and the commit graph follow the selection. A single
repository workspace renders no row; the menu entry stays.
2026-11-04 16:55:51 +08:00
xiangzz
805a03f91f
feat(sidebar): 划选「添加到对话」落可点击引用 chip(点击回跳源文件并闪行段)
...
- 移植到 dev 基线(#1052 / #1002 之上):只加「可点击 + 行段落地」,不重做 chip 本体
- 自有 input-trigger source `betterSidebarQuote`:`openReference` 校验会话后回跳,
`codec.serialize` 在发送时还原成与升级前字节一致的 `路径:起止` + 围栏正文
- 行段末行走模块级一次性旁路 `src/client/line-target.ts`(key = path + line,cap 32),
不写进宿主导航参数(宿主 `SidebarRightResourceParamsMap.file` 只声明了 `line`)
- 引用记录存 `localStorage`(`dsh-better-sidebar:quote-refs`,FIFO 200):模块同时进
core bundle 与 lazy editor chunk,两个实例只能靠它互见;插入失败即回滚记录
- 行段闪光用 CodeMirror 行装饰 + 皮肤令牌 `--dsw-alias-interactive-bg-hover-accent`
- 三级降级:自有 chip → #1052 内置 chip → 纯文本,永不比升级前更差
- 新增 peer `@deepseek-ai/dsh-client-ui-input-trigger` `^0.2.1-rc.1`(DSH peer 增至 14 条)
- 文档:指南新增 §7.2,并补 `openFile` options / `FileViewerProps.lineEnd` / peer 说明;
AGENTS §3、CHANGELOG 双语、README 双语、`docs/plans/2026-11-03-selection-quote-chip.md`
- 测试:`selection-quote` 23、`quote-flash` 13、`line-target` 7,`conversation-draft` +2
2026-11-04 01:47:15 +08:00