Commit Graph
1084 Commits
Author SHA1 Message Date
hairyfbot 6024337a73 fix(host): 准入改用 admit 兜底,运行侧钉版抬到 rc.3
DSH 0.2.2-rc.3 之后官方删除 connection.requestRejection(升级指南写明用 admit
替代),插件此前每个请求第一句就抛 TypeError,被宿主兜底成空 body 的 400。
fence 改为:requestRejection 存在时照旧调用,缺席时改调 admit 读同一个
rejection 字段,两者都没有仍抛 TypeError,不重建信任表。

engines.dsh 已要求 rc.3,因此把真正运行插件的钉版同批抬到 rc.3:CI 的
npm install -g、e2e-common.sh 的 DSH_NPX_SPEC / expected、两个独立安装脚本的
npx 回退。dev 钉版与 14 条 peer 仍是 rc.2(rc.3 与本插件消费面无 API 差异),
tests/dsh-baseline.spec.ts 相应拆成两个常量。

关联 #1204。
2026-11-21 11:54:00 +08:00
Menghuan1918 8d48469aea fix(catalog): install Session Sources without pinning better-sidebar (#1105) 2026-11-19 17:13:22 +08:00
Menghuan1918 09b01dd67e feat(sidechat): render PTC run_code sub-call rows
Fold the log-only PTC pair (tool/ptc-dispatch-start + tool/ptc-dispatch) into nested sub-call rows on the run_code transcript row. Sub-calls render indented below the root (outside its disclosure, so a collapsed root still shows them) through the same terminal/diff/read/search/web cards as direct calls; running, failed and start-less dispatches are covered. The run_code line shows the model description and its expanded body shows the program plus the final result. Successful PTC write/edit targets join the clickable path mentions; a PTC present keeps its top-level delivery card and also leaves a sub-call row. Tests: sidechat-ptc-rows, sidechat-ptc-subcalls, sidechat-mention-sources.
2026-11-18 16:56:36 +08:00
Luca Tzekos 168a572119 fix(catalog): drop the unpinned better-sidebar prerequisite from the five install lines 2026-11-18 16:18:07 +08:00
Luca Tzekos ddd5c58d87 feat(catalog): add five tab plugins (dsh-artifacts, dsh-conductor, dsh-mail, dsh-phone, dsh-voice) 2026-11-18 16:18:07 +08:00
CCColastic da0edff736 feat: add Session Sources to tab plugin catalog 2026-11-18 16:16:37 +08:00
shuuul 82e24d87b8 feat: add dsh-bioviewer to the file-previewer catalog
Register BioViewer as a recommended better-sidebar file previewer for
PDB, mmCIF, MRC maps, small molecules and Chimera .cmm markers.
2026-11-18 16:15:53 +08:00
vlln 47a27f1cca chore(catalog): pin dsh-pr-inbox v0.1.1 2026-11-18 16:14:40 +08:00
vlln d44fcb509c feat(catalog): add dsh-pr-inbox 2026-11-18 16:14:40 +08:00
Menghuan1918 4407b58d18 docs(locales): complete the dsh-zotero-workspace key set (#1140) 2026-11-18 16:13:47 +08:00
Hudson Hou 85d96b1090 catalog: localize dsh-zotero-workspace entry (zh/en/ja) 2026-11-18 16:13:47 +08:00
Hudson Hou 5c8477df1b catalog: add dsh-zotero-workspace (Zotero literature workspace tab) 2026-11-18 16:13:47 +08:00
lipengfei d3b5a07bcf chore(plugin-list): dsh-memory-delta 的 pin 抬到 v1.3.4 2026-11-18 16:11:52 +08:00
KP a9da0abacf fix(catalog): 更新 dsh-dev-git-graph 的仓库地址(已改名为 kp-z/dsh-plugins) 2026-11-18 16:11:18 +08:00
gyixuan 4dd31d5a40 docs: 更新 Sidenote 推荐文案与独立安装命令
从侧聊追问、聊天批注、文档摘录和问答回流的使用场景介绍插件,同步全部推荐词典与中英文档,移除过时的前置安装步骤。
2026-11-18 16:10:29 +08:00
Menghuan1918 aa2a058037 docs(editor): drop the retired new-session tab seed claim; pin the blank-session right-column open
The editorExplorer comment still promised that new sessions seed an empty
editor tab, and the external plugin guide repeated it. Neither is true since
the plugin's own right panel was retired: the host owns the right column and
a brand-new session starts with no tab, so its first open lands on the start
page this plugin takes over (#1218).

Adds the one e2e case the mount lane was missing: a blank session's first
right-column expand must already render the start-page takeover, with no host
Split action in between.
2026-11-18 10:55:36 +08:00
xucl 416e20d292 fix(git): re-spell the linked worktrees a WSL repository lists
`git worktree list` prints the same POSIX spelling as `rev-parse
--show-toplevel` when it runs inside the distribution, so in a WSL workspace
every linked checkout arrived as `/home/...`. That broke the worktree selector
in two ways at once: `current` compared a POSIX entry against the now-UNC
current root and never matched (so no checkout was marked as the current one),
and `resolveWorktree` handed the POSIX entry back as a command target, which
the Windows git then refused.

Re-spell in `listedWorktrees()`, the single place both the inventory
(`worktrees()`) and the selector (`resolveWorktree()`) read from.

Refs #1189
2026-11-18 00:07:48 +08:00
xucl 2c7c0cba22 fix(git): keep the UNC spelling of a WSL repository root
`rev-parse --show-toplevel` runs INSIDE the distribution (wslLaunch), so it
names the repository with a POSIX path — `/home/me/repo` for a
`\\wsl.localhost\Ubuntu\home\me\repo` cwd. wslLaunch only recognises the UNC
spelling, so every later command on that root fell through to the Windows git
and died with `cannot change to '/home/me/repo'`: `git.status`, `diff`, `log`,
`blame`, `stage` and `commit` all resolve their base through
`repoRoot()` → `runGit(root, …)`, so the whole Git panel read as "failed to
load" while the file tree and the editor stayed fine.

Re-spell the reported root through the cwd it was discovered from. The
function reproduces the share the cwd arrived on (`wsl.localhost` or the
legacy `wsl$`), which is why WSL_UNC_ROOT now captures it; wslLaunch reads the
same groups, so there is still one spelling of the UNC shape in this file.

Refs #1189
2026-11-18 00:07:48 +08:00
Menghuan1918 160f068224 chore(client): log the quote-chip probe at debug level (#1179)
The two success-path quote-chip-ready lines are positive proof the feature is live, but they greeted every page load. console.debug keeps them available in verbose consoles; the console.warn failure path is untouched.
2026-11-18 00:07:48 +08:00
Menghuan1918 ddfcb67017 fix(client): mint tab ids without crypto.randomUUID (closes #1166)
Side Chat and the bottom terminal called crypto.randomUUID() unguarded. In an insecure context — a GUI served over plain http:// on a LAN address — that throws, so the host left a dead data-slot-error instead of a tab. Mint both ids through one local freshId() helper: randomUUID when available, otherwise a base36 timestamp plus two getRandomValues draws (getRandomValues is exempt from the secure-context restriction). The helper stays internal; the public service surface is unchanged.

The regression test drives the real built-in createTab factories with randomUUID removed and checks unique ids plus a non-empty meta[INSTANCE_FIELD].
2026-11-18 00:07:48 +08:00
Menghuan1918 58cf84b733 fix(settings): re-show a start-page card with an explicit false (#1212) 2026-11-18 00:07:48 +08:00
Menghuan1918 c337adbbf7 fix(client): apply side-card prefs that arrive after the boot timeout (#1159) 2026-11-18 00:07:48 +08:00
Menghuan1918 62a9ceeed5 fix(editor): keep a single very long line out of the edit buffer (closes #1165) 2026-11-18 00:07:11 +08:00
Menghuan1918 da13770e35 fix(editor): offer find when the host owns the header (closes #1214) 2026-11-18 00:02:24 +08:00
naomi233 cbc2f575f9 Merge pull request #1209 from Henvy-Mango/fix/sidechat-to-latest-pill
fix(sidechat): keep the back-to-latest pill at its content height and round its ends
2026-11-17 23:00:55 +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 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
Menghuan1918 e6f1af2f82 chore(dsh): 适配 DSH 0.2.2-rc.2 并补齐插件页图文详情(v0.32.1) 2026-11-12 21:20:46 +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
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 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