Commit Graph
1297 Commits
Author SHA1 Message Date
Menghuan1918 22eb6ebddf merge #929: fix(tree): 改名/删除的调解覆盖后台会话的页签 + 标题只在派生自文件名时跟随(#915 后续) 2026-10-26 15:00:55 +08:00
Menghuan1918 28566625b3 merge #1018: fix: 分支过多时继续显示提交历史 (#1013) 2026-10-26 15:00:52 +08:00
Menghuan1918 c45cea1f77 merge #999: fix(git): harden runGit's output caps — latch, killTree, stderr budget 2026-10-26 15:00:42 +08:00
Atlas Zeng abfe133d89 Merge pull request #1050 from omdsh-dev/fix/perf-scan
perf: 扫描并修复侧栏卡顿(文件树/侧聊/diff/提交图 + 宿主路由)
2026-10-24 12:32:34 +08:00
Menghuan1918 18dade0f63 fix(perf): address the perf-scan review findings 2026-10-24 12:10:17 +08:00
Menghuan1918 c6fe1b3db9 docs: record the perf scan batch 2026-10-24 02:17:12 +08:00
Menghuan1918 a721911d44 perf(worktree): re-arm the active-root TTL when the event cursor is idle 2026-10-24 02:17:12 +08:00
Menghuan1918 81b2e8077e perf(bundle): answer HEAD from the stat without reading the chunk 2026-10-24 02:17:12 +08:00
Menghuan1918 0a4a94c704 perf(graph): window the commit history rows 2026-10-24 02:17:10 +08:00
Menghuan1918 2237f3787b perf(diff): parse a patch once and cap the default expansion 2026-10-24 02:17:10 +08:00
Menghuan1918 b1efd9226b perf(sidechat): cache the per-row prose rewrite 2026-10-24 02:17:07 +08:00
Menghuan1918 4cb7937a37 perf(files): keep parked trees idle and batch the watcher re-arm 2026-10-24 02:17:07 +08:00
Menghuan1918 27a920f85b perf(tasks): coalesce wheel zooms to one commit per frame 2026-10-24 02:17:05 +08:00
Atlas Zeng 740d73a09a Merge pull request #1041 from omdsh-dev/fix/tasks-folding-performance 2026-10-23 21:44:37 +08:00
Menghuan1918 dc385130a0 fix(tasks): coalesce pointer drags to one update per frame
Background pans, the floating-window title drag and the anchored-popover drag committed on every pointermove, so a high-report-rate mouse re-rendered the tasks canvas at event cadence. Compose the latest position in a ref and commit it through the existing frame batcher; release and cancel flush synchronously. Click suppression still updates per event.

Regression: same-frame 100-move burst commits drop 98 -> 1; full suite 2720 passed.
2026-10-23 21:28:22 +08:00
Atlas Zeng 090a5488cf Merge pull request #1044 from NolanHo/fix/sidechat-render-parity
feat(sidechat): render local images and present deliveries
2026-10-23 19:11:22 +08:00
NolanHo 6f14792baa fix(sidechat): address rendering review findings
Replace a failed present card with the generic failed tool row; keep one event-authoritative card whichever of the call and its delivered event lands first.

Use the host's real border token for the delivery card; include the visible description in the file button's accessible name and resolve its title path.

Handle CommonMark angle-delimited image destinations and preserve titles; add transcript, prose-rewrite, and DOM regression tests.

Update the change spec with review-driven acceptance commands, status, and evidence.
2026-10-23 02:48:13 -07:00
NolanHo 909f536eab feat(sidechat): render local images and present deliveries
Cache markdown label objects by value so MarkdownText's memo survives parent re-renders; pass streaming for unsettled assistant rows.

Rewrite local image destinations in Side Chat prose against the session cwd through the existing /sidebar/file media route.

Map present tool calls and deliverables/presented events to a compact delivery card with thumbnails and the plugin's file-open path.

Add the change spec, exploration notes, and regression tests.
2026-10-22 22:25:07 -07: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
Atlas Zeng f41830239f Merge pull request #1035 from NolanHo/fix/sidechat-head-replacement-tail
侧边对话:模型切换重写 system prompt 后也按最后一次压缩切尾
2026-10-23 11:29:33 +08:00
kelvinwww fd5a38538e fix: 补齐提交历史提示的多语言词条 2026-10-20 21:42:13 +08:00
kelvinwww b9e07526c3 fix: 分支过多时继续显示提交历史 2026-10-20 21:21:27 +08:00
NolanHo e5f96b8e36 fix(sidechat): trim the seed when a model switch rewrites the head
A model switch after the last compaction replaces the protected system
prompt with a system/message whose seq sits after the cut but whose
surface slot is the head before the checkpoint. The builder refused that
shape, so every such sidechat copied the parent log in full.

Resolve the single-node replacement chain to its pre-cut anchor using the
checkpoint's recorded shadowed set (not its declared numeric range, which
misclassifies keep-window replacements), carry the latest replacement in
the head slot with the anchor's turn/step scaffolding, and consume the
chain so the keep window and tail never re-emit it. Range replacements,
targets the checkpoint removed, non-system nodes, and broken or forward
chains still fall back to the verbatim copy.

Tests cover a single switch, a two-switch chain, a multi-hop chain whose
intermediate sits inside the declared range but not in the shadowed set,
and a valid range fallback. The trim fixtures fall back on the old code.
Real parent logs now trim (6036->187, 8329->2479, 16458->4359, ...) with
surface equivalence and Session.create acceptance; the previous
35992->3456 trim is unchanged.
2026-10-19 07:37:01 -07:00
lhh010 37bc30f164 fix(git): harden runGit's output caps — latch, killTree, stderr budget
dev already caps stdout bytes (GIT_OUTPUT_MAX_BYTES) and NUL fields, but
three gaps remain, all proven by the 2026-10-13 host crashes (twice:
RangeError: Invalid string length at the stdout accumulator, a junction-
forest workspace driving 'git status -uall' to gigabytes):

1. no latch after a byte-cap reject — later chunks kept ACCUMULATING on
   the retained strings. On Windows spawn('git') resolves to the cmd
   shim, whose grandchild survives child.kill() and keeps feeding the
   dead accumulator (measured: the orphan outlived kill() by 20+s). The
   fieldCapped guard covered only the row cap; the byte cap had none.
2. kill() reaches only the wrapper — the orphaned grandchild needs its
   pipes destroyed (EPIPE) to actually stop. killTree() destroys both
   streams and is now used by every kill path (timeout, byte cap, field
   cap).
3. stderr was uncapped — a command whose DIAGNOSTICS stream past the
   budget is as able to kill the host via string length as its answer;
   stderr now shares the same maxBytes budget.

Worst case in a pathological workspace is now one failed SCM refresh,
never a dead host.
2026-10-18 20:18:57 +08:00
Menghuan1918 83faf70940 release: merge dev for v0.28.0 (DSH 0.2.1-rc.1) 2026-10-17 14:13:26 +08:00
Menghuan1918 0fab0afdbb merge chore/dsh-0.2.1-rc.1-release-0.28.0: prepare stable RC adapter 2026-10-17 14:03:22 +08:00
Menghuan1918 66c91091bc chore(release): adapt to DSH 0.2.1-rc.1 for 0.28.0 2026-10-17 14:03:22 +08:00
Menghuan1918 35ad6fc685 release: merge dev for v0.28.0-alpha.0 2026-10-17 12:24:23 +08:00
Menghuan1918 6a122c4893 merge test/alpha-baseline-crlf: fix Windows release gate 2026-10-17 12:15:58 +08:00
Menghuan1918 1fd6e0f139 test: accept CRLF checkouts in DSH baseline guard 2026-10-17 12:15:58 +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 24d2032de1 merge fix/git-graph-fill-height: fill available Git graph height 2026-10-17 11:36:53 +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 0c7868cc07 Merge Context diagnostics integration into dev 2026-10-17 02:22:07 +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 57722809ed merge chore/dsh-0.2.1-alpha.5-adaptation: support alpha.5 2026-10-17 02:12:44 +08:00
Menghuan1918 4ebd3e9bdd chore: adapt sidebar to DSH 0.2.1-alpha.5 2026-10-17 02:12:44 +08:00
Menghuan1918 9cb0b9c56d release: merge dev for v0.27.0 2026-10-16 22:06:07 +08:00
Menghuan1918 693b4850e3 merge chore/release-0.27.0: prepare Git page release 2026-10-16 21:57:02 +08:00
Menghuan1918 b5fec8d9a2 chore(release): prepare 0.27.0 Git page integration 2026-10-16 21:57:02 +08:00
Menghuan1918 55a0fd019d merge test/isolate-scroll-fixture: avoid stale shared repositories 2026-10-16 21:49:48 +08:00
Menghuan1918 3e9eacf0cb test(e2e): isolate scroll retention fixtures per run 2026-10-16 21:49:48 +08:00
Menghuan1918 612cea242f merge fix/git-scm-layout: restore selected Git row layout 2026-10-16 21:46:54 +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 e523f832cc merge pr-964 (#964 侧边对话子会话改为从最后一次 summarizing compaction 起种,不再全量复制父日志) into dev(@NolanHo) 2026-10-16 21:27:48 +08:00
Menghuan1918 aacb2b247e docs: 移除 sidechat compaction-tail seed 设计文档 2026-10-16 21:17:13 +08:00
Menghuan1918 af2aeb2889 docs(agents): AGENTS.md 收敛为规则清单(67KB → 10.8KB),深度参考移入 docs/
- AGENTS.md 只留每次都要遵守的规则与索引:§0 分支模型、§1 硬约束、§2 挂载
  门禁与钉版禁忌、§3 版本适配与抬基线清单、§4 发版、§5 开发规则、§6 去哪找
- 原 §3.4 宿主契约第 1–12 条与 0.1.5–0.1.7 沿用至今的约束移入
  docs/host-contracts.md,**编号保持不变**——代码 / 测试 / 文档里既有的
  「AGENTS.md §3.4 第 N 条」与 `§3.10` 引用仍能命中
- 删掉测试地图长清单与 CI 取证叙事:契约本就在各 spec 头注释、docs/plans 与
  CHANGELOG 里,AGENTS.md 只留索引与那几条会真咬人的跨平台规则
- 订正过期事实:testTimeout 30s、chunk 名真源 CHUNK_NAMES、markdownTextProps
  渲染点、minimumReleaseAgeExclude 所在脚本、0.1.7 线最后支持版 v0.22.1
2026-10-16 18:35:51 +08:00
Menghuan1918 f73e6632c3 chore(changes): 清掉第三镜头的残留样式(.lens / .lens[hidden])
图谱区改挂 Git 镜头后这两条选择器没有消费者;行为无变化。
2026-10-16 17:41:33 +08:00
Menghuan1918 71c8243a2b docs: Git 页面合并车的 CHANGELOG 段、融合设计文档与接入文档/AGENTS 同步
- CHANGELOG 顶部新增 Unreleased 段(11 个 PR 的逐条说明与贡献者署名);
- 新增 docs/plans/2026-10-16-git-page-vscode-scm-merge.md(决策 D2/D5、被剔除的夹带、
  有意偏差、守住的不变量、未做清单、过程中修掉的三处 CI 红);
- guide:页签名、Source Control 视角、changes.ops 的 wait 长轮询口径、guide 条目名;
- AGENTS §5/§6:内置 tab 名与测试地图补入本批新增/改写的 spec。
2026-10-16 17:31:41 +08:00