Commit Graph
866 Commits
Author SHA1 Message Date
unsc9 30b18ae20d refactor: 注释去重,测试的假时钟还原移入 afterEach 2026-11-06 17:58:38 +08:00
unsc9 13ac6006fa fix(search): 禁用引擎冷却后重试,不再整个会话禁用 2026-11-06 17:52:39 +08:00
unsc9 29f1d14a5b fix(tasks): 编辑草稿与版本基准同源,冲突后等投影推进再重新基准 2026-11-06 17:52:39 +08:00
unsc9 d86aab4bc0 test(archive): 合并重复的 argv 断言,去掉冗余用例 2026-11-06 14:51:39 +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 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 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 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 ad159053f1 fix(settings): 侧边卡片的导航图标改走 settings.section.icon 插槽(此前标记 + CSS 遮罩会叠出两个图标) 2026-11-05 00:55:17 +08:00
Menghuan1918 7ef1dfa989 fix(sidechat): 模型切换不再把 model/selection 记两次(0.2.2 的 AgentModel.select 自己落盘) 2026-11-04 22:20:41 +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 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 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 5de590e61f test: 引用 chip 的二次点击、落盘失败与真实注册契约 2026-11-04 20:46:52 +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 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
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
HootRock d3b887f179 fix: account for CSS page zoom in panel host geometry checks 2026-11-03 20:18:22 +08:00
Kunping Wang 3ce803c691 fix(changes): 修复 Changes 视角切换按钮样式 2026-11-02 20:57:24 +08:00
CCColastic 9601182720 test(sidechat): verify image input through a real host 2026-11-02 15:19:28 +08:00
CCColastic 00bb16ae6c fix(sidechat): guard model changes before image enqueue 2026-11-02 15:19:28 +08:00
CCColastic ba72fc4c9c fix(sidechat): defer image reads until message projection 2026-11-02 14:02:44 +08:00
CCColastic dcafe7d2dc fix(sidechat): restore thread bindings after page reload 2026-11-02 13:46:22 +08:00
CCColastic 23a2b61f33 feat(sidechat): accept pasted and selected image prompts 2026-11-02 13:37:43 +08:00
unsc9 06c384e5ba test(changelog): guard both changelogs against silent truncation
A merge can drop the release history without any test noticing (04c6cb8).
Assert both files keep the oldest release, stay above the historical floor,
and that English never lists a release the authoritative Chinese file lacks.
The truncated 41/27-line files fail both checks.
2026-10-30 11:58:43 +08:00
Menghuan1918 bd6cfa55b4 test(e2e): measure the folder-archive flow in the perf audit 2026-10-30 02:14:40 +08:00
Menghuan1918 0e643852c3 test(e2e): correct the audit seed comment (the tree cap is 1,000 rows) 2026-10-30 02:07:02 +08:00
Menghuan1918 f1323d6c57 chore(e2e): launch dsh web with --no-open and add the opt-in page/API perf audit 2026-10-30 02:01:47 +08:00
Menghuan1918 2c48ff451d test(e2e): match the visible preview copy, not the hidden editor's (mount-lane flake) 2026-10-30 00:20:29 +08:00
Menghuan1918 7bff1a1cb4 merge fix/949-951: block archiving side threads (#949), keep sidebar_open registered while settings are unreadable (#951) 2026-10-29 23:53:34 +08:00
Menghuan1918 d77adf25e3 merge fix/1009-card-toggles: hidden tab types are not settings cards (#1009) 2026-10-29 23:53:10 +08:00
Menghuan1918 d7483f6b33 fix(sidechat): disable archiving a side thread the host can never recover (#949)
The host's session list hides every subagent-origin row in ALL archive filters (sessionVisible() returns false before the filter), and its unarchive control only lives on those rows. Archiving a side conversation is therefore a one-way door with no entry left to recover it, so the composer-bar action is disabled for any bound session the list cannot show again, with a hover tip (all 21 dictionaries) explaining why and pointing at Save as new session. The handler keeps the same guard.
The archive-and-rebind path stays covered for a host-visible binding.
2026-10-29 23:51:47 +08:00