HuanLinOTO
356c3b1dbc
Merge PR #682 : fix(trust-fence): 允许 bfcache 恢复的图片带过期 cross-site 标记(PNG 预览空白修复)
...
# Conflicts:
# tests/trusted-hosts.spec.ts
2026-10-01 17:18:31 +08:00
HuanLinOTO
a749b20b68
Merge PR #797 : fix(ws): WebSocket 路由改用壳注入的 transport base + 接受桌面壳页面 origin(0.2.0-rc.1 / v0.24.1 基线)
2026-10-01 17:18:19 +08:00
HuanLinOTO
e4cf2fd034
Merge PR #763 : fix(state): 拖动窗格内最后一个 tab 到自身边缘不再直接丢失该 tab
2026-10-01 17:18:09 +08:00
HuanLinOTO
a5c3befc57
Merge PR #664 : fix(diff): 二进制/纯重命名/仅改模式的文件行补回路径,并关掉 git 路径 C 转义
2026-10-01 17:18:09 +08:00
HuanLinOTO
65eb0957fb
Merge PR #665 : fix(diff): 头部 +n/−m 改为 git 口径,一处改写不再两侧各计一次
2026-10-01 17:18:09 +08:00
HuanLinOTO
784b7cf9fb
Merge PR #650 : fix(editor): 「添加到对话」浮层透字——底色改用不透明令牌
2026-10-01 17:18:09 +08:00
HuanLinOTO
b1c17af429
Merge PR #779 : fix(markdown): render anchors without a stray close tag and keep <details> summaries as direct children
2026-10-01 17:18:09 +08:00
HuanLinOTO
8bf14268aa
Merge PR #691 : fix(sidechat): inherit the parent's CURRENT model selection, not its stale options snapshot
...
# Conflicts:
# tests/sidechat-routes.spec.ts
2026-10-01 17:18:08 +08:00
HuanLinOTO
8c37a7e7df
Merge PR #663 : fix(sidechat): clear the child inbox after create — fork markers alone do not fence the runtime inbox
...
# Conflicts:
# AGENTS.md
# tests/sidechat-seed-validation.spec.ts
2026-10-01 17:17:57 +08:00
HuanLinOTO
b0c07c78fb
Merge PR #742 : fix(security): stop git operands parsing as options, and harden the API dispatch
2026-10-01 17:15:48 +08:00
HuanLinOTO
5ce98edcd0
Merge PR #733 : fix(editor): never save a truncated read over the full file ( #732 )
2026-10-01 17:15:48 +08:00
HuanLinOTO
e85ec684ac
Merge PR #764 : fix(fs): fs.write 改用每请求唯一临时文件,避免并发保存互相损坏
...
# Conflicts:
# tests/smoke.spec.ts
2026-10-01 17:15:47 +08:00
HuanLinOTO
24a670c9e8
Merge PR #741 : fix(security): sandbox SVG served by the media route
2026-10-01 17:14:59 +08:00
HuanLinOTO
002046cc47
Merge PR #655 : fix(server): resolve session-relative paths in fs.write and fs.read
...
# Conflicts:
# src/path-security.ts
2026-10-01 17:14:58 +08:00
HuanLinOTO
188fea0328
Merge PR #754 : fix(preview): resolve workspace-relative paths against session cwd for HTML and media routes
2026-10-01 17:13:47 +08:00
HuanLinOTO
ea76981c0e
Merge PR #697 : fix(native): 跨会话打开改为排队到上屏重放(Fixes #694)
...
# Conflicts:
# src/client/native/surface.ts
2026-10-01 17:13:47 +08:00
HuanLinOTO
86ec5ccc75
Merge PR #736 : fix(native): focus through the controller on surface.activate; carry meta on close
...
# Conflicts:
# docs/external-plugin-guide.md
# src/client/native/surface.ts
# src/client/service.ts
2026-10-01 17:12:53 +08:00
HuanLinOTO
92ab1f83b8
Merge PR #776 : fix(native): 按会话记账 + 宿主 keepMounted,原生 tab 状态不再跨切换丢失(#636 #661)
...
# Conflicts:
# src/client/native/index.ts
# src/client/native/tab-adapter.tsx
2026-10-01 17:12:10 +08:00
HuanLinOTO
4e02951fb5
Merge PR #662 : fix(native): 文件 tab 图标不再依赖插件侧记录(Fixes #660)
...
# Conflicts:
# src/client/native/index.ts
2026-10-01 17:11:37 +08:00
HuanLinOTO
84d93ba6ce
Merge PR #718 : fix(native): keep a link's url seed on the tab it opens
...
# Conflicts:
# src/client/native/tab-adapter.tsx
2026-10-01 17:11:15 +08:00
HuanLinOTO
931215f08f
Merge PR #700 : fix(client): report a rejected sidebar sync instead of failing silently
2026-10-01 17:08:55 +08:00
HuanLinOTO
b47fb12457
Merge PR #652 : fix(state): contain a throwing store listener instead of blanking the sidebar
2026-10-01 17:08:18 +08:00
ymac
0a83d671e5
docs: the post-merge division of labour for native tab state
...
Merging main moved the expansion set into the plugin store's session state
(`5c95002`: `attachStore` / `syncExpanded` / `getSessionStates().expanded`), which
was this branch's other half. Record the split so the next reader does not try to
keep two authorities: the STORE owns the expansion set, the RECORD owns identity
(`sessionId::tabId`) and lifetime (no `drop` on unmount), and `keepMounted` is
what makes both survive a tab or Conversation switch.
- `AGENTS.md` §3.4 item 9: three facts instead of two — (c) is the store authority.
- `docs/plans/2026-09-25-…md`: the merge note, plus the earlier attribution note
that the `FILES_KIND` guard came from #777 .
2026-10-01 16:47:43 +08:00
ymac
4f57cf886e
test(e2e): read the on-screen seat from the visible panel, not any seat
...
The lane's `onScreenSession` walked every `[data-sidebar-right-session]` element
and took the first without a `hidden` attribute. On 0.2.x the host marks BOTH
each RETAINED seat (one per Conversation stays in the DOM) AND each seat's panel
with that attribute, so the walk could name a background Conversation and the
A → B → A round trip failed on `selectConversation` (real mount lane: expected
`session-eeb1…`, read `session-b8e4…`, 60s timeout).
Read the panel that is actually laid out (`[data-sidebar-right-panel]:visible`) —
the same `:visible` convention the rest of this lane already uses — and keep a
visible-seat fallback. Mount lane: 10/10 (was 9/10).
2026-10-01 16:47:43 +08:00
ymac
d1c8208d56
Merge origin/main (v0.24.1, DSH 0.2.0-rc.1) into fix/native-tab-state-retention
...
Two conflicts, both in the native tab adapter's per-session work — main's
`5c95002` moved the expansion set into the plugin store's session state while
this branch moved the RECORD identity to `sessionId::tabId`:
- `src/client/native/tab-adapter.tsx`: keep main's store-backed expansion as
the authority (`attachStore` / `syncExpanded` / `getSessionStates().expanded`)
and this branch's seat-scoped identity (`views` keyed `sessionId::tabId`,
`get/has/update/drop/versionOf/retain` take the seat session). `toggleExpanded`
keeps main's active-`reduce` / background-`reduceFor` split, but locates the
record by its seat and writes the SCOPE session's set — the set every view of
that session mirrors.
- `tests/native-surface.spec.ts`: main's five expansion cases adapted to the
session-scoped API (seat session on `ensure`, two-arg `get`/`drop`, seat on
`toggleExpanded`); the branch's cases now bind a store before toggling, since
expansion no longer lives in the record itself.
The `files` takeover guard and its registration invariants come from
main; this merge drops the branch's duplicate.
2026-10-01 16:37:35 +08:00
多玩幻灵qwq
1499502bfa
Merge pull request #726 from Awoodwhale/feat/plugin-catalog-agent-persona
...
feat(catalog): 推荐目录新增 dsh-agent-persona(人设 Tab)
2026-10-01 15:24:07 +08:00
HuanLinOTO
2cbdf25594
Merge branch 'feat/plugin-catalog-agent-persona' into main (catalog train)
2026-10-01 15:23:42 +08:00
多玩幻灵qwq
84dbee585a
Merge pull request #723 from lpf20200901/feat/plugin-list-dsh-memory-delta
...
feat(plugin-list): add dsh-memory-delta to the recommended tab catalog
2026-10-01 15:22:57 +08:00
HuanLinOTO
3b233ceee4
Merge branch 'feat/plugin-list-dsh-memory-delta' into main (catalog train)
2026-10-01 15:22:37 +08:00
多玩幻灵qwq
975d51d92d
Merge pull request #714 from OrangeX4/feat/add-tylina-tab-catalog
...
feat: add Tylina tab plugin to catalog
2026-10-01 15:21:22 +08:00
HuanLinOTO
afd96632d1
Merge branch 'feat/add-tylina-tab-catalog' into main (catalog train, includes train-breakage repair)
2026-10-01 15:21:04 +08:00
多玩幻灵qwq
084677665a
Merge pull request #810 from xlennart/codex/register-dsh-side-chat
...
docs: register dsh-side-chat in the tab catalog
2026-10-01 15:16:15 +08:00
多玩幻灵qwq
32812f3f44
Merge pull request #795 from OMSociety/feat/omsociety-plugin-entries
...
feat(plugin-list): 把 dsh-git-forge 与 dsh-ssh-tunnel 两条指向维护中的仓库与 npm 包
2026-10-01 15:15:48 +08:00
多玩幻灵qwq
d99d42acce
Merge pull request #711 from Lukeknow0/main
...
docs: add Markdown output link preview plugin
2026-10-01 15:15:21 +08:00
多玩幻灵qwq
7c32c110f2
Merge pull request #688 from KannaKuron/feat/plugin-entry-dsh-ide-git
...
feat(catalog): add dsh-ide-git to the tab plugin catalog
2026-10-01 15:14:55 +08:00
多玩幻灵qwq
e21b5c19ce
Merge pull request #585 from modusensus/catalog-dsh-mneme
...
feat(catalog): add dsh-mneme to the tab plugin catalog
2026-10-01 15:13:58 +08:00
多玩幻灵qwq
8d9183746c
Merge pull request #544 from Andor-Z/feat/dsh-turn-outline-listing
...
feat: list dsh-turn-outline in the plugin ecosystem (README + catalog)
2026-10-01 15:12:57 +08:00
多玩幻灵qwq
aa095e6b33
Merge pull request #514 from kp-z/add-dsh-dev-git-graph
...
Add dsh-dev-git-graph to the tab plugin catalog
2026-10-01 15:10:24 +08:00
MXY
e1c7ac3491
fix(ws): fence 接受桌面壳页面 origin,补全自定义协议下的 WebSocket 修复
...
上一个提交把 WebSocket 的 base 改到 `__DSH_TRANSPORT__.streamBaseUrl`,解决了
`ws://app` 解析不了的问题;但握手仍然失败。桌面壳页面位于 `dsh-app://app`,
它的 WebSocket 升级直连 Host 的 loopback 地址(壳的 `protocol.handle` 不承载
upgrade),Chromium 因此带上 `Origin: dsh-app://app`。fence 按 hostname 比较,
字面量 `app` 永远不等于 `127.0.0.1`,socket 在 `handleUpgrade` 之前就被销毁。
HTTP 路由不受影响,原因在壳自己:它转发前会删掉 origin 头,Host 侧看到的是
无 Origin 请求,fence 本就放行。所以同一个 fence 只在 WebSocket 路径上暴露。
改动:fence 在 Host 检查通过之后接受精确字符串 `dsh-app://app` —— 与壳自身
request forwarder 的信任集合(非 null 时只认这一个)逐字一致。同 scheme 的
其他 origin、跨站 origin 仍然拒绝;无 Origin 的请求本来就走放行分支,因此这
不是在既有信任面之外新增入口。
测试:`tests/trusted-hosts.spec.ts` 新增 4 例,其中两条是负向控制(Host 非
我方时仍拒、精确匹配而非前缀匹配)。两条新断言各做过一次变异验证:禁用该
分支只让「接受」一例变红,改成前缀匹配只让「精确」一例变红。
2026-10-01 02:30:26 +08:00
Andor
2af19166b0
feat(catalog): unpin dsh-turn-outline prerequisite after 0.18.0 co-test
...
plugin 0.2.7 declares dsh-better-sidebar@^0.17.0 || ^0.18.0 and is
co-tested on better-sidebar 0.18.0 + DSH 0.1.2-rc.1, so the catalog
install line no longer needs the 0.17.1 stable-line pin.
2026-09-30 15:48:24 +08:00
Andor
737276b256
feat: list dsh-turn-outline in the plugin ecosystem (README + catalog)
...
Adds Andor-Z/dsh-turn-outline (turn-outline tab) to the ecosystem:
- README.md / README_EN.md tab-plugin table rows + header count 24 -> 26
(aligns with the actual row count, which was already 25)
- recommended-catalog entry in plugins-tabs.ts (npm install; better-sidebar
prereq pinned to 0.17.1 - stable-line policy, see the entry comment)
- pluginTurnOutlineName/pluginTurnOutlineDesc i18n keys across all 20
dictionaries (locales.ts zh/en + 19 locale chunks)
2026-09-30 15:48:24 +08:00
kola
a9a7a9901a
Merge upstream main and preserve absolute preview paths
...
Resolve client preview paths against the session cwd. Limit the server file fallback to relative input and retain upstream absolute HTML path semantics. Cover nested assets, Windows/UNC paths, and external files with workspace shadows.
2026-09-30 13:26:10 +08:00
cxl
06377fbc5f
docs: register dsh-side-chat in the tab catalog
2026-09-30 01:55:02 +08:00
MXY
27187256c9
fix(client): WebSocket 路由改用壳注入的 transport base(0.2.0-rc.1 / v0.24.1 基线)
...
桌面壳把页面放在 dsh-app://app/ 下,location.origin 的 host 是字面量 app,拼出的 ws://app/... 永远解析不了。改用 __DSH_TRANSPORT__.streamBaseUrl(壳经 DESKTOP_IPC.boot 注入);普通 http(s) 页面下与 location.origin 等价。
本 PR 是 #768 同一份修复在 0.24.1 上的重放:原 PR 基于 0.22.x,而 v0.24.0 起支持线已前移到 ^0.2.0-rc.1,旧基线无法合并,故新开。
2026-09-29 01:51:46 +08:00
Atlas Zeng
492661a3ea
Update README.md
2026-09-29 00:45:34 +08:00
Atlas Zeng
a2751cfbde
Merge pull request #782 : 文件页/文件变动页 UIUX 重构 + DSH 0.2.0 适配(v0.24.1)
...
汇总自 v0.22.1 以来的全部更新:文件页多选 / Git 着色 / 新建文件夹 / 压缩下载进度 / 打开方式双源 / 菜单层级 / 性能(fs.tree 22.8→3.8ms、批量 fs.trees),文件变动页重构为层级树,删除工作区路径检测(放开权限,安全相关),DSH 0.2.0-rc.1 支持线(无运行时兼容分支),以及展开整树重建、在侧边打开、展开状态重置等修复。
CI:ci / ci-windows / plugin-mount 三绿(1-review 规则按仓库 bootstrap 免审名单由 owner 账号放行)。本地 137 文件 / 1491 用例、真实宿主 lane 9/9。
v0.24.1
2026-09-28 23:28:46 +08:00
山海学社OMSociety
e3215e7e2a
feat(plugin-list): 把 dsh-git-forge 与 dsh-ssh-tunnel 两条指向维护中的仓库与 npm 包
...
这两个插件的维护线在 OMSociety,且已发布到 npm(条目 id 即 npm 包名):
- url: thirsty5034/<repo> → OMSociety/<repo>
- install: GitHub 源形态 → npm 形态(dsh plugin --profile web add <pkg>@1.0.0)
- 注释里「package is GitHub-sourced until npm publish」同步改为已发布 npm
- README.md / README_EN.md 对应两行的链接与 stars 徽章同步
条目 id 与 locale 串不变,tests/plugin-list.spec.ts 的唯一性与形态断言不受影响。
2026-09-28 23:26:03 +08:00
Menghuan1918
52be73e176
test(zip): 让两条断言平台正确,修 ci-windows 红
...
ci-windows(首次在本分支跑)报 tests/zip.spec.ts 两条失败,均为**测试可移植性**问题,不是产品缺陷:
1. 「keeps a backslash as part of the file name (POSIX names are literal)」:
Windows 上反斜杠就是路径分隔符,join(root, 'a\b.txt') 得到 root\a\b.txt,父目录不存在 →
writeFileSync 报 ENOENT。该语义在 Windows 上根本不存在 → 按仓库既有约定
it.skipIf(isWin32) 跳过,并在注释里写明理由。
2. 「passes unzip -t when the binary exists」:断言 outMode === inMode & 0o644 在 Windows 上
无意义(两边 statSync().mode 都是 0o666 → expected 420, received 438)。CRC 与解压断言保留,
只把 mode 一致性放进 !isWin32 分支。
本地:tests/zip.spec.ts 37/37 通过;全量 typecheck / lint / test 绿(137 文件 / 1491 通过)。
2026-09-28 23:21:06 +08:00
Menghuan1918
0ac62b3a49
Merge origin/main (v0.22.1 与三个热修 PR) into feat/files-changes-uiux
...
冲突面 11 个文件,逐项裁决如下:
1. src/client/native/index.ts —— **取 main 版**。main 的 v0.22.1 在同一处做了更强的修复
(清理循环同样跳过 FILES_KIND,另加 `disposeSafely` 与「注册失败必须回滚已占用 id /
已建槽位」),是我们那行守卫的超集。
⚠️ 但 main 分支从来没有过我们 task-19 的 `records.attachStore(store)` 调用,整文件
采用会**静默丢掉**它(records 拿不到 store → `toggleExpanded` 直接 return → 点目录
树毫无反应),且 jsdom 单测看不见(它们自己绑 records)。已按原注释恢复该调用,并在
注释里记下这次合并教训。真实宿主 lane 证明:恢复前 `zz-expand-refresh` 红(请求为
空、`big` 不展开),恢复后 9/9 全绿。
2. package.json / dsh.plugin.json / src/client/service.ts —— 版本相关冲突取我们的
0.24.1(支持线 ^0.2.0-rc.1 不变)。
3. CHANGELOG / README(中英各一)—— 双方版本节全部保留:我们的 v0.24.1 / v0.24.0 +
**新增缺失的 v0.23.0 节**(开发线,内容随 v0.24.1 发布)+ main 的 v0.22.1。
同时修正两处事实错误:① 「0.1.7 线请固定 v0.23.0」→ **v0.22.1**(0.23.0 从未发布);
② 安装对照表里 0.1.7 行的安装命令同改。README 并补上 v0.23.0 摘要(含 ⚠️ 删除工作区
路径检测这一安全相关的行为变更)。
4. docs/external-plugin-guide.md —— 版本行取我们的(0.2.0 线)。
验证(合并后的树):pnpm typecheck / lint / test = **137 文件 / 1491 通过 / 9 跳过**
(含 main 新增的 native-registration.spec.ts);pnpm build ✓;
DSH_CMD='npx -y --package @deepseek-ai/dsh@0.2.0-rc.1 dsh' pnpm test:mount = **9/9**
(mount 5 + perf 2 + main 的 native-reload 1 + 我们的 zz-expand-refresh 1)。
2026-09-28 23:13:36 +08:00
Menghuan1918
98a446bbfc
fix(sidebar): 点击展开时文件树整体重建(两处根因)+ v0.24.1
...
用户报告:「点击展开的时候,文件树会频繁整体刷新,看起来非常难受」。
根因 1(主):src/client/native/index.ts 的 sync() 把 files 接管项当成多余注册。
它按 KIND 记账、永远不在 wanted 里,于是每次 sync 都被 dispose + 重建;而
disposeSubscriptions 同时订阅了 service 与 store,**任何会话状态写入**(展开/收起、
切 tab、拖底部工作台、选中…)都会跑一遍 sync。替换 slot 注册 = 宿主换 slot entry →
插件 tab body 被 unmount/remount → 文件树丢失层缓存、滚动位置与目录 watcher,并重新
fs.trees([root, ...expanded]) 重列整棵可见树。机械证明(临时插桩,已回退):
[probe-sync] enter live=[editor,git,subagent,sidechat,diff,files]
[probe-registerSlots] slot inject ran for dsh-better-sidebar:files
[probe-body] unmount tab3 kind=files
[probe-body] mount tab3 kind=files
修法:wantsFiles 提前,删除循环里对 files 接管项 skip(禁用 editor 时仍照旧释放)。
根因 2(次):FileTree.tsx 的 retryDir 先把该层缓存删掉再请求,行被「Loading…」
占位替换后重建——目录有外部写入(构建 / 格式化 / 模型跑 bash)时整层闪空。
修法:复用既有 force 路径 loadLevels([dir], { force: true }),保留旧行直到新答案到达
(与 refreshTick 的强制刷新路径行为一致)。
判别性证据(回退任一修复即红)
- tests/native-surface.spec.ts:三次 store 写入不得产生任何注册/注销 → 回退后
registered 6 → 12、disposed 全是 dsh-better-sidebar:files
- tests/file-tree-batch-load.spec.tsx:重列期间旧行仍在屏 → 回退后层被删空
- 新增真实宿主 lane tests/e2e/zz-expand-refresh.e2e.ts(quiescence 判据,无固定 sleep;
zz- 前缀保证它最后跑,因为它会自建 workspace + session):A1 展开只请求被展开那一层、
A2 tab body 存活(不重开 watch socket)、A3 屏上行数不归零;回退修复 1 后退出码 1
(Error: expanding a folder must ask for that folder, not the whole visible set)
修复后实测(40 子项目录,同一探针/机器/工作区)
| 阶段 | fs.trees payload | 新开 ws | DOM +/- | 被删行 | body 替换 | 层内最小行数 |
| 展开 big | [big](原 [root, big]) | 0(原 1) | +41/-1 | 0(原 45) | 0(原是) | 40(原 40) |
| 外部写入 big | [big] | 0 | +1/-0(原 +41/-40) | 0 | 0 | 40(原 0) |
| 展开 bravo | [bravo] | 0 | +2/-1 | 0(原 45) | 0(原是) | 41 |
证伪记录:新建 fs.watch(dir,{persistent:false}) 在 macOS 上无改动时 0 事件(Node 微
探针两遍 + 8 轮真实时序 + 浏览器侧从未收到 {dir} 陈旧帧)→ src/fs-watch.ts 与
use-dir-watch.ts 一行未改。
验证:pnpm typecheck / lint / test(136 文件 1486 通过 9 跳过,基线 1484 + 新增 2)/ build
全绿;DSH_CMD='npx -y --package @deepseek-ai/dsh@0.2.0-rc.1 dsh' pnpm test:mount = 8/8。
版本 0.24.0 → 0.24.1(package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION /
README×2 / CHANGELOG×2 同步)。
2026-09-28 22:33:30 +08:00