unsc9
d86aab4bc0
test(archive): 合并重复的 argv 断言,去掉冗余用例
2026-11-06 14:51:39 +08:00
unsc9
bcdf1f1e06
perf(editor): 保存复用文档引用,省一次整篇字符串化
2026-11-06 14:51:38 +08:00
unsc9
5913c0ca07
refactor(git): status() 复用 literalPathspec()
2026-11-06 14:51:38 +08:00
unsc9
1130b26db5
ci(release): 发布改为精确 opt-in,空输入一律 dry-run
2026-11-06 14:22:10 +08:00
unsc9
02e7026f5c
fix(search): 超时打断失败链、成功恢复被禁引擎
2026-11-06 14:22:10 +08:00
unsc9
1ff3cde0a3
fix(editor): 保存回调加过期守卫,防跨文件串状态与基线
2026-11-06 14:22:10 +08:00
unsc9
2b22c05f7e
fix(tasks): 冲突后重新基准 revision 并保留草稿,消除死循环
2026-11-06 14:22:10 +08:00
unsc9
a0e8a85058
fix(search): fd 查询加 -- 且单次失败不永久禁用引擎
2026-11-06 12:42:28 +08:00
unsc9
49945a0d10
fix(archive): 拒绝 - 开头归档条目并分隔选项与操作数
2026-11-06 12:38:23 +08:00
unsc9
9f121ac600
fix(tasks): 编辑保存使用打开编辑时的 revision 快照
2026-11-06 12:38:22 +08:00
unsc9
9278ecf1d9
fix(editor): 保存期间继续输入保持脏标记与草稿备份
2026-11-06 12:38:22 +08:00
unsc9
5cdf7e0ea2
fix(git): 路径按字面匹配,防「丢弃改动」误伤同名文件
2026-11-06 12:38:22 +08:00
unsc9
6e0ea81663
ci(release): workflow_dispatch 默认 dry-run,真实发布需显式取消勾选
2026-11-06 12:38:22 +08:00
unsc9
c2f5ba5cc7
chore(lint): 忽略 .agents/worktrees 的陈旧检出(eslint + vitest)
2026-11-06 12:38:22 +08:00
unsc9
47a7ffc888
fix(floating): 修正控件带通知与无带子时的布局偏差
...
viewport-inset 的快照原本是 { top } 对象,重读时每次新建,引用比较永远不等:
带子存在时每次 resize / geometrychange 都会广播,三个浮层各重渲染一次。改为
直接存数字,值不变就不通知。
AnchoredPopover 新增的让位原本无条件执行,普通浏览器里锚点贴到视口最顶时
弹层会从 6px 变 8px,与「无带子时逐字等价」的承诺不符。改为只在带子存在时
才抬高。
顺带删除 mermaid 工具栏里恒被内联样式覆盖的 CSS top(不跑 JS 时该弹层不存在,
不是降级),并补上测试:同值不广播、resize 兜底、visible 运行时翻转、浮窗
高度让位、AnchoredPopover 三个位置用例。
文档:接入指南的 WCO 例外改标「尚未发布」(v0.29.0 从未发布到 npm),计划
文档修正 #430 对照表与测试清单。
2026-11-05 13:16:39 +08:00
unsc9
d0fdd0e77e
docs: 记录原生窗口控件带让位的设计、接入指南例外与变更日志
2026-11-05 13:16:39 +08:00
unsc9
c3e9be88d8
fix(mermaid): 放大视图工具栏让出窗口控件带(#805)
...
工具栏原本 top:16px、按钮 36px,在 42px 的原生窗口按钮带下只剩 10px 可点。
改为内联 top:16px+控件带高度,CSS 的 16px 保留为无 JS 时的降级;加
data-mermaid-toolbar 稳定选择器供 e2e 测量。
挂载 lane 注入可控的假 WCO(初始 0,不影响本 lane 其它断言),把带子调到
36px 后实测工具栏 top=52,调回 0 再实测回到 16。
2026-11-05 13:15:57 +08:00
unsc9
a95c65c09c
fix(tasks): 节点详情弹层同样避开窗口控件带
...
锚定弹层顶部下限也是 8px,锚点靠近窗口顶部时整张卡片的头部会落进原生窗口
按钮带。改用同一份控件带几何:锚点自身在带内时也向下退让,拖拽纵向下限同步。
2026-11-05 13:15:57 +08:00
unsc9
3939fe5b6e
fix(floating): 任务详情浮窗的标题栏不再落进窗口控件带
...
浮窗顶部下限原本写死 8px,而自身标题栏高 34px,关闭键正好落在 Windows 原生
窗口按钮那条带子里,点击被原生层吃掉(elementFromPoint 仍返回按钮本身,所以
页面侧看起来正常)。改为 8px + 控件带高度,覆盖锚点定位、拖拽、resize 三条
路径;带子变大时把已摆好的窗抬出去,变小时不主动下拉(不移动用户摆好的窗)。
普通浏览器无 WCO 时 inset=0,与改动前逐字等价。
2026-11-05 13:15:56 +08:00
unsc9
4108e1544c
feat(floating): 新增壳的原生窗口控件带几何
...
桌面壳用 Electron titleBarOverlay 在页面顶部画最小化/最大化/关闭,那条带子
的鼠标事件到不了网页(#805 已实测)。这里只读标准 WCO 几何作为唯一来源:
无 API、visible=false(幽灵接口)、0 高(全屏)、读取抛错一律退化为 0,
普通浏览器与网页版行为不变。
不写偏好、不加设置项、不发布 CSS 变量、不复活 #430 删掉的
--dsh-title-bar-strip / body[data-dsh-title-bar-compat]。
2026-11-05 13:15:56 +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
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