Commit Graph
966 Commits
Author SHA1 Message Date
Menghuan1918 c301c38e94 refactor(ui): 合入 G1 Git 页可拖动分区堆叠 2026-11-26 11:42:44 +08:00
Menghuan1918 8d59fbe44e chore: 合入 dev 最新提交(#1241 Git Graph 分页去重) 2026-11-26 11:42:40 +08:00
Menghuan1918 86dc34bd84 fix(ui): Git 页的 Changes 与 Graph 接入可拖动分区堆叠
把线索页的 SectionStack 抽成统一组件 WorkbenchStack(ui/WorkbenchStack.tsx +
workbench-stack.module.css,从 ui/index.ts 导出),线索页改为从统一层引用,
行为与权重持久化不变。

Git 页把 Changes 与 Graph 两个 WorkbenchSection 放进同一个堆叠:两区之间出现
可拖动的 sash(role=separator、aria-controls、Home/End/ArrowUp/ArrowDown),
权重只存本地 state——Git 页目前没有自己的设置键,不为此新增持久化。

布局:每个打开的分区各自内部滚动(changes 的 body 与 graph 区域),footer 仍是
贴底不滚;gitScroll 保留为 notices 的滚动容器。折叠到一个分区时 sash 消失。

测试:git-scm 新增「两个分区都开时存在 sash、键盘拖动改变两 pane 的 flexGrow、
折叠一个后 sash 消失」;changes-tab 的分隔条查询改为结构判别(sash 有
aria-controls、底部预览手柄没有),并把 .changesSection 的 CSS 契约从 flex:none
更新为 flex:1(现在由堆叠分配高度)。
2026-11-25 11:04:37 +08:00
ai-zen-future 4d551d8706 Merge dev and reconcile Git Graph pagination release notes 2026-11-25 09:40:59 +08:00
Menghuan1918 bf4e25db13 chore: 合入 dev(0.2.3 基线适配)到统一组件分支 2026-11-25 02:06:34 +08:00
Menghuan1918 51cd629b9c fix(clues): keep the pack footer on the window's bottom edge
The bleed footer's negative bottom margin cannot pull it past the content box
once the flexing `.content` consumes every pixel, so the pack window measured
26px from its 2px floating edge to the footer's button instead of the intended
14px (12px gutter + 2px edge). Cancelling the root's bottom inset whenever a
bleed footer owns the edge makes the geometry independent of free space; the
mount lane's `clues-uiux` assertion is 14 again.

Gates: typecheck, lint, test (366 files / 4615 passed), build, consumer-types,
plus `bash scripts/e2e-mount.sh --grep "clues workbench stays usable"`.
2026-11-25 01:38:54 +08:00
Menghuan1918 ac547a3f3d refactor(ui): 合入 B4 外壳与残余件(Switch→ToggleSwitch) 2026-11-25 01:05:44 +08:00
Menghuan1918 daf0329666 refactor(ui): 外壳与残余件接入统一组件层(B4)
- Switch.tsx 删除,唯一消费者 native/guide-order.tsx 改用 ui 的 ToggleSwitch
  (native checkbox → button role="switch",受控写回契约不变:下一次值仍由 prop 推导)。
- tests/switch.spec.tsx 改名 tests/toggle-switch.spec.tsx,断言改 aria-checked;
  native-guide 两处开关查询同步改选择器。
- sidebar/dock-fallback.tsx 与 split-pane.tsx 判断不接入:前者只有定位/让位逻辑
  与 BottomDockToggle 包壳,后者是纯布局与 pointer 拖拽手柄,统一层没有语义对应件。
- 收敛文档补 B4 实施记录,并把映射表中这两行改为「判断不接入」及理由。
2026-11-25 01:05:35 +08:00
Menghuan1918 a16f8a9056 refactor(ui): 附件卡切到 FileAttachmentChip 并记录消费点判断
- SidechatAttachments 的非交互文件附件改用共享 FileAttachmentChip,删掉零引用的 .sidechatAttachmentFile
- SideChatView 的交付物项与 DiffFiles 表头经核对保持原控件(语义不同,见收敛文档 R2 一节)
- StatusLine alert 变体暂无行级消费点
2026-11-25 01:05:09 +08:00
Menghuan1918 795beabe22 chore(dsh): adapt to DSH 0.2.3-alpha.2 and drop pre-0.2.3 compatibility
Raise the whole baseline to the alpha line and stop carrying code that only
exists for older hosts (no runtime compatibility layer, per AGENTS §4):

- peers/engines: 14 DSH peers and engines.dsh -> 0.2.3-alpha.2, Cordis ->
  4.2.0-alpha.1, group/include 1.2.0-alpha.1, schemastery 3.20.0-alpha.1;
  dev pins and CI/e2e/install scripts move with them; plugin version
  0.34.0-alpha.0.
- admission: DSH 0.2.3 deleted `requestRejection`, so only the injected
  `connection.authentication` provider can call `admit`; the legacy branch
  and the direct-admit fallback are gone and the fence fails loudly.
- directory events: the projection authority is `workspace-root/change`;
  the side-chat cwd stamp emits it and the worktree scan no longer reads
  the retired `working-directory/change`.
- llm types: `@deepseek-ai/dsh-llm` no longer exports `./brand`, so
  MessageId comes from `./types`.
- client anchors: only `[data-slot="main.conversation"]`; the alpha.1
  `conversation` key is retired. `webServer.getOrigin` is called directly.

Gates: peers check, typecheck, lint, test (366 files / 4615 passed),
build, check:consumer-types.
2026-11-25 01:03:57 +08:00
Menghuan1918 935b674c0b refactor(ui): 合入组件层缺件(FileAttachmentChip / StatusLine alert / ListRow aria) 2026-11-25 01:03:08 +08:00
Menghuan1918 0cd0765fad refactor(ui): 删除组件替换后失效的样式规则(B3 收尾)
- sidebar.module.css: 删掉 editorDownloadLink(含 :hover 与 focus-visible 组内一行)、mediaPreviewNotice、largeFileDownload 及其说明注释;largeFileNoticeAction 仍被 LargeFileView 使用,保留。
- terminal.module.css: 删掉 .notice / .error / .action / .action:hover,以及同组零引用的 .noticeBlock。
2026-11-25 01:02:40 +08:00
Menghuan1918 6f9dbdf403 refactor(ui): 补三处组件层缺件并记入收敛文档
- 新增 FileAttachmentChip:非交互的静态文件附件卡(宿主 FileTypeIcon + 名称 + 大小 +
  可选 title),补上 B2 报告的「附件卡在 SidechatAttachments 与 SideChatView 各手写一份」。
- StatusLine 的 role 扩到 'status' | 'alert',让失败行可以中断式播报,默认行为不变。
- ListRow 增加 disabled 与 aria-expanded / aria-controls / aria-label 直通:disabled 落
  disabled + data-disabled,aria 落标题按钮(plain 行落外壳),供可折叠分组头使用。
- 契约测试:FileAttachmentChip 2 例、ListRow 2 例、StatusLine 1 例。
- docs/plans/2026-11-25-ui-kit-convergence.md 追加「组件层补件记录」,写明缺口来源、
  补了什么、以及合并后需要切换的消费点。

门禁:typecheck / lint 无错;test 366 文件、4630 通过、18 skipped。
2026-11-25 01:01:36 +08:00
Menghuan1918 5a8ab2f805 refactor(ui): 合入 B3 —— diff、终端与预览宿主接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 09e9e046ae refactor(ui): 合入 B2 —— 侧边对话附件与图片状态接入统一组件层 2026-11-25 01:00:09 +08:00
Menghuan1918 356cdbd18d refactor(ui): 任务窗口与任务图接入统一组件层
- TaskWindow:所有者/阻塞信息改用 FactList,视图与编辑态的两个字段改用
  Field(label 关联 input/textarea),空描述改用 Notice(hint),冲突/错误
  提示改用 Notice(error);窗口底部动作改用 ActionButton,图标移入按钮内容。
  MultilineField 增加可选 id,供 Field 的 label 关联。
- TasksGraph:空画布加载行改用共享 LoadingIndicator,删除自绘的旋转图标
  行与对应 CSS。
- tasks-graph.module.css:表单「描述字段吃满窗口」的规则跟随 Field 的 div
  结构改写;删除随替换失效的 .teamNote/.taskLabel/.jobPopMeta 作用域规则。
- 行为、文案、aria 名称与 data-* 均未改变;图形卡片与右下控件簇是图形
  专用形状,本轮不动(见报告)。
2026-11-25 00:59:30 +08:00
Menghuan1918 efc7900de4 refactor(ui): 标签页与预览宿主接入统一组件(B3)
- `diff/DiffFiles.tsx`:文件头徽标改 `StatusBadge`,`fileTag()` 改返回 `{ tone, label }`,tone 直接用组件自带的 added/deleted/renamed/neutral
- `diff/DiffRows.tsx`:「展开全部」改 `ActionButton`;折叠行保留原生 `[data-expandable]` 结构
- `TerminalView.tsx`:状态行改 `StatusLine` + `ActionButton`;不可用/连接错误改 `ErrorBlock`;终端失联改 `FallbackPane role="alert"`
- `builtins/media-preview.tsx`:不可播放改 `FallbackPane role="status"`,下载出口改 `DownloadLink`
- `PdfView.tsx`:工具栏下载改 `DownloadLink`,加载失败改 `ErrorBlock`
- `LargeFileView.tsx`:提示条下载改 `DownloadLink`,空文件占位改 `EmptyState`
- 收敛文档记录 B3 实施结果,以及两处统一层缺口(`StatusLine` 无 alert 角色、`ListRow` 无 disabled/aria 直通)

行为、文案、aria 名称与 `data-*` 不变,测试断言未改。门禁:typecheck、lint、全量 test(366 文件 / 4625 通过 / 18 skipped)全绿。
2026-11-25 00:58:51 +08:00
Menghuan1918 72f79f7bd6 refactor(ui): 侧边对话的附件与图片状态接入统一组件层
- SidechatImages:加载态改用 Notice(inline, loading),不可用改用 StatusLine(plain, role=status);
  缩略图仍是 blob URL 的 <a target=_blank><img>,行为不变。
- SidechatAttachments:读取失败的占位改用 StatusLine(plain);文件附件从手写 chip 换成
  ListRow(leading=FileTypeIcon、title=name、meta=size),外层 span 只保留宽度约束与悬浮 title。
- SideChatView.module.css:删除随之失效的 .sidechatAttachmentFailed / .sidechatAttachmentName /
  .sidechatAttachmentSize,.sidechatAttachmentFile 收成布局壳。
- 行为、文案、可访问性名称与 data-* 未变;测试断言零改动。

缺口(未在 ui/** 造件,按任务约束只报告):非交互的文件 chip 仍缺共享件,
当前由 SidechatAttachments.FileChip 与 SideChatView.tsx 的附件卡手写两处。
2026-11-25 00:58:06 +08:00
Menghuan1918 fd13838b09 refactor(ui): 统一组件层地基与批次规划
- 新增 DownloadLink(kit.tsx)与 FallbackPane(patterns.tsx),从 ui/index.ts 导出;
  样式只用 --dsw-* / --ds-* 令牌,覆盖下载出口与 pane 级兜底消息两个跨页面模式
- 示范替换孤儿标签页占位组件(改用 FallbackPane role="status",文案与类型 chip 不变)
  与 binary-download(整页 FallbackPane + DownloadLink),删除 binary 独占的
  .editorBinary / .editorBinaryNotice 规则
- tests/ui-kit.spec.tsx、tests/ui-patterns.spec.tsx 补两个新组件的契约:
  download 属性、inline 变体、role 只在调用方要求时透传
- docs/plans/2026-11-25-ui-kit-convergence.md:36 个未接入 tsx 的 A/B/C 分类与
  B1–B4 批次(任务/作业 → 侧边对话 → 标签页与预览宿主 → 文件树与侧栏外壳)
2026-11-25 00:55:07 +08:00
Menghuan1918 8aa4ae32b1 chore: reconcile the clues line with dev's newest client surfaces
Upstream moved under the branch while it was being rebased: the changes
lens grew its own underline tabs (#1236) and kept ONE native branch
select (#944), the task graph squared its controls (#948), the host
admission call moved to rc.3's admit fallback, and the graph viewport
got a fixed 248px floor. Where the two designs collided this takes
upstream's newer chrome and re-applies the branch's kit only where it
defines our own surfaces.

- changes/GitGraphSection: keep the branch's kit buttons but restore the
  native branch select, and give it token colours plus the 32px / 44px
  touch sizes so it stops falling back to the OS chrome in a dark panel.
- sidebar/dock-fallback: upstream's 28px host-matched geometry plus the
  branch's 44px coarse-pointer target (no longer a 32px base).
- ui/workbench-section: the disclosure bar is exactly 28px INCLUDING its
  divider, so the sections keep the heights the changes graph measures.
- tests: theme.spec, dock-fallback, git-graph-ui and git-view-worktree
  follow upstream's newer shapes; the surface sweep stops demanding one
  identical tab for upstream's underline lens strip, and the graph e2e
  clicks the shared section disclosure instead of the old div > button.
2026-11-24 16:43:27 +08:00
Menghuan1918 51b77e36ea i18n(es): translate dev's new catalog keys 2026-11-24 16:43:27 +08:00
Menghuan1918 cea6282cec fix(rebase): keep the 0.33.0 surface and adapt to dev's newer host contracts 2026-11-24 16:43:27 +08:00
Menghuan1918 a90abe4304 feat(selection): compact popup with lateral rewrite flyout 2026-11-24 16:43:27 +08:00
Menghuan1918 99ecc6dee7 feat(navigation): clarify Clues labels and reorder default guide 2026-11-24 16:43:27 +08:00
Menghuan1918 08002a0211 feat(selection): configure rewriting and translate selections directly 2026-11-24 16:43:27 +08:00
Menghuan1918 39ccabcefb feat(sidebar): polish loading, floating windows and clue provenance 2026-11-24 16:43:27 +08:00
Menghuan1918 3313b8779f fix(clues): restore horizontal source selection in wide panes 2026-11-24 16:43:27 +08:00
Menghuan1918 dc3b8aba33 feat(clues): refine resizable workbench and resource previews 2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 1ddabbc227 refactor(clues): restyle the detail, pack, collect and share windows
The clue windows kept redundant title inputs, bare radios and file pickers
and doubled footer borders. They now sit on the shared ListRow, SearchField
and Disclosure patterns with compact action footers, while the Feishu
preview follows the same density.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin de90a883a3 refactor(clues): rebuild the main tab as a two-section workbench
The tab stacked a path bar, wide source tabs and a nested pin strip over
the list. It now reads as a workbench: resources and packs collapse like
VS Code sections, the source picker is a compact SelectMenu over two
toolbar rows, pins fold into the list, and new packs are created inline.
The first-use help and the selection bubble got opaque, compact surfaces.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin 90854255fc feat(clues): prefer docked sidebar surfaces for heavy clue flows
Heavy clue flows always opened the same way regardless of how the user
works. A volatile windowSurface preference (sidebar by default, floating
as the alternative) now drives the detail, pack, share and settings
windows, exposed as a segmented row on the clue sources settings page
and in the host settings toggle; the settings surfaces were restyled to
match the shared Disclosure and row patterns.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918andDevin e32546bd25 refactor(ui): flatten shared fields, rows and disclosures on host tokens
The clue surfaces were carrying raw details markers, mismatched field
backdrops and doubled docked title bars. Give the shared layer a Disclosure
pattern, align the SearchField frame and window chrome on the host tokens,
and let docked windows drop their duplicate title row.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 16:43:27 +08:00
Menghuan1918 f082166211 feat(clues): list individual pull request checks from the detail read 2026-11-24 16:43:27 +08:00
Menghuan1918 891974c4a5 feat(clues): auto-check an authorizing device-code attempt at the CLI cadence 2026-11-24 16:43:27 +08:00
Menghuan1918 bcc0efa917 feat(windows): clue windows open docked in the right sidebar when a session is available 2026-11-24 16:43:27 +08:00
Menghuan1918 efbc21d65c refactor(i18n): ship only the official host languages, drop the better-locale override
Dictionaries now follow the host's own locale list: zh/en static, ja/de/es/fr/pt/ru
in the lazy locale chunk (new es dictionary). t() reads the host's active locale
directly (exact id, base language, then en); attachBetterLocale and the optional
@huanlin/dsh-plugin-better-locale peer are removed along with the 14 non-official
dictionaries.
2026-11-24 16:43:27 +08:00
Menghuan1918 30a73d38f5 chore(clues): drop internal-only exports, dead helpers and orphan facades
43 client clue symbols had no consumer outside their module; they are now
module-private. Removes the dead isClueSelectionServerAction, the scope-note
alias, the unused ClueTabSettings shape, the Feishu/GitHub/detail re-export
facades nothing imported, and the last orphan clue CSS rule.
2026-11-24 16:43:27 +08:00
Menghuan1918 594d75cd13 refactor(clues): settings facts, errors and empty state use the shared components
Dependency, plan, install and connection rows are FactRows (with a trailing
action seat and data-* passthrough); source-list failures are ErrorBlocks;
the empty catalogue is an EmptyState. Drops the settings sheet's dead rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 3af5dd0a9c refactor(clues): pack, detail and Feishu windows use the shared components
Pack footers, conflict/binding/add errors and empty states; detail failure
and footer actions (ActionButton); Feishu task/doc fields and save rows.
Field and ActionFooter pass data-* through for e2e locators. Drops the
window sheets' now-unreferenced rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 2f99b1ffea refactor(clues): tab states, scope fields and pins use the shared components
Catalogue/pin/refresh/search errors are ErrorBlocks (a busy retry stays
focusable via aria-disabled); idle/needs-scope/unsupported/no-workspace
states are EmptyStates; scope editor fields are Fields with real htmlFor;
pinned rows are ListRows. Drops 50 now-unreferenced clue-tab rules.
2026-11-24 16:43:27 +08:00
Menghuan1918 cff412f554 refactor(clues): windows use the shared field/choice/error/footer components
ChoiceCard renders a fieldset so a busy window locks every option natively;
ActionFooter gains a bleed mode for gutter-padded window roots and a status
seat for its leading fact.
2026-11-24 16:43:26 +08:00
Menghuan1918 0edd9e9e81 refactor(clues): browse and pack rows use the shared row/state components
The pack shelf and the browse results each carried their own row shell, their
own empty state and their own error+retry line. They now share ListRow,
EmptyState and ErrorBlock, and the local copies are gone.

ListRow grew the two contracts those callers actually need:
- titleLabel so the accessible name can be "Manage pack: X" while the visible
  title stays "X";
- primary so the roving-focus marker (data-list-primary + its tab stop) lands
  on the title button, which is what useListNavigation focuses;
- a navigating row keeps name + subtitle inside that button, so the whole
  two-line caption is one click target and one accessible name.

Removed from clues-tab.module.css: the .packRow/.packOpen/.packGlyph/
.packName/.packMeta/.packCount/.packReference family plus the two coarse-
pointer orphans left behind. tests/clues-tab-css.spec.ts now asserts that
contract against the shared patterns sheet, where the rules actually live.
2026-11-24 16:43:26 +08:00
Menghuan1918 9056ea2c7c feat(ui): shared page-pattern layer (facts, rows, states, fields, choices)
The clue surface carried 31 hand-written fact rows, 14 list-row shells, 10
empty states, 14 error+retry blocks, 15 stacked fields, 6 choice groups, 11
status footers and 9 action bars — 968 lines of CSS in ten near-identical
families that had already drifted apart (four spellings of the retry row,
three different "selected" pictures).

These eight components own those shapes once, on the same token-only contract
as the global kit: flat fills, one 1px border language, no shadow, no resting
state painted, native keyboard semantics (a navigating title is a real
<button>, a choice is a real <input>), tabular figures, 44px touch targets.

patterns.module.css joins the theme guard and the host-token guard; the new
spec pins the contract structurally (default states unstyled, native controls
preserved) rather than cosmetically.
2026-11-24 16:43:26 +08:00
Menghuan1918 5ee81fb073 feat(clues): collect resources from files, Feishu and GitHub, adapted to DSH 0.2.2-rc.2
This lands the clue collection line on top of origin/dev (v0.32.1, DSH
0.2.2-rc.2). The 14 commits that carried it are squashed into this one
because every one of them overlapped upstream's own changes (version,
19 dictionaries, CHANGELOG), and each intermediate commit would have
failed to compile against rc.2's menu API. The pre-integration head is
kept at backup/clues-uiux-refresh-pre-rebase.

What the feature is:
- a Clues tab that reads local files, Feishu tasks/docs and GitHub
  issues/pulls through one source registry, with a scope row, shared
  search, filters, paging and stable [[dsh-clue:...]] references;
- one window host for detail, pack management, source configuration,
  new pack and sharing (preview and edit are separate paths: a read is
  never saved over);
- .cluepack export/import with per-row resolvability previews;
- a source runtime that owns dependency installs and connection
  authorization (gh, lark-cli device code) and only probes on an
  explicit read;
- the public betterSidebarClues service and the windows capability
  (features gains clues / windowHost).

Merged with upstream rather than over it:
- the settings section keeps upstream's start-page takeover group and
  this branch's clue sources group; navigation is now six groups;
- the dictionaries keep both sides' new keys (1211 each, verified equal
  across all 19), the external-plugin guide and CHANGELOG keep both
  histories, and service features list both capability sets.

Adapted to 0.2.2-rc.2:
- menu call sites use anchorPoint instead of getAnchorRect;
- the shared SelectMenu mounts the host menu only while open, because
  rc.2's Menu reads the DOM during render and broke server-rendered
  settings surfaces;
- the submenu flip workaround stays deleted (the host positions
  submenus now), pinned by an updated layout-css assertion.

Version 0.33.0 (three synced spots) with a new 未发布 / Unreleased
changelog section; package.json regains the ./clues export, lib/clues.js
and the uqr dependency that upstream never had.

Gates: typecheck, lint, 5410 unit tests, build, check:consumer-types and
the full mount lane (35 passed) against dsh 0.2.2-rc.2 in Chromium.
2026-11-24 16:43:26 +08:00
hairyf 3e3d3196d5 chore(release): prepare v0.33.0
- bump package.json, dsh.plugin.json and SIDEBAR_SERVICE_VERSION to 0.33.0
- move both changelogs out of Unreleased and add the four merged UI fixes
  (#1011, #1233, #945, #948) plus the recommended-catalog batch
- update README install commands, compatibility table, DSH badge and Recent Updates
- point the external plugin guide and the adaptation doc at v0.33.0 and the rc.3 floor
2026-11-24 11:53:51 +08:00
ai-zen-future 8d26930962 perf(git): index loaded commits during graph pagination
Refs #1063 (item 5)
2026-11-21 20:56:49 +08:00
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