Commit Graph
920 Commits
Author SHA1 Message Date
hairyfbot 4a6c1bd880 fix(changes): Git 详情面板的关闭按钮常驻 Tabs 行最右侧(#991)
底部面板的「提交详情 / 内容 / 差异」是一条 Tabs,但关闭整块面板的 X 原先画在「内容 / 差异」的页内头行上——切到「提交详情」时那条头行整块不渲染,于是该页签没有关闭入口,只能先切页签再点 X。

现在关闭按钮属于 Tabs 那一行:无论选中哪个页签都停在最右端、位置不变,点击关闭的是整块面板;「内容 / 差异」头行里重复的 X 已移除。只有一个视图、没有 Tabs 行的预览保持原来的头行位置。
2026-11-21 17:45:14 +08:00
Hairy 2cb529f1b2 Merge pull request #1238 from omdsh-dev/fix/blank-session-dock-entry
fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
2026-11-21 15:31:13 +08:00
hairyfbot fb9967b8df fix(sidebar): 空白会话在右侧栏展开时仍能打开底部工作台(#989)
blank 会话里宿主不渲染会话头 utilities,插件的底部工作台入口只剩右上角那个
备用入口;而它在宿主右侧面板展开时整个不渲染,于是「先开右栏」就再也打不开
底部工作台。#1053 修的是正常会话的会话头入口,这一处当时被留了下来。

现在展开态照常渲染,并改锚**面板左缘**:展开态宿主的 Split / Fullscreen /
Collapse 搬进了面板内部,锚在那簇控件左侧会落进面板、盖住面板内容;面板左缘
那一格是会话头那一行的右端空位,与收起态入口同一列。

真实宿主(DSH 0.2.2-rc.5 + Chromium,1440x900,空白新会话)实测:
- 收起态:入口 1364,11(不变);
- 展开态:修复前屏上 0 个入口,修复后 756,10(面板左缘 792),点击可打开底部面板。

tests/dock-fallback.spec.tsx 把「展开态不渲染」改成「展开态渲染且锚在面板左缘
756px 并仍可点击」(还原旧守卫即红);tests/e2e/blank-session-dock-entry.e2e.ts
新增真实宿主用例:展开右栏后入口仍在、屏上恰好一个、右缘不越过面板左缘。
2026-11-21 15:11:16 +08:00
ymac 69835c7b4f fix(files): align the native search header with the session tab rule
The right Sidebar's pane body starts directly under the host's 38px tab strip. The file tree's search header still used the workbench metrics (6px padding, 1px l1 border): its bottom rule landed at y=79 while the session tab bar's rule sits at y=76 on DSH 0.2.2-rc.5, so the two lines met in a 3px step with different weights and shades.

Match the header DSH's own ui-sidebar-files pane uses: a 38px border-box header with a .5px border-l3 hairline. The rule now joins the session tab bar's line at the split; the bottom workbench keeps its roomier header.
2026-11-21 15:02:24 +08:00
Hairy ddcd435f5f Merge pull request #1236 from omdsh-dev/fix/changes-lens-underline-tabs
fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs
2026-11-21 14:02:57 +08:00
hairyfbot 3f0f7c37e3 fix(changes): 「Git / 本轮文件」切换恢复会话页的下划线 Tabs
#1101 为摆脱宿主私有哈希类名(#1098)改用公开的 SegmentedControl,视觉随之退回灰底胶囊;#939 已按审阅意见改成官方会话页的下划线 Tabs,这一版把它丢了。

现在这条切换由插件自己的 changes.module.css 绘制:13px/500、未选中三级文字、选中态品牌色 + 2px 下划线压在页头分隔线上、24px 间距,ARIA 关联与左右方向键 / Home / End 漫游焦点照旧;不引用任何宿主私有类名。

Refs: #1235
2026-11-21 13:38:58 +08:00
Hairy a543cd257b Merge pull request #1233 from WinterXMQ/fix/sidebar-fullscreen-bottom-panel
fix: 侧边栏全屏时自动收起底部工作台
2026-11-21 12:58:15 +08:00
Hairy 1b36babe07 Merge pull request #945 from hairyf/fix/native-tab-chip-alignment
fix: 对齐原生 Tab 与官方图标尺寸、间距和居中
2026-11-21 12:54:45 +08:00
Hairy be0b5a3142 Merge pull request #948 from hairyf/fix/task-graph-square-control-items
fix: square task graph control items
2026-11-21 12:54:29 +08:00
WinterXMQ a5046aae12 fix: 侧边栏全屏时自动收起底部工作台 2026-11-20 23:09:51 +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 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 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