Menghuan1918
a83f616dc3
merge #1135 : fix(git) run git inside the WSL distribution for UNC workspaces
2026-11-08 11:39:22 +08:00
Menghuan1918
ee04b5d4b3
test(fs): compare the session-relative tail in the missing-file message ( #963 )
2026-11-08 00:52:16 +08:00
Menghuan1918
fb1bf44ed2
test(e2e): use the shared onboarding dismissal and assert the visible marker ( #963 )
2026-11-08 00:37:31 +08:00
Menghuan1918
64ec9d9745
test(tasks): keep the owned-task owner on a catalog row ( #1026 after #1139 )
2026-11-08 00:24:35 +08:00
Menghuan1918
69c32e78c6
merge #1026 : fix(tasks) keep owned task labels consistent with the board
2026-11-08 00:23:29 +08:00
Menghuan1918
041faf3412
merge #829 : fix(mermaid) zoom the content and frame on open
...
# Conflicts:
# src/client/mermaid.tsx
2026-11-08 00:23:27 +08:00
Menghuan1918
acea51ad13
merge #1048 : fix(editor) readable Windows markdown path failures and repair choices
...
# Conflicts:
# CHANGELOG.md
# src/client/EditorHost.tsx
# src/index.ts
2026-11-08 00:22:24 +08:00
Menghuan1918
11b9d4f963
merge #963 : fix(sidebar) resolve relative file links from the session cwd
...
# Conflicts:
# src/active-worktree.ts
2026-11-08 00:21:05 +08:00
Menghuan1918
77cbf420ce
merge #1043 : fix(editor) resolve markdown preview images on the page base
...
# Conflicts:
# src/client/markdown-images.ts
# src/client/markdown-labels.tsx
# src/client/markdown-navigation.ts
# tests/markdown-images.spec.ts
2026-11-08 00:19:09 +08:00
Menghuan1918
c67a8d1aa8
merge #1139 : fix(tasks) read the team roster from subagentCatalog
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
2026-11-08 00:17:14 +08:00
Menghuan1918
6145f758da
merge #976 : fix(active-worktree) invalidate cached roots whose directory is gone
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
# src/active-worktree.ts
# tests/active-worktree.spec.ts
2026-11-08 00:16:42 +08:00
Menghuan1918
dc4dc11730
merge #1030 : fix(editor) open a directory target as the folder window
...
# Conflicts:
# CHANGELOG.md
# CHANGELOG_EN.md
# src/client/EditorHost.tsx
2026-11-08 00:15:31 +08:00
Menghuan1918
8b056f316c
fix(steady-state): declare the agent-opens heartbeat timer in the ledger ( #954 )
2026-11-08 00:14:24 +08:00
Menghuan1918
31449826ae
merge #1146 : fix(data-safety) literal pathspecs, archive operands, save races, task CAS, release dry-run
2026-11-08 00:11:16 +08:00
Menghuan1918
b8988aa389
merge #1117 : fix(floating) clear the desktop shell's native title-bar band
2026-11-08 00:10:32 +08:00
kousaka
1f1f29743c
fix(native): single-page tab chips take their title from the tab registry
...
(cherry picked from commit 5c65dd6bf49969983d83ddc612834c8dbe568b4c)
2026-11-08 00:10:06 +08:00
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
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
榆乾
b6c2017410
fix(tasks): 团队名册改读 subagentCatalog,适配 agentTeam 去掉 members 后的投影
...
DSH 0.2.2 的 `agentTeam` 投影不再携带 `members`(Team 包迁移 122dc3af42,wire
schema 只剩 `enabled` / `tasks` / `failure`),团队成员改为 Lead 的直接
subagent,由 `subagentCatalog` 提供。此前 team-projection.ts 仍读
`team.members.map(...)`,`members` 为 undefined 时整个任务管理页抛
"Cannot read properties of undefined (reading 'map')"。
- 名册 = Lead 行 + Lead 的 subagentCatalog 行(名字取 name ?? label ?? id)
- 投影新增 `enabled`:为 false 时不画团队板;旧宿主没有该字段时视为启用
- roster 的 phase 与 per-member error 随投影一起消失,节点状态只剩 running / idle
- 任务归属额外接受空串路径(Lead 自身的 agent path)
- CHANGELOG(中/英)+ docs/plans 适配记录
🤖 Generated with [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness )
2026-11-06 11:01:50 +08:00
stallenlu
9789f48695
fix(git): run git inside the distribution for a \wsl.localhost workspace
...
The git binary on the Windows PATH is a Windows build. Pointed at a
`\wsl.localhost\<distro>\…` worktree it reaches every file through the 9P
file server, one `stat` per worktree file. Measured on a 3 102-file
repository: `git status` did not finish in 180 s, `git diff --numstat`
did not finish in 25 s — while the SAME argv inside the distribution
answered in 0.47 s. The panel retried on timeout, and each retry left an
orphaned `git.exe` behind, so the source-control tab never loaded.
`spawnGit` now reads the distribution and POSIX path out of a UNC cwd
(`wslLaunch`, accepting `\wsl.localhost\`, the legacy `\wsl$\` share and
the forward-slash spelling) and, for those cwds only, launches
`wsl.exe -d <distro> --cd <path> -e git …` with the `-C <cwd>` prefix
replaced by `--cd`. `-e`, not `--`: the `--` form re-parses the tail as a
shell command line, which mangles `%(refname:short)` and anything else
carrying `()`/`[]`. `WSLENV` carries `LC_ALL`/`GIT_OPTIONAL_LOCKS` across
the boundary, which wsl.exe otherwise drops.
Everything else is untouched and shares one code path: the timeout, the
stdout/stderr byte caps, the NUL field cap, `killTree()` (which reaps the
distribution-side process too), the error strings and the
dubious-ownership retry. A non-UNC cwd spawns exactly the argv it always
did.
2026-11-05 22:28:56 +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
unsc9
a9c2ff0fce
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
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