Commit Graph
1378 Commits
Author SHA1 Message Date
unsc9 10ccebb052 test: let detached archive packs land before cleanup 2026-10-29 10:22:14 +08:00
unsc9 173e01030a fix(i18n): align the switch-file confirm with each language's sibling copy 2026-10-29 09:28:32 +08:00
unsc9 ae71cd05e6 test(editor): cover the three no-prompt switch branches 2026-10-29 09:10:44 +08:00
unsc9 50ecb43c54 fix(editor): use switch-specific copy for the draft guard 2026-10-29 09:10:44 +08:00
unsc9 9f92bff245 test: widen the Windows temp-tree cleanup retry budget
The ci-windows lane failed in archive.spec.ts's afterEach with ENOTEMPTY after the test had passed. The same cleanup flaked on 2026-10-15; the existing 10x50 ms retry budget is too short on a loaded runner. Raise it to 30x100 ms; POSIX still succeeds on the first attempt.
2026-10-28 22:32:03 +08:00
unsc9 5981c7f7a3 refactor: share the editor's draft-discard confirm fallback
refreshFile and the in-place file switch used the same three-line no-confirm fallback. Extract it once and keep the fallback semantics unchanged; the comment now says the switch reads the same dirty registry as the close guard, not that the fallback is identical.
2026-10-28 22:06:24 +08:00
unsc9 00553e2484 fix: confirm before in-place file switch drops an unsaved draft
The merged editor mode rewrites the current tab's path, which remounts the viewer and drops a draft that lives only in that instance. Ask the same unsaved-edit guard the tab close uses; re-opening the current path and native-claimed files do not switch this tab and stay prompt-free.
2026-10-28 21:21:58 +08:00
changfenhuang 58310536d6 feat: add GenUI sidechat provider and prepare 0.29.0 (#1075)
Preserve the original provider PR #1033 commits and contributor attribution.
2026-10-28 15:43:25 +08:00
taekchef cd1251be2d feat: prepare Sidebar 0.29.0 GenUI provider release 2026-10-28 14:48:08 +08:00
taekchef a7e39632e3 merge: retain published main metadata for sidechat release 2026-10-28 14:40:13 +08:00
taekchef 60c3fff158 merge: integrate Sidebar provider PR #1033 with current dev 2026-10-28 14:40:13 +08:00
Menghuan1918 b0e0fab50e release: merge dev for v0.28.2 (cold-cwd read fix) 2026-10-27 23:08:25 +08:00
Menghuan1918 e3d32cde42 chore(release): prepare v0.28.2
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.2
- CHANGELOG: v0.28.2 (cold cwd from the stored workspace header) with the
  measured numbers; CHANGELOG_EN mirrors it
- README / README_ZH: install commands and installer args target 0.28.2;
  Recent Updates trimmed to v0.28.2 / v0.28.1 / v0.28.0
- AGENTS + external-plugin-guide: current stable version is v0.28.2
- plan record: 40,157,518-byte session benchmark (1 header read, 0 full
  reads, 3 ms, +0.3 MB RSS; pre-fix 6 calls = 6 full reads, +1.0 GB peak)
2026-10-27 22:58:01 +08:00
Atlas Zeng fcd82267fe Merge pull request #1069 from omdsh-dev/fix/workspace-cwd
fix(host): root a detached session at its stored workspace header, not a full log read
2026-10-27 22:39:41 +08:00
路从今夜白 d953b7c3d5 Merge current dev into maintainer sidechat surface assist candidate
Preserve original contribution and reviewed assist merge; retain PR base dev.
2026-10-27 12:45:46 +08:00
taekchef fc717fbbff merge origin/main into genui-sidechat-surface: keep main's row-level rewrite pass and streaming parse inside the GenUI row component 2026-10-27 11:39:58 +08:00
Menghuan1918 f7a11ddbfe fix(host): root a detached session at its stored header, not a full log read
cwdOf() resolves the cwd for every file/Git route, and a cold (detached)
session paid one host observation per call: sessionQuery.observeSession({
projectionMode: 'all' }) decodes the whole zstd artifact and hydrates every
projection to answer with one workingDirectory string. The 0.28.1
single-flight only covered /sidebar/api, while the real startup fan-out
never goes through it: the fs-watch socket sends one frame PER WATCHED
DIRECTORY (server resolves cwd before it even reads the op), /sidebar/file
and /sidebar/html resolve per resource, upload/write per call. A 39 MB
session was therefore decoded dozens of times in parallel — the 44-read
OOM on 0.28.0 and the 36 reads reported against 0.28.1 are the same path,
not a broken dedupe.

A detached session now resolves through sessionPersistence.stat(), which
reads the first zstd frame only (header-only, never the log), memoized per
session id (headers are immutable) and shared in-flight across concurrent
asks. activeWorktreeRootOf() answers a detached session with that address
and no longer folds the stored log. Once the host attaches the session the
committed working_directory and linked-worktree following resume as before.

Trade-off (documented): until attach, the sidebar roots at the original
project rather than the agent's last directory/worktree.

tests/smoke.spec.ts rewrites the cwd group (header ahead of a stale hint,
one header read per session, 12 concurrent asks share one, stat absent or
failing falls back to the hint, live committed directory wins, relative
header cwd still refused) and tests/active-worktree.spec.ts pins that a
detached session performs no persistence read and no git probe.
2026-10-27 11:36:09 +08:00
Atlas Zeng 971a3dc03f Merge pull request #1064 from omdsh-dev/Menghuan1918-patch-4
Update README.md
2026-10-26 20:20:16 +08:00
Atlas Zeng 2bc2fcba78 Replace WeChat QR code image URL
Updated WeChat group QR code in README_ZH.md.
2026-10-26 20:20:12 +08:00
Atlas Zeng 8ae97dec5b Update README.md 2026-10-26 20:19:26 +08:00
Menghuan1918 43db17f23b docs(changelog): include the side-chat changes and credit @NolanHo
#1035 (seed trim on a model switch) and #1044 (local images and deliveries)
merged after v0.28.0 and ship in v0.28.1; the changelog and the release
notes now list them and credit their author.
2026-10-26 18:12:16 +08:00
Menghuan1918 517de379b0 docs(changelog): include the side-chat changes and credit @NolanHo
#1035 (seed trim on a model switch) and #1044 (local images and deliveries)
merged after v0.28.0 and ship in v0.28.1; the changelog and the release
notes now list them and credit their author.
2026-10-26 18:12:07 +08:00
Menghuan1918 bbf349b951 docs(changelog): credit the v0.28.1 contributors
The release notes now carry the contributor table (like v0.28.0); mirror the
per-PR handles in the changelog so the record itself names @lhh010,
@wang-kaopu, @yanzhaohui1999, @finley08, @UNscientific-9, @mvanhorn,
@z11y11w and @WinterXMQ.
2026-10-26 18:10:52 +08:00
Menghuan1918 6dc9fd696a docs: pick up the v0.28.1 contributor credits 2026-10-26 18:10:52 +08:00
Menghuan1918 59131330bb release: merge dev for v0.28.1 (OOM fix + UX patch) 2026-10-26 17:51:43 +08:00
Menghuan1918 80fe1abfde merge chore/release-0.28.1: prepare v0.28.1 (OOM single-flight + README/screenshots) 2026-10-26 17:51:40 +08:00
Menghuan1918 4023927a64 merge fix/cwd-single-flight: 同键冷读 single-flight(OOM 修复) 2026-10-26 17:51:33 +08:00
Menghuan1918 7ecf6a14af perf(host): share one cold cwd read across concurrent /sidebar requests
cwdOf() resolves the session cwd for all twelve /sidebar routes. On a
detached session every call runs one host observation — the whole log read
plus decode — and the host's cold cache only helps AFTER a read completes,
so a session-switch burst decoded the same multi-MB log N times in parallel
(0.28.0: 39 MB × 44 requests ≈ 1.7 GB, OOM). Concurrent asks for the same
session + client cwd hint now share ONE resolution; there is no TTL (the
host already caches completed cold reads by persistence revision), and the
hint stays in the key so different fallbacks never leak across each other.

tests/smoke.spec.ts pins 12 concurrent calls → 1 observeSession (red before
this change: expected 12 to be 1) and the per-hint key. The dock-fallback
reserve test now clears localStorage per case — a previous case persisted
bottomOpen and made the new click toggle it closed.
2026-10-26 17:51:30 +08:00
Menghuan1918 8ee6e8de27 chore(release): prepare v0.28.1
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.1
- CHANGELOG: 未发布 → v0.28.1; CHANGELOG_EN gains the v0.28.1 summary
- README / README_ZH: install commands target 0.28.1; Recent Updates
  trimmed to v0.28.1 / v0.28.0 / v0.27.0; Git screenshot alt + tags note
- refresh docs/screenshots/files-tree.png and changes-tree.png from a
  neutral demo workspace (git colors + tag pills in the commit graph)
- AGENTS + external-plugin-guide: current stable version is v0.28.1
2026-10-26 17:43:39 +08:00
Menghuan1918 bf5844207b docs(plans): record the e2e reconciliation and the green CI run 2026-10-26 15:46:28 +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 c7d0e12341 docs: record the UX triage batch and file #983/#992/#1059 under 未发布
- CHANGELOG: add the #992 dock-fallback entry
- docs/plans: scan inventory, per-batch merge/close evidence, deferred PR
  verdicts (#1040 #1019 #1048), gates and known local flakes
- issue-triage: #983/#992/#1059 are dev-fixed pending release
2026-10-26 15:30:46 +08:00
Menghuan1918 fd8a09d96b merge #992: 桌面壳兜底入口避开标题栏左侧系统按钮(红绿灯) 2026-10-26 15:26:46 +08:00
Menghuan1918 c908959f3d fix(sidebar): 桌面壳兜底入口避开标题栏左侧系统按钮(#992)
macOS 桌面壳的原生红绿灯不在 elementsFromPoint 命中栈里,旧走查退到
视口左缘 left=4 时会把它压住。现在 darwin(非全屏、标题栏行)把左移
下限抬到宿主标题栏保留区 88px;下限之上仍无空位时接受与宿主内容重叠,
不隐藏空白会话唯一的底部工作台入口。web 行为仍是原来的 100 步有界走查。

tests/dock-fallback.spec.tsx 补 3 例:桌面占满时 left >= 88 且入口可点、
原生控件不在命中栈时同样避开保留区、web 占满时仍停在原位置。
2026-10-26 15:26:44 +08:00
Menghuan1918 73fed1689d merge #1059: 重新载入后不再死锁在 fs-conflict(仅 mtime 变化就地更新保存基线)
# Conflicts:
#	CHANGELOG.md
2026-10-26 15:20:23 +08:00
Menghuan1918 a1dd6b0eb8 merge #983: 提交图显示 tag(独立 tag 预算 + 分页指纹)
# Conflicts:
#	CHANGELOG.md
2026-10-26 15:20:04 +08:00
Menghuan1918 44007061bb fix(editor): 重新载入后不再死锁在 fs-conflict(#1059)
根因:保存基线 mtimeRef 只在 [content] effect 里刷新;重新载入返回同样
文本时 content 不变,effect 不跑,下一次保存继续发送旧 expectedMtimeMs。

修复:
- props.mtimeMs 变化时也更新 mtimeRef(只动基线,模式/草稿/脏标记的
  文件切换重置语义保持不动);
- 冲突横幅「Reload from disk」先探测磁盘文本:与上次载入/保存的字节
  一致时说明只有 mtime 变了,就地采用新基线、保留草稿、不经过脏确认;
  文本确实变化时才交回宿主的带确认重载(脏保护不变);
- 记录最近一次成功保存的文本作为比较点:编辑态保存不会重新载入,单靠
  props.content 会滞后于磁盘。

tests/text-editor-conflict.spec.tsx 的横幅回调断言跟随异步探测调整:
探测失败时仍在下一微任务回落宿主重载。
2026-10-26 15:19:12 +08:00
Menghuan1918 5bacf5fa0c 修复提交图标签缺失并校验标签分页快照 2026-10-26 15:19:02 +08:00
Menghuan1918 0dfee1dd84 test(editor): 覆盖仅 mtime 变化的重新载入保存基线(#1059)
两个判别性用例:
- TextEditor 同实例收到新 mtimeMs、content 不变时,保存必须发送新基线;
- 冲突横幅重载:dirty + 仅 mtime 变化 + confirm=false 时就地更新基线并保留草稿;
  磁盘文本确实变化时脏保护仍然生效。

修复前第一个文件的首例失败(100 vs 200),第二个文件的首例失败
(confirm 被调用、横幅不清除)。
2026-10-26 15:17:32 +08:00
Menghuan1918 9d973ccf8c docs: file the merged batch under 未发布 and refresh the version matrix
- CHANGELOG: move #929/#1013/#1020 entries out of released sections and add
  the remaining merged-batch entries (#999 #956 #981 #965 #1012 #1002 #1052)
- README/README_ZH: DSH npm latest is now 0.2.1-rc.2; spell out the old-host
  pin and the marketplace latest-vs-host mismatch
- issue-triage: the 0.26.0/0.28.0 fixes are released; only #915 is still
  dev-fixed-pending-release
2026-10-26 15:12:01 +08:00
Menghuan1918 1eeec0c27e merge #1053: fix(sidebar): keep the bottom workbench toggle while the right panel is open
# Conflicts:
#	CHANGELOG.md
2026-10-26 15:07:36 +08:00
Menghuan1918 6b4f9652f6 merge #1055: fix(markdown): 本地链接里的 Windows 反斜杠统一为正斜杠
# Conflicts:
#	CHANGELOG.md
2026-10-26 15:07:15 +08:00
Menghuan1918 5311467060 merge #981: fix(builtins): archive sidechat sessions when their tabs close 2026-10-26 15:07:01 +08:00
Menghuan1918 01a6fa573b merge #1057: perf(sidebar): 页签内容的会话 scope 改为按内容稳定,消除无关重渲染导致的整文件重读 2026-10-26 15:03:28 +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
Menghuan1918 ad078e4ea4 merge #965: fix(editor): remember the edit scroll position across tab re-seating 2026-10-26 15:02:38 +08:00
Menghuan1918 042ae22bf4 merge #1012: fix(float): 浮窗右下角缩放手柄不再被 tab 内容压住 2026-10-26 15:02:36 +08:00
Menghuan1918 01f126e866 merge #1020: fix: export the plugin icon subpath
# Conflicts:
#	CHANGELOG.md
2026-10-26 15:02:36 +08:00
Menghuan1918 8c08758afd merge #956: fix(sidebar): worktree 会话的根选择与地址基准(#947 / #950 / #952) 2026-10-26 15:00:57 +08:00