Commit Graph
1617 Commits
Author SHA1 Message Date
Menghuan1918 5575ee29b9 docs: record the contributor batch, rc3 evidence and release dependency slim-down (#1115 #1130 #882 #1191) 2026-11-16 00:49:08 +08:00
Menghuan1918 0441249314 feat(sidechat): make the native page mode configurable (#1115)
Keep the contributor independent-page implementation, but make it opt-in: the default is still one shared page with the session last/newest reattach, and Settings -> Side card -> Side chat can switch to one native page per thread. The descriptor gains a dynamic multiple predicate, native sync re-registers on a flip, and occurrence bindings are read/written only for sidebar://sidechat/<uuid> contentIds so the shared page can never be captured by an old binding.
2026-11-16 00:47:59 +08:00
peng xiang ba6f3a3423 fix(sidechat): preserve independent native tabs and exact thread bindings 2026-11-16 00:39:39 +08:00
Menghuan1918 83a25c27bc feat(git): make the repository switcher responsive (#1130)
Keep the contributor label work but place the control above Changes per the product decision: chips at natural width while every root fits, one native select once it does not. A hidden measurement row makes the decision content-driven; the More -> Repository submenu stays as the folded fallback.
2026-11-16 00:37:02 +08:00
iasi da860d9aef fix(git): keep the 仓库 caption beside the graph-toolbar picker
The relocated picker dropped its visible 仓库 caption, which left the first box of the scope row as a bare repository name. Restore the caption at the section-header type and pin it with an assertion.
2026-11-16 00:34:01 +08:00
iasi 54fa7a56ef refactor(git): the repository picker joins the graph toolbar beside the branch filter
Move the multi-repo picker from its own band above Changes to the head of
the commit-graph toolbar, ahead of the branch filter - repository first,
filter second, one scope row, and one less row of vertical space. The
picker rides the foldable graph section, so the dots -> Repository submenu
returns as the always-reachable fallback while the graph is folded; its
submenu labels now carry the same disambiguation labels as the picker
options.
2026-11-16 00:34:01 +08:00
Sidebar Test 3590ec9c53 style(git): align the repository picker with sibling controls and drop the redundant submenu
The picker label now uses the section-header face (matching 更改/提交图)
and the select mirrors the graph toolbar branch filter. The More-actions
Repository submenu is removed: the standalone picker owns repository
switching, and branch filtering already lives under the graph toolbar.
2026-11-16 00:33:58 +08:00
Sidebar Test ea770cc2e1 feat(git): a labeled repository picker for multi-repo workspaces
A container workspace that discovers several repositories rendered one
chip per root above the Changes section; with location labels the row
does not scale, and same-named checkouts were indistinguishable. The
row is now a compact labeled select: the current root stays on screen,
the full list is one click away, and options carry disambiguation
labels (deeper roots show their relative parent) shared with the
More -> Repository submenu. The picker shows the resolved status root —
a server fallback renders as a disabled stand-in with its own short
label instead of silently selecting the first option. Single-repo
workspaces render no row; switching still goes through chooseRepo.
2026-11-16 00:33:58 +08:00
Menghuan1918 7c374293c7 fix(chat): forward the host file gesture to chat mentions (#882)
DSH 0.2.2 passes a third getFileTriggerProps argument to chatFileMentions.forClosing. The wrapper dropped it, which would strip the host file context menu from stock matches. Forward all arguments and attach the same gesture to the absolute-Markdown match, with a host-refusal guard.
2026-11-16 00:33:38 +08:00
kelvinwww 8ff2c992fd fix: 修正聊天 Markdown 路径认领 2026-11-16 00:32:56 +08:00
kelvinwww 47bcd230d0 fix: 支持点击聊天中的绝对 Markdown 路径 2026-11-16 00:32:56 +08:00
Menghuan1918 251f257c37 fix(release): only install runtime dependencies (#1191)
The client bundles already inline CodeMirror, mermaid, xterm, react-icons and the rest, while the host-half lib imports only ws and yaml. Keeping those libraries in dependencies made every install pull ~240 MB / 12.6k unused files. Move them to devDependencies, keep src published, and guard both the repo and packed manifests.
2026-11-16 00:27:26 +08:00
Atlas Zeng 2811573c9c Merge pull request #1188 from omdsh-dev/chore/code-slimming
chore: remove dead code and compatibility shims
2026-11-13 16:25:50 +08:00
Menghuan1918 a2419e97c4 docs: fix stale wording after code slimming 2026-11-13 01:48:55 +08:00
Menghuan1918 e4c9366d5c chore(compat): drop unused GitLens store and folder-icon parameter 2026-11-13 01:21:39 +08:00
Menghuan1918 c56c6efeff chore(compat): inline deprecated path aliases and drop ignored fence params 2026-11-13 01:21:39 +08:00
Menghuan1918 4b1bb1fe14 chore(dead-code): remove retired browser-tab leftovers 2026-11-13 01:21:39 +08:00
Menghuan1918 e688a29877 chore(dead-code): drop unreferenced exports and orphan module 2026-11-13 01:21:39 +08:00
Atlas Zeng 44ee165f17 Change WeChat QR code image link
Updated WeChat group QR code image link in README_ZH.md.
2026-11-13 00:41:12 +08:00
Atlas Zeng 4588593160 Update README.md 2026-11-13 00:40:54 +08:00
Menghuan1918 06d21351a5 release: merge dev for v0.32.1 (DSH 0.2.2-rc.2 support, illustrated plugin details) 2026-11-12 21:43:39 +08:00
Menghuan1918 e321771e02 chore(release): prepare v0.32.1 2026-11-12 21:29:42 +08:00
Menghuan1918 e6f1af2f82 chore(dsh): 适配 DSH 0.2.2-rc.2 并补齐插件页图文详情(v0.32.1) 2026-11-12 21:20:46 +08:00
Menghuan1918 53e08cec61 release: merge dev for v0.32.0 (plugin-owned start page, Markdown previews, side-chat overhaul) 2026-11-12 15:11:12 +08:00
Menghuan1918 363f740be8 chore(release): prepare v0.32.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.32.0
- move the changelog out of Unreleased
- update README install commands, compatibility table and Recent Updates
- point the DSH plugin description at Settings → Side card and keep the SVG icon wiring
- refresh the external plugin guide version line
2026-11-12 14:59:16 +08:00
Menghuan1918 58429f1573 fix(native): center More-menu icons with card labels
Wrap every More row glyph in a fixed 14px box and center both custom icon wrappers and SVGs, so Tasks/Side Chat no longer ride 2px above their labels.
2026-11-12 14:22:57 +08:00
Menghuan1918 91e3ee8970 fix(native): ellipsize start-page card descriptions
Long subtitles were clamped to two lines and grew the card; keep them on one line with a text-overflow ellipsis, and pin the rule with a CSS regression test.
2026-11-12 14:18:54 +08:00
Menghuan1918 95270afa2f fix(diff): 超长单行 diff 不再卡死(线性高亮 + 有界预览)
scanLine 对每个字符执行 exec(line.slice(i)),会向后扫描到下一个空白:压缩成单行的 JSON/JS 上是 O(n²),实测 618KB 1.9s、2MB 约 20s,打开差异时主线程长任务表现为「加载中」假死。改为单字符空白判定,整行只线性扫描一次(2.6MB 实测 57ms)。

超过 20K 字符的行在 DiffRows 只渲染有界纯文本预览(折叠 2K / 展开 20K),不再生成多 MB 文本节点与 title;普通长短行行为不变,完整内容仍可在内容页/源文件查看。

测试:tests/changes-ops.spec.ts(1MB minified 行线性且 token 覆盖全行、长行仍推进块注释状态)、tests/diff-fold-expand.spec.tsx(超预算行折叠/展开均有界、500 字符行仍完整渲染)。

真机复核(挂载真实宿主 + Chromium):2MB 单行 diff 最大长任务 120ms(修复前约 20s),2MB 多行 patch 无 >50ms 长任务。
2026-11-12 01:00:16 +08:00
Atlas Zeng c2d10303ef Merge pull request #1181 from omdsh-dev/feat/start-page-takeover
feat(native): plugin-owned right sidebar start page
2026-11-12 00:34:28 +08:00
Menghuan1918 5aa44173dc docs(changelog): move start-page work to Unreleased
Keep the released v0.31.0/v0.31.1 sections untouched and record the unified switch semantics in the Unreleased section.
2026-11-12 00:08:42 +08:00
Menghuan1918 973713b157 fix(native): unify start-page switches and repair toggle
Better Sidebar rows now use the same tabsEnabled feature switch in the reorder dialog and the start-page inventory; disabled rows stay in the inventory so they can be turned back on. The shared Switch now derives the next value from the controlled prop, fixing switches that could be turned off but not back on.
2026-11-12 00:05:55 +08:00
Menghuan1918 64a91dac53 fix(native): keep host shell menu and start-page plugin actions
Call webTerminals launcher methods on the service (the detached call lost its remote receiver), and restore the host browse/create plugin rows in an always-present More card alongside icon-plus-title overflow rows.
2026-11-12 00:05:55 +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 8d8592bb0e release: merge dev for v0.31.1 (file:// image URLs in Markdown) 2026-11-11 21:59:07 +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 4b578d83e1 release: merge dev for v0.31.0 (Markdown data images, desktop HTML preview inlining) 2026-11-11 21:33:40 +08:00
Menghuan1918 ce54c074ac chore(release): prepare v0.31.0
Version 0.31.0 across package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION; move both changelogs to v0.31.0; refresh README install commands and the three recent-release blocks; update the external plugin guide's current version.
2026-11-11 21:33:20 +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
Menghuan1918 3f4d75a090 docs(changelog): keep the final #1147 sidechat behavior 2026-11-09 12:13:05 +08:00
Menghuan1918 a3f057528a docs(changelog): record #1147 and the GBK euro fix 2026-11-09 12:09:54 +08:00
Menghuan1918 de29aae2a6 fix(encoding): use the canonical two-byte GBK euro mapping 2026-11-09 12:09:54 +08:00
NolanHo 0bc07a016c feat(sidechat): collapse the pre-fork context behind one divider line
A side thread opens on its own question, so the inherited exchange belongs
behind a boundary, not on the first screen: rendered open it read as if the
side thread had asked the parent's question. The fork block is now a native
disclosure, closed on first render and controlled through its toggle event
(React would otherwise reset the DOM's own `open` on the next poll render).

Collapsed, the block is exactly the opening divider: the summary carries the
`sideChatForkDivider` copy and the chevron, never any inherited text.
Expanded, the body keeps the established order — the question in the user
bubble, the answer as assistant prose through the same markdown renderer,
both verbatim — then the closing `sideChatForkDividerEnd` line. With no
answer the body is the question and the closing line only. The block stays
chrome: it is not a transcript row, the row count does not move when it opens
or closes, and it adds no button or link beyond the summary.
2026-11-09 11:59:17 +08:00
NolanHo 0bc77c551f feat(sidechat): keep a thread's draft across a rebind
The upstream draft owner lives and dies with the binding, so leaving a thread
threw its words and screenshots away. A thread now owns its draft: a bounded
LRU cache (8 threads) keeps the text and the images, restores them when the
binding comes back, reuses the preview URLs instead of minting new ones, and
revokes a preview when its draft is evicted, sent, or has its image removed.
A draft whose prompt is already under way is never restored, so a send cannot
be replayed by switching away and back.
2026-11-09 11:59:15 +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 e9883addeb docs: add external PR integration skill 2026-11-09 11:58:12 +08:00
Menghuan1918 37db37f57e docs: list contributors and prefer rebase/ff integration 2026-11-09 11:57:01 +08:00
Menghuan1918 2963286f27 fix(files): reveal Windows paths via an escaped file URL (#513) 2026-11-08 15:51:45 +08:00
Menghuan1918 b9d2934b1b fix(sidebar): treat a zero-sized dock anchor as absent (#1157) 2026-11-08 15:50:47 +08:00
Menghuan1918 920d219d67 fix(terminal): support Ctrl/Cmd+C and V copy/paste (#1103) 2026-11-08 15:37:39 +08:00