Menghuan1918
e6f1af2f82
chore(dsh): 适配 DSH 0.2.2-rc.2 并补齐插件页图文详情(v0.32.1)
2026-11-12 21:20:46 +08:00
Menghuan1918
a4d11d7c09
feat(native): align, take over, and reorder start page refinements
...
Add centered/top alignment, a default-on start-page takeover switch, icon-plus-title More rows, and share the row-count input between settings and the reorder dialog.
2026-11-12 00:05:55 +08:00
Menghuan1918
a92252c5d3
feat(native): take over the right sidebar start page
...
Replace the host guide body with a plugin start page: responsive two-column cards, configurable rows, a More card for overflow, persisted order and visibility in Side Card settings, and the terminal card shell menu through the host webTerminals service.
2026-11-12 00:05:55 +08:00
Menghuan1918
9c3c01cf8e
feat(markdown): render file:// image URLs through the media routes
...
Markdown-syntax and raw-HTML file: destinations are converted to an absolute local path before rendering or sanitization, then served by the same session media route as relative images. POSIX, Windows drive, localhost, UNC and percent-encoded URLs are covered; the file: scheme is never handed to the renderer or DOMPurify. Also prepares v0.31.1.
2026-11-11 21:58:56 +08:00
Menghuan1918
ba7d069842
fix(preview): render data images and self-contain desktop HTML previews
...
Markdown syntax now passes data:image/* through the image vocabulary (the host allowlist already accepts it); every other data payload stays inert. The desktop shell's sandboxed HTML preview is self-contained: the trusted top frame fetches the document and its same-origin assets, inlines them, and frames a sandboxed blob instead of a dsh-app route the shell rejects from an opaque subframe. The sandbox never gains allow-same-origin; browser and explicitly-unsandboxed paths are unchanged.
2026-11-11 21:28:39 +08:00
NolanHo
bed56758c7
feat(sidechat): align the side conversation with the main pane
...
The side chat inherited none of the main pane's reading behaviour and could
not say where it forked off. This change brings it in line and keeps the
upstream v0.30.1 release intact.
Work details follow the main conversation's setting (transcriptView +
collapseTiming): settled turns fold behind the host's own "Completed in Ns"
line, running turns stay open, verbose never folds.
The transcript now names its origin: the events route reports the fork point,
and the block above the first row renders the inherited question as an
ordinary user bubble and the inherited answer as ordinary assistant prose,
bracketed by two divider lines and carried verbatim.
Reading the thread got cheaper and calmer: only the tail is mounted with a
step-wise reveal, scroll-follow answers an explicit intent, and the composer
guards IME composition, key repeat and the submit-gesture choice while send
and stop stay independent controls.
Everything visual rides the host's own surface: content-size and code font
axes, the host's markdown surface for reasoning, host cards for search/web/
terminal/diff results, compaction and retry rows, and host-defined design
tokens (six borders and eleven colours had referenced tokens the host never
defines, so they never painted).
Thread creation became reliable: a stored parent is resumed through the
session controller, the create budget is a deployment setting instead of a
hard-coded 15 seconds, and the child attaches at the parent's workspace cwd
while its tools keep running in the reader's current directory.
Upstream v0.30.1 brings side-chat images, clickable quote chips, editor draft
backup, the settings icon slot and the 0.2.2 model seam; its per-thread draft
owner and image projection replace the hand-written paths this branch used to
carry, so only one implementation of each survives.
2026-11-09 11:59:12 +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
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
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
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
Menghuan1918
a1af72a641
test(e2e): 引用 chip 的可见标签是本地化文案,按文件名断言而不是冒号分隔(#1111 后续)
2026-11-04 21:18:08 +08:00
HootRock
d3b887f179
fix: account for CSS page zoom in panel host geometry checks
2026-11-03 20:18:22 +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
6e29d91bec
test(e2e): 选区引用改为 chip 后更新 @ 引用 e2e 断言
...
#1052 把「添加到对话」的多行选区改成引用 chip(正文只在发送时展开),
#1002 留下的 mount e2e 仍按旧的 plain-text 围栏断言(3 chips + 围栏正文),
合并后 plugin-mount 在真实 DSH 上红:实际 4 chips。改为断言第 4 枚 chip
落地、label 带来源文件、且不产生 plain-text reference;围栏正文的逐字
载荷由 tests/selection-payload.spec.ts 在单测层钉住。
验证:本地 (真实 DSH 0.2.1-rc.1)1 passed。
2026-10-26 15:39:40 +08:00
Menghuan1918
25fd296f99
merge #1052 : feat(editor): 「添加到对话」改用引用 chip,正文只在发送时展开
...
# Conflicts:
# src/client/conversation-draft.ts
# src/context-types.ts
# tests/conversation-draft.spec.ts
# tests/reference-in-chat.spec.ts
# tests/sidebar-workspace-reference.spec.tsx
2026-10-26 15:03:28 +08:00
Menghuan1918
f74369d2b6
merge #1002 : fix(client): 草稿插入不再整份重写,chip 不再被展平(@ 提及两段式)
2026-10-26 15:02:38 +08:00
unsc9
b7d17e8c0a
fix(editor): 气泡插入补左侧分隔,并覆盖命令气泡与冻结期
...
code review 挖出的六处行为问题:
- 宿主只在气泡之后补空格,之前不补,所以往 hello 后插气泡会读成
hello[chip]。插入前先用同一条 span 通道占一个分隔位。
- 命令气泡(/goal)不在 occurrences 里(宿主只收引用气泡),但它在
detect 投影里同样只占一个字符。补上按 claim.token 折叠,否则 span
越界、引用插不进去;setDraft 分支也会把命令气泡碾成字面文本并丢掉
claim,所以 claimed 状态同样走 span 通道。
- 选区气泡的 ref 是围栏正文而非路径,标成 appearance:file 会让宿主
把它当可点开的文件,点一下拿整段正文去开文件。改为由调用方决定。
- 宿主可能已经应用了编辑再抛异常,此时报 false 会让调用方再插一份纯
文本。异常分支先重读 revision 再判断。
- 冻结期(adjudicating/submitting)直接拒绝,不回退。
顺带删掉 insertReferenceOrText 没人覆盖的 fallbackText 参数,修掉
insertWorkspaceReference 对同一路径重复调用 mentionFor。
2026-10-24 21:39:14 +08:00
unsc9
26be90d66f
test(e2e): composer 定位改用宿主的 composer slot
...
首屏占位符名字(Describe what you want to build)在会话有内容后就消失了,
拿它查 composer 会一直超时。改锚定 [data-slot=conversation.composer.bar]:
这是宿主自己的稳定属性,且天然把插件里同样 contenteditable 的 CodeMirror
排除在外,不用再靠 DOM 顺序猜。
2026-10-24 20:50:07 +08:00
unsc9
9067e2cac4
test: 夹具跟上 insertReference facade,e2e 复用权威 composer 定位器
...
- conversation-draft 的两份 composer 假件合成一个 composerCtx,删掉从未
被调用或断言的成员(setDraft / snapshot / phase 选项)。
- reference-in-chat、sidebar-workspace-reference 改为断言 facade 调用,
不再断言 emit 事件。
- mount.e2e 用 host.ts 导出的 composerLocator,不再用
[contenteditable=true].first() —— 插件自己的 CodeMirror 也是
contenteditable,按 DOM 顺序取首个会取错。
- 修正设计文档里一条与实现相反的结论(ref 存的是发送正文,不是 label)。
2026-10-24 20:29:59 +08:00
unsc9
1ed872268c
test(e2e): 选区气泡探针改用真实拖拽与正确的选择器
...
三击/合成点击会在 mouseup 之前丢掉选区,浮层不弹;改用 mouse.move/down/up
的真实拖拽。气泡是 composer 里的兄弟装饰节点,不是 role=textbox 的后代,
选择器改按 label 文本在整页范围内定位。
真机 mount lane 已验证通过(23s):预览里选中一行 → 点按钮 → composer
里出现 diagram.md:12 气泡,草稿不含三反引号。
2026-10-24 19:39:55 +08:00
unsc9
8c431db740
test(e2e): 断言选区引用落在 composer 里是气泡,不是围栏正文
...
真机 mount lane 加一段:预览里选中一行 → 点「添加到对话」→ 断言
composer 里出现 path:lines 气泡,且草稿文本不含三反引号。
宿主若不认 reference-insert 事件、退化成纯文本,这条会直接失败。
同时记录设计与两套坐标系(clipboard / detect)的折算规则。
2026-10-24 19:17:42 +08:00
Menghuan1918
18dade0f63
fix(perf): address the perf-scan review findings
2026-10-24 12:10:17 +08:00
Menghuan1918
0a4a94c704
perf(graph): window the commit history rows
2026-10-24 02:17:10 +08:00
Menghuan1918
787d873a8c
fix(tasks): restore graph expansion and configurable branch folding
...
Reset per-gesture travel before node guards so a preceding background pan cannot suppress the next card click. Index and iteratively lay out graph topology, memoize agent card contents, and project complete settled branches under independent existing-settings preferences.
Keep unknown real workflow catalogs and explicitly opened descendant paths visible. Add regression coverage and real rc.1 browser/baseline validation evidence.
2026-10-23 12:38:23 +08:00
ymac
494f5e80d0
test(e2e): 覆盖「两次插入之间夹文本」与「多行选区引用」,并补一条多行单测
...
真机 lane 的这条用例现在跑四种形状:两次文件 @(chip)、一次目录 @(纯文本 token)、
中间夹打字文本后再插一个文件 @、以及从 markdown 预览里框选多行后用选区弹窗插入
(payload 是带围栏的多行串)。每一段之后都要求既有 chip 数量与身份不变、纯文本 token
数量不变、且引文逐字落地(围栏与换行都在)。写成这样是因为旧实现在**任何一次**插入时
都会整份重写草稿,四种形状都会红。
lane 里踩到的两个选择器坑,注释已经写在用例上,避免下次再踩:
- 宿主为每个保留会话渲染隐藏 seat,`[data-sidebar-right-panel]` 会同时匹配隐藏副本,
沿它取 `.first()` 拿到的可能是不可见的那个(boundingBox 为 null / 文本节点没有 rect);
- markdown 预览模式会把 CodeMirror 宿主**保留但隐藏**(未保存草稿),所以定位必须
`filter({ visible: true })`,否则会选中隐藏的那份。
单测侧补一条:多行 payload 逐字交给宿主(围栏与换行不动)、既有 chip 的 occurrence 仍在、
`setDraft` 不被调用。
2026-10-18 20:38:20 +08:00
ymac
70eb6b7276
test(e2e): 挂载 lane 钉住 @ 引用插入不会整份重写草稿(chip 不被展平)
...
上游一旦改动 composer 的内部事件或坐标投影,这条链路的表现是「点击无效」而不是报错
(我们发的是非公开的 session 作用域事件),单测用假宿主钉不住这一点,所以补一条真机断言:
真实 composer 里经文件树点两次文件 @(两个 `[data-composer-chip]`,第一个仍带自己的文件名)
再点一次目录 @(落成宿主装饰的纯文本 token),四条断言都在;旧实现第二次点击就会把第一个
chip 展平成文本,前三条会红。
顺带把 `context-types.ts` 的 `setDraft` 注释补一句:上游若改该语义(保留 chip 或提供公开
插入面),要与 `conversation-draft.ts` 的两条插入路径一起复核。
2026-10-18 20:18:37 +08:00
Menghuan1918
2b8a4da569
chore(release): prepare alpha.0 with latest dev fixes
2026-10-17 12:02:59 +08:00
Menghuan1918
6417547bb5
merge origin/dev: include Context diagnostics and graph layout fixes
...
# Conflicts:
# CHANGELOG.md
2026-10-17 11:52:48 +08:00
Menghuan1918
38d94bdb98
fix(git): let commit graph fill available sidebar height
...
Replace the 460px viewport cap with flex allocation. Bound the graph section minimum so long history scrolls internally instead of stretching the outer list. Verify tall and narrow panes, preview selection, folding and long Changes lists in the mounted host.
2026-10-17 11:33:55 +08:00
Menghuan1918
93c43b0ac9
feat: add optional Context diagnostics navigation
...
Use an activation-scoped Cordis controller for session, agent, and job-owner entries. Reuse native Context tabs, cancel stale navigation, and close source overlays without canceling pending requests.
Verify optional capability lifecycle, truthful job ownership, three real dsh-context configurations, and the existing mount regression suite.
2026-10-17 02:20:53 +08:00
Menghuan1918
4ebd3e9bdd
chore: adapt sidebar to DSH 0.2.1-alpha.5
2026-10-17 02:12:44 +08:00
Menghuan1918
3e9eacf0cb
test(e2e): isolate scroll retention fixtures per run
2026-10-16 21:49:48 +08:00
Menghuan1918
0ba7edf444
fix(git): keep selected change rows inside their groups
...
Restore selection declarations removed with logRow during graph integration. Dangling selectors had inherited absolute positioning and borders from indent guides. Add parsed CSS and mounted browser regression coverage for staged, unstaged and conflict rows.
2026-10-16 21:45:57 +08:00
Menghuan1918
88ded478de
merge pr-969 ( #969 feat(git-graph): 只读提交图) into dev(@vlln)
...
融合(D5):#969 的图谱引擎作为 Git 镜头内的「提交图」区上线,不再新增第三个镜头。
- 保留:src/git-graph.ts(有界路由 + graph-stale/graph-limit)、graph-layout.ts、
graph.module.css、CommitDetails、DiffPane 的 PaneTabStrip 与 details/content/diff 分签、
hover 卡片、引用徽章、分支筛选、无限滚动、e2e 与设计文档;
- 落位:GitGraphLens → GitGraphSection(挂在 GitLens 的 Graph 区,目标读镜头自己的
仓库/worktree 选择,不再自持选择器);行右键接回 #944 的提交菜单(查看/复制/revert/cherry-pick);
- 去掉:第三镜头与 changesGraphLens 键、#944 的 GitGraph.tsx(及随之无消费者的
log 行样式与 historyLoadError/changesNoHistory 词典键);
- 镜头常驻保留(hidden 切换):Graph 的滚动/选中、Changes 的展开与草稿切走不丢,
同时 store 槽位与轮询按「可见 + 在屏」分别门控(切回不闪 loading);
- 两套重写过的测试按新契约对齐(底部面板分签、图谱区与 Git 镜头的关系、图行/历史断言)。
2026-10-16 17:30:44 +08:00
Menghuan1918
40ed740f3a
merge pr-944 ( #944 feat(git): Git 内容区改为 VS Code Source Control 结构) into dev(@hairyf)
...
冲突解决(按 D4 与仓库现役不变量):
- status() 改为 porcelain v2(branch/upstream/ahead-behind/detached/operation 一次读回),
但保留 dev 的行/字段上限、pathspec 化 numstat 与 #909 的分侧计数;v2 记录遍历抽成
porcelainV2Tokens,状态解析与 pathspec 提取共用同一份字段知识;
- GitLens 的 Merge/Staged/Changes 三组取 #944,两组各读自己那一侧(#909),
Merge 组不印行数(冲突不是行数故事,也不许把某一侧当「这个数」);
sideEntries 保留(每组只读自己那一半的 XY 字母);
- ChangesTab 保留 #939 的官方 Tabs 外观与 a11y 包装、刷新按 #944 只留给本轮文件镜头;
- 测试:git.spec 导入取并集、rmSync 清理改回 removeTree、smoke 的 branch/detached 断言
按 porcelain v2 语义改写,其余用例按新契约微调(band 顺序、changesOps 第 4 参 wait)。
剔除夹带(D4):.agents/skills/handle/SKILL.md、eslint/vitest 的 soruce/vscode 忽略项、
webRuntime→connection.requestRejection 栅栏与 ownEntryId 放宽(index.ts / context-types.ts
取 dev)、栅栏类测试桩与注释一并回退,栅栏归属留给 0.2.1 兼容批。
2026-10-16 17:14:06 +08:00
Menghuan1918
bd65b41e9d
merge pr-885 ( #885 fix: 减少 changes.ops 空窗重复请求) into dev(@wang-kaopu)
...
冲突解决:保留 #885 的路由抽取(src/changes-ops.ts + 'changes.ops': changesOps),
把 dev 的现役内容搬进新模块:PTC 四种事件类型、-1 游标下限、会话/持久化双读与 4000 窗口;
index.ts 的 import 块取 dev(只补 ServerResponse),订阅回调按仓内惯例restate 最小结构切片。
测试:路由 spec 加一条 PTC 事件穿透断言,用例名与注释统一英文。
2026-10-16 16:44:20 +08:00
vlln
3edaa5aee8
test(e2e): 图谱在真实宿主上的挂载冒烟
...
在真实 `dsh web` 上建一个带合并的真实仓库,走完整链路:`git.graph` 路由
→ 打开 Git 页并切到 Git Graph → 渲染出合并历史 → 点合并提交(详情卡片里是
完整 hash 与两个父提交短哈希,且没有已删除的「与第一个父提交比较」提示)
→ 分支下拉框筛选后历史收窄。同时断言全程无 pageerror,且仓库的 HEAD / refs /
status 在读图前后逐字不变——这一条是「只读」最硬的证据。
选择器都锚定到具体容器:短 hash 在(隐藏的)Git 视角里也有,纯文本匹配会命中
隐藏元素;分支名 `main` 在下拉框的 option 里也有一份。
2026-10-15 20:44:33 -07:00
vlln
1718d2bdfa
feat(changes): 页签名「文件变动」改为「Git」
...
这个页签装的就是仓库视角(暂存 / 提交 / 历史 / 工作树),「文件变动」这个名字
没有把它和文件树区分开;改成「Git」后一眼能认出这是 Git 面板,也和里面第一个
镜头名对齐。21 份词典里的页签名是同一个语言中立的值,一起改。
- README 中英双语的徽章、能力表与特性条目同步(顺带把图片 alt 也改成 Git,
否则无障碍名还在念旧标题)。
- `tests/locales.spec.ts` 里那条「切换 zh 后读到中文」的断言换了个键:
`changes` 现在是语言中立值,两种词典相同,拿它证明不了语言已切到中文,
改用 `explorer`(资源管理器)这个仍然分语言的键,断言意图不变。
- `tests/builtins.spec.ts` 新增一条页签标题断言,把这个名字钉住。
- `tests/e2e/tree-scroll.e2e.ts` 的页签选择器改走宿主的 tab strip
(`[data-dockkit-strip] [role="tab"]`)而不是纯文本匹配:页签名变成 "Git"
之后,页签内部的镜头切换器上也有同一个词,纯文本过滤会数出两个元素。
2026-10-15 20:19:35 -07:00
Menghuan1918
c765c3eb49
test: 三条负载/时序敏感用例改成确定性(同一 commit 两次跑结果相反的那三条)
...
1. `mount.e2e.ts` 的底部工作台入口:入口的既有产品规则是「宿主右侧栏展开时不渲染」,
而该用例先打开右侧栏、再去等这个入口,实际是在赌 500ms 复检窗口——同一 commit
一次绿一次红(trace 里该元素在开右侧栏前存在、之后消失)。改为「展开断言 guide →
收起右侧栏 → 点入口 → 最后重新展开右侧栏做 shadowing 断言」,每一步都等可观测状态。
2. `perf.e2e.ts` 的 `session.cwd` 门槛:15s 窗口 / 5s 节奏下,一个轮询器本身就报 3–4
次,而「宿主右侧栏是否真的收起了」决定是一个还是两个轮询器。改为 `< visited * 2`
(修复前 4 个页签是 15),既不再依赖视觉状态,也仍然区分「每会话」与「每页签」。
3. `editor-host.spec.tsx` 的渲染预算 20s → 60s(describe 时钟 35s → 120s)。实测同一
commit:绿的那次本文件 609ms、红的那次 50554ms(本机 108ms),且三条 `fs.trees`
应答都在等待开始前就落了地——80× 的 worker 停顿,不是等待太短。断言语义不变:
行始终不出现仍然失败。
2026-10-16 01:06:50 +08:00
Menghuan1918
57fe6e657d
test: 临时目录清理统一走 removeTree(修 Windows 上的 ENOTEMPTY 竞态)
...
CI 在 windows lane 上红在**清理**而不是断言:
`rmSync(scratch, { recursive: true, force: true })` 抛
`ENOTEMPTY: rmdir …archives-pvpAWR`——刚被 kill 的 zip/tar 子进程(以及刚关闭的
fs.watch / 刚结束的 git 子进程)还没被系统释放句柄,删除于是失败在一个**已经通过**
的用例的 afterEach 里(那一次 2466 个用例全过,只有清理挂掉,整个 lane 变红)。
`maxRetries` + `retryDelay` 正是 Node 为这种场景提供的对策,因此新增
`tests/temp-tree.ts` 的 `removeTree()`,把 30 份 spec(175 处 `{ recursive, force }`
写法)统一换过去,并清掉随之不再使用的 `rmSync` 导入。POSIX 上首次即成功、不触发
重试,行为不变。
本地:typecheck / lint 干净,全量 210 文件 / 2524 通过。
2026-10-16 00:51:11 +08:00
Menghuan1918
ebfb207f08
test(perf): 稳态门禁(跨模块计时器/布局/请求 + 客户端定时器清单)
...
单模块用例各盯自己的 hook;这条只问跨模块的问题:把真实 Sidebar 壳挂起来、
什么都不给看时,它手里还握着多少会自己跑起来的东西。
- 非 blank 会话只允许存在**一条** 500ms 表(共享的宿主面板展开态),且不得存在 5s
表(每 tab 轮询已收敛为按会话 + 可见性);收起工作台时壳自己不得发 session.cwd;
隐藏页面时那条 500ms 表也必须消失,恢复即可重挂。
- 兜底入口在非 blank 会话渲染 null:宿主角落控件在场(measure() 能走到让位走查)
时命中测试必须为 0——before 侧真机实测 1620 次,after 侧 0。
- 末节是**客户端 setInterval 站点清单**:8 个站点逐一登记「它什么时候停」,新增未
登记的周期任务即红,登记了门控词却把门控删掉也红(绊线)。
- perf lane 新增 steady-state 指标与两条硬断言(兜底入口不渲染即不得命中测试、
session.cwd 必须按会话而非按访问过的页签计数)。真机 A/B:500ms 表 3→1、
5s 表 5→0、空闲窗 session.cwd 15→0、命中测试 1620→0、rect 5190→30。
2026-10-15 23:05:43 +08:00
dsh-agent
75562042a7
fix(files): resolve preview links only from the session directory
2026-10-15 19:18:07 +08:00
hairyf
1685e10d01
test: align mount fixtures and isolate upstream reference checks
2026-10-13 22:42:37 +08:00
Menghuan1918
5330eab474
feat(sidechat): 实时推送 + 排队可见 + per-thread 模型选择 + 底栏重构
...
侧边对话的四处用户痛点,加上「实时 fork」与「隐藏会话」两条路线的可行性结论。
全部结论都有真机复现取证(在运行中的宿主上建线程 + 读真实 session 日志)。
- 排队信息漏入:create 的 `inbox.clear()` 围栏确实生效(真机复现:子会话
request 只有 [boundary, 问题]);但幽灵来源比文档更宽——父会话 mid-turn 且
工具未返回时,种子被截断在 `turn/start` 之前,而 inbox 的「领取」splice 发生
在其后,于是**父会话本轮已领取的输入**在种子折叠里仍是 pending;而冷恢复
路径完全没有围栏。修法:create 保留硬围栏(本线程自己不可能有排队输入),
resume 改为 `inheritedPendingIds` 只折继承前缀得到幽灵 id → `inbox.remove(id)`
精确清扫,绝不误杀用户自己排的队。
- 消息不及时:新增 `/sidebar/ws/sidechat` 推送(`session/event` 60ms、
`agent/assistant-stream` 250ms 去抖,**纯失效帧**,客户端带 afterSeq 重拉),
2s 轮询降级为 15s 兜底,断线自愈。
- 模型选不了:宿主对 `origin:'subagent'` 会话**显式禁用**自带选择器,
`sessionController.selectModel` 又被 subagent fence 挡;插件因此自建
`sidechat.models`(直通宿主模型目录)与 `sidechat.model`(append
`model/selection` + `installModelSelection`),并让 `sidechat.info` 报**有效**
选择而不是冻结的创建期 options。
- 排队可见 / 回显 / spinner / 错误行:`sidechat.events` 增返 `pending`(claim
顺序)、`sidechat.dequeue` 按 id 撤销或清空、发送即本地回显、立即 thinking
行、`turn/end{error}` 与失败 attempt 渲染成可见错误行;另修掉「首问未 claim
时连发第二条会注入第二对 boundary+question」(新增 `boundaryPending`)。
- 底栏重构(用户反馈「注意力全在底栏,看不到上栏的保存为新会话」):顶栏整条
删除,`[+新建][线程][保存][归档] … [模型选择器][发送/停止]` 与主会话底栏对齐
(图标靠左、选择器靠右完整显示,agent 徽标不再显示);推理强度改为**平铺行**
——宿主 `Menu` 的 submenu 只能开在父项右侧(无翻转开关)且会让整个面板失去
滚动,钉在侧栏右缘必然被裁;每个控件加宿主 `Tooltip` 悬停气泡(锚在启用的
span 上,禁用态才解释得了「为什么不能点」),替代原生 title。
设计文档:docs/plans/2026-10-12-sidechat-native-surface.md(含取证、判定、
实施偏差与未验证项);AGENTS §3.4 第 4/10 条同步。
门禁:`tsc --noEmit` / `eslint .` / `vitest run`(2268 passed / 17 skipped)全绿;
宿主半 build + pack 后真实挂载进 sidechat-test profile 并验证新路由与 WS 通道。
2026-10-12 00:56:34 +08:00
Menghuan1918
a0cfd30b48
chore(release): v0.25.0 —— 支持线前移到 DSH 0.2.0-rc.2(npm latest)
...
- 版本 0.24.1 → 0.25.0;CHANGELOG 的 Unreleased 段落成 v0.25.0。
- **支持线**:peer 下限 `^0.2.0-rc.1` → `^0.2.0-rc.2`,CI 与挂载 lane 的钉版同步 →
`@deepseek-ai/dsh@0.2.0-rc.2`(`latest` 现在正是这一版),31 个 `@deepseek-ai/*`
devDependencies 与 lockfile 同批抬到 rc.2,`dsh.plugin.json` 的 engines 同步。
- **0.2.0-rc.1 及更早(含 0.1.7 线)请固定 v0.24.1**:caret 范围跨不过预发布元组,
`^0.2.0-rc.2` 对 rc.1 判定为 false,会被宿主启动预检整行静默禁用。
- 文档同步:AGENTS §2/§3.0、README / README_EN 的徽章与支持线、接入指南的活跃提法
(历史发布记录与 docs/plans 里的 rc.1 保留原样,那是记录不是声明)。
- 本版内容与贡献者致谢见 CHANGELOG 的 v0.25.0 段。
门禁:rc.2 上 typecheck / lint 干净,全量 189 文件 2213 通过(唯一红是
`fs-watch.spec.ts` 真起 fs.watch 的并行负载 flake,单跑 6/6 绿,与本版无关)。
2026-10-10 01:16:38 +08:00
Menghuan1918
8e3447b27a
revert: 回退「只在未展开时显示底部入口」——把「没展开」理解成了底栏,实际是指右侧面板
2026-10-10 00:35:46 +08:00
Menghuan1918
31b11ef3b8
feat(dock): 底部入口只在未展开时出现(展开态交给面板自己的 ×)
...
产品决定(用户提的):底栏展开后不再显示头部入口 —— 收起由面板页签条右端那个 ×
负责,头部再来一个「收起」既冗余,又多一个「展开态该把入口摆哪儿」的状态。
- `BottomDockToggle`:`bottomOpen === true` 时返回 null(不再切 aria-label /
aria-pressed,那个「收起」形态整个去掉)。
- `DockFallback`:同样在展开态不渲染(连空壳也省掉)。
顺带的效果:备用入口与宿主 chrome 争位置这件事,只在**未展开**这一个状态下需要处理。
测试:
- `tests/dock-fallback.spec.tsx` 新增「展开态一个入口都没有」用例(9 条全绿)。
- `tests/e2e/blank-session-dock-entry.e2e.ts` 按新语义改写 —— 原先断言展开后
`data-active='true'`,现在断言**入口退场、屏上 0 个**,并补上「用面板自己的 ×
收起后,会话头入口回来且仍只有一套」。**真机跑过:1 passed**。
全量 189 文件 / 2215 通过,typecheck / lint 干净。
2026-10-10 00:33:32 +08:00