Commit Graph
162 Commits
Author SHA1 Message Date
unsc9 47a7ffc888 fix(floating): 修正控件带通知与无带子时的布局偏差
viewport-inset 的快照原本是 { top } 对象,重读时每次新建,引用比较永远不等:
带子存在时每次 resize / geometrychange 都会广播,三个浮层各重渲染一次。改为
直接存数字,值不变就不通知。

AnchoredPopover 新增的让位原本无条件执行,普通浏览器里锚点贴到视口最顶时
弹层会从 6px 变 8px,与「无带子时逐字等价」的承诺不符。改为只在带子存在时
才抬高。

顺带删除 mermaid 工具栏里恒被内联样式覆盖的 CSS top(不跑 JS 时该弹层不存在,
不是降级),并补上测试:同值不广播、resize 兜底、visible 运行时翻转、浮窗
高度让位、AnchoredPopover 三个位置用例。

文档:接入指南的 WCO 例外改标「尚未发布」(v0.29.0 从未发布到 npm),计划
文档修正 #430 对照表与测试清单。
2026-11-05 13:16:39 +08:00
unsc9 d0fdd0e77e docs: 记录原生窗口控件带让位的设计、接入指南例外与变更日志 2026-11-05 13:16:39 +08:00
Menghuan1918 7a4a15292e chore(dsh): 适配 DSH 0.2.2-rc.1(基线/peer/CI/脚本/文档 + AgentModel 与 PTC 类型变化) 2026-11-04 22:13:07 +08:00
Menghuan1918 89b85a82a8 merge #1111: feat(sidebar) 划选引用 chip 可点击回跳源文件并闪行段(合入前修正:二次点击 nonce、落盘失败回退、注册契约与文档)
# Conflicts:
#	CHANGELOG.md
#	CHANGELOG_EN.md
2026-11-04 20:48:47 +08:00
Menghuan1918 45b538283d merge #1099: feat(sidechat) 支持粘贴/选中图片(合入前修正:大 body 才计入准入、宿主附件错误分类、文档与常量收敛)
# Conflicts:
#	CHANGELOG.md
2026-11-04 20:47:47 +08:00
Menghuan1918 30093748a2 docs: 同步 14 条 DSH peer,修正 chip 底部入口与行号漂移说明 2026-11-04 20:46:52 +08:00
Menghuan1918 9c64e43e08 docs: move the side chat image section under the API chapter
The section was nested under the removed free-window chapter; it now sits after the archive routes as 6.2, drops the false claim that the image-remove control is the host Button, and points the connection-admission references at section 6.
2026-11-04 20:45:25 +08:00
xiangzz 805a03f91f feat(sidebar): 划选「添加到对话」落可点击引用 chip(点击回跳源文件并闪行段)
- 移植到 dev 基线(#1052 / #1002 之上):只加「可点击 + 行段落地」,不重做 chip 本体
- 自有 input-trigger source `betterSidebarQuote`:`openReference` 校验会话后回跳,
  `codec.serialize` 在发送时还原成与升级前字节一致的 `路径:起止` + 围栏正文
- 行段末行走模块级一次性旁路 `src/client/line-target.ts`(key = path + line,cap 32),
  不写进宿主导航参数(宿主 `SidebarRightResourceParamsMap.file` 只声明了 `line`)
- 引用记录存 `localStorage`(`dsh-better-sidebar:quote-refs`,FIFO 200):模块同时进
  core bundle 与 lazy editor chunk,两个实例只能靠它互见;插入失败即回滚记录
- 行段闪光用 CodeMirror 行装饰 + 皮肤令牌 `--dsw-alias-interactive-bg-hover-accent`
- 三级降级:自有 chip → #1052 内置 chip → 纯文本,永不比升级前更差
- 新增 peer `@deepseek-ai/dsh-client-ui-input-trigger` `^0.2.1-rc.1`(DSH peer 增至 14 条)
- 文档:指南新增 §7.2,并补 `openFile` options / `FileViewerProps.lineEnd` / peer 说明;
  AGENTS §3、CHANGELOG 双语、README 双语、`docs/plans/2026-11-03-selection-quote-chip.md`
- 测试:`selection-quote` 23、`quote-flash` 13、`line-target` 7,`conversation-draft` +2
2026-11-04 01:47:15 +08:00
Kunping Wang 3ce803c691 fix(changes): 修复 Changes 视角切换按钮样式 2026-11-02 20:57:24 +08:00
CCColastic 23a2b61f33 feat(sidechat): accept pasted and selected image prompts 2026-11-02 13:37:43 +08:00
Menghuan1918 d77adf25e3 merge fix/1009-card-toggles: hidden tab types are not settings cards (#1009) 2026-10-29 23:53:10 +08:00
Menghuan1918 15b51ca55e fix(settings): stop inventorying programmatic-only tab types (#1009)
Hidden tab types (the built-in diff page, dsh-remote's dsh-remote:file)
have no + menu row and no native guide entry, yet the side-card inventory
still gave them an enable switch. Turning one off changed nothing in the
sidebar and only made openTab silently refuse that type - which the
reporter saw as "remote:file cannot be turned off / git:diff does
nothing", and dsh-remote saw as "remote files stop opening".

- SideCardSection: the inventory skips hidden types (the count badge
  follows); tabOrder becomes the order-only tabInventory.
- service.isTabEnabled: a hidden type is always enabled, so a
  tabsEnabled[id] = false written by an older build cannot keep refusing
  its programmatic opens.
- docs/external-plugin-guide.md and CHANGELOG describe the contract; the
  two new specs fail on the previous code.
2026-10-29 23:48:23 +08:00
Menghuan1918 eb7edb0818 fix(panel-host): 宿主高度改用 100dvh 回退 100vh,修掉手机端整页可拖动(#1014)
`height: 100vh` 取的是大视口:手机浏览器地址栏展开时该层比布局视口
(innerHeight)高,挂载自检把 rect.height 与 innerHeight 的差值当成页面级
transform,降级为 position:absolute 后高度计入文档并持续触发自检,整页可
上下拖动且不自愈。dvh 跟随动态视口(即 innerHeight),声明在 vh 之后;
不支持 dvh 的引擎在解析期丢弃该行、保留 vh,即 #616 的修复不变。

tests/panel-host-css.spec.ts 把高度声明整表钉为
['height: 100vh', 'height: 100dvh'],级联顺序即契约。
2026-10-29 23:44:40 +08:00
taekchef cd1251be2d feat: prepare Sidebar 0.29.0 GenUI provider release 2026-10-28 14:48:08 +08:00
taekchef 60c3fff158 merge: integrate Sidebar provider PR #1033 with current dev 2026-10-28 14:40:13 +08:00
Menghuan1918 e3d32cde42 chore(release): prepare v0.28.2
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.2
- CHANGELOG: v0.28.2 (cold cwd from the stored workspace header) with the
  measured numbers; CHANGELOG_EN mirrors it
- README / README_ZH: install commands and installer args target 0.28.2;
  Recent Updates trimmed to v0.28.2 / v0.28.1 / v0.28.0
- AGENTS + external-plugin-guide: current stable version is v0.28.2
- plan record: 40,157,518-byte session benchmark (1 header read, 0 full
  reads, 3 ms, +0.3 MB RSS; pre-fix 6 calls = 6 full reads, +1.0 GB peak)
2026-10-27 22:58:01 +08:00
taekchef fc717fbbff merge origin/main into genui-sidechat-surface: keep main's row-level rewrite pass and streaming parse inside the GenUI row component 2026-10-27 11:39:58 +08:00
Menghuan1918 f7a11ddbfe fix(host): root a detached session at its stored header, not a full log read
cwdOf() resolves the cwd for every file/Git route, and a cold (detached)
session paid one host observation per call: sessionQuery.observeSession({
projectionMode: 'all' }) decodes the whole zstd artifact and hydrates every
projection to answer with one workingDirectory string. The 0.28.1
single-flight only covered /sidebar/api, while the real startup fan-out
never goes through it: the fs-watch socket sends one frame PER WATCHED
DIRECTORY (server resolves cwd before it even reads the op), /sidebar/file
and /sidebar/html resolve per resource, upload/write per call. A 39 MB
session was therefore decoded dozens of times in parallel — the 44-read
OOM on 0.28.0 and the 36 reads reported against 0.28.1 are the same path,
not a broken dedupe.

A detached session now resolves through sessionPersistence.stat(), which
reads the first zstd frame only (header-only, never the log), memoized per
session id (headers are immutable) and shared in-flight across concurrent
asks. activeWorktreeRootOf() answers a detached session with that address
and no longer folds the stored log. Once the host attaches the session the
committed working_directory and linked-worktree following resume as before.

Trade-off (documented): until attach, the sidebar roots at the original
project rather than the agent's last directory/worktree.

tests/smoke.spec.ts rewrites the cwd group (header ahead of a stale hint,
one header read per session, 12 concurrent asks share one, stat absent or
failing falls back to the hint, live committed directory wins, relative
header cwd still refused) and tests/active-worktree.spec.ts pins that a
detached session performs no persistence read and no git probe.
2026-10-27 11:36:09 +08:00
Menghuan1918 8ee6e8de27 chore(release): prepare v0.28.1
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.1
- CHANGELOG: 未发布 → v0.28.1; CHANGELOG_EN gains the v0.28.1 summary
- README / README_ZH: install commands target 0.28.1; Recent Updates
  trimmed to v0.28.1 / v0.28.0 / v0.27.0; Git screenshot alt + tags note
- refresh docs/screenshots/files-tree.png and changes-tree.png from a
  neutral demo workspace (git colors + tag pills in the commit graph)
- AGENTS + external-plugin-guide: current stable version is v0.28.1
2026-10-26 17:43:39 +08:00
Menghuan1918 5bacf5fa0c 修复提交图标签缺失并校验标签分页快照 2026-10-26 15:19:02 +08:00
Menghuan1918 8c08758afd merge #956: fix(sidebar): worktree 会话的根选择与地址基准(#947 / #950 / #952) 2026-10-26 15:00:57 +08:00
Menghuan1918 22eb6ebddf merge #929: fix(tree): 改名/删除的调解覆盖后台会话的页签 + 标题只在派生自文件名时跟随(#915 后续) 2026-10-26 15:00:55 +08: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
路从今夜白 9a11166c92 feat(sidechat): expose opt-in transcript surfaces for GenUI 2026-10-22 21:22:25 +08:00
ymac 099128d1b6 merge origin/dev into fix/worktree-root-address-base
四处冲突,都不是「选一边」能了事的:

1) `src/active-worktree.ts` 的头注释:上游这半个月把模块重写了一遍(cwd 解析收敛:
   TTL 15s、在飞去重、三个缓存加 LRU 上界、`working-directory/change` 作为证据边界),
   本分支加的是「工作区内只有同仓库的 linked worktree 才采纳」(#952)。两边都保留:
   一句讲采纳判定,一句讲证据边界。

2/3) `isLinkedWorktree` 一带:上游保留布尔缓存 + 每次探测,本分支把它换成
   `gitIdentityOf`(一次 `rev-parse` 同时给出 git dir 与 common dir,并带自己的缓存),
   由它派生出 `isLinkedWorktree` 与 `isAdoptableTop`。合并后**只留身份缓存**
   (布尔缓存成为同一趟探测的第二份副本,且负结果两边都缓存),`cachePut` 给身份缓存
   补上 LRU 上界,模块头注释的「三个缓存」正好仍是三个。

4) `AGENTS.md`:上游把 §3 整体搬进 `docs/host-contracts.md`(原 §3.4 的 1–12 条按原编号),
   本分支往旧 §3.4 追加了第 13 条(会话地址基准)。取上游的 `AGENTS.md`,把第 13 条
   按新家的体例写进 `docs/host-contracts.md` §B(编号 13 接在第 12 条后),并把四处
   「第 1–12 条」更新为「第 1–13 条」。

顺带:`tests/active-worktree.spec.ts` 的 `rmSync` 导入在上游侧被同一个文件的重排吃掉,
补回。

门禁:typecheck 干净;全量 vitest 2691 passed / 17 skipped / 1 failed(唯一红是既有的
smoke 写 `$HOME` 被本机沙箱 EPERM 拒);`active-worktree` / `worktree-address` /
`native-surface` 70 passed。
2026-10-18 23:19:59 +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 6417547bb5 merge origin/dev: include Context diagnostics and graph layout fixes
# Conflicts:
#	CHANGELOG.md
2026-10-17 11:52:48 +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 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 4ebd3e9bdd chore: adapt sidebar to DSH 0.2.1-alpha.5 2026-10-17 02:12:44 +08:00
Menghuan1918 b5fec8d9a2 chore(release): prepare 0.27.0 Git page integration 2026-10-16 21:57:02 +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 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
Menghuan1918 40ed740f3a merge pr-944 (#944 feat(git): Git 内容区改为 VS Code Source Control 结构) into dev(@hairyf)
冲突解决(按 D4 与仓库现役不变量):
- status() 改为 porcelain v2(branch/upstream/ahead-behind/detached/operation 一次读回),
  但保留 dev 的行/字段上限、pathspec 化 numstat 与 #909 的分侧计数;v2 记录遍历抽成
  porcelainV2Tokens,状态解析与 pathspec 提取共用同一份字段知识;
- GitLens 的 Merge/Staged/Changes 三组取 #944,两组各读自己那一侧(#909),
  Merge 组不印行数(冲突不是行数故事,也不许把某一侧当「这个数」);
  sideEntries 保留(每组只读自己那一半的 XY 字母);
- ChangesTab 保留 #939 的官方 Tabs 外观与 a11y 包装、刷新按 #944 只留给本轮文件镜头;
- 测试:git.spec 导入取并集、rmSync 清理改回 removeTree、smoke 的 branch/detached 断言
  按 porcelain v2 语义改写,其余用例按新契约微调(band 顺序、changesOps 第 4 参 wait)。

剔除夹带(D4):.agents/skills/handle/SKILL.md、eslint/vitest 的 soruce/vscode 忽略项、
webRuntime→connection.requestRejection 栅栏与 ownEntryId 放宽(index.ts / context-types.ts
取 dev)、栅栏类测试桩与注释一并回退,栅栏归属留给 0.2.1 兼容批。
2026-10-16 17:14:06 +08:00
Menghuan1918 9f630d1618 merge pr-940 (#940 fix(changes): 本轮文件操作改为平铺行) into dev(@hairyf)
冲突解决:README.md 取 dev(PR 基于拆分前的旧中英双 README,改动目标已不存在),
README_EN.md 保持删除;guide 的 usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch]
           [--no-optional-locks] [--no-advice] [--bare] [--git-dir=<path>]
           [--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>]
           <command> [<args>]

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
   clone      Clone a repository into a new directory
   init       Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
   add        Add file contents to the index
   mv         Move or rename a file, a directory, or a symlink
   restore    Restore working tree files
   rm         Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
   bisect     Use binary search to find the commit that introduced a bug
   diff       Show changes between commits, commit and working tree, etc
   grep       Print lines matching a pattern
   log        Show commit logs
   show       Show various types of objects
   status     Show the working tree status

grow, mark and tweak your common history
   backfill   Download missing objects in a partial clone
   branch     List, create, or delete branches
   commit     Record changes to the repository
   history    EXPERIMENTAL: Rewrite history
   merge      Join two or more development histories together
   rebase     Reapply commits on top of another base tip
   reset      Set `HEAD` or the index to a known state
   switch     Switch branches
   tag        Create, list, delete or verify tags

collaborate (see also: git help workflows)
   fetch      Download objects and refs from another repository
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects

'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
See 'git help git' for an overview of the system. 行合并「平铺措辞 + 下划线 Tabs 说明」;
editor-host.spec.tsx 的 RENDER_WAIT_MS 注释保留 dev 的 CI 史,并补记 PR 的夹具泄漏结论。
2026-10-16 16:38:37 +08:00
Menghuan1918 1de5e44394 merge pr-939 (#939 fix(changes): 镜头切换器改用官方 Tabs 样式) into dev(@hairyf) 2026-10-16 16:31:17 +08:00
ymac f826e63658 docs: 地址基准与 worktree 根选择的规则与设计(#947 / #950 / #952)
- AGENTS §3.4 新增第 13 条:会话地址的基准是会话 header cwd,构造端与消费端都
  经 addressBaseOf 取基准、在消费边界解析成绝对路径;工作区内部的 linked worktree
  只有同一仓库(--git-common-dir 相等)才算「会话搬走了」。
- 接入指南 §10 新增同名条目(消费插件自己也解析文件地址时照同一条规则),并补上
  openSidebarFile 的新签名 `{ line?, cwd? }`。
- 新增 docs/plans/2026-10-14-worktree-root-and-address-base.md:三个症状、根因
  (宿主两端自洽 / 插件换基准 / 判定只看拓扑)、口径 A/B 决策表与实测真值表、
  逐文件实施、复现与正式用例、残留(裸相对路径聊天链接属上游 worktree 无感)。
2026-10-14 23:18:15 +08:00
hairyf 5efc7beae0 Merge remote-tracking branch 'origin/dev' into feat/git-scm-941
# Conflicts:
#	eslint.config.js
2026-10-13 23:19:26 +08:00
Menghuan1918 8171beb5a2 chore(release): v0.26.0 —— 版本号、CHANGELOG 定版与补齐、README 与指南同步
**版本号三处同步**:`package.json` / `dsh.plugin.json` / `src/client/service.ts`
的 `SIDEBAR_SERVICE_VERSION` 0.25.0 → 0.26.0(`tests/manifest-consistency.spec.ts`
钉住前两者一致;service.ts 里其余 `v0.25.0+` 是历史功能标注,未动)。

**CHANGELOG**:`### Unreleased` 定版为 `### v0.26.0`;删掉任务面板那批的**首轮
旧稿重复块**(61–75 行与定稿重复且措辞互相矛盾,合并遗留);补上此前完全缺失的
三条——
- PR #925 侧边对话整批(实时推送 / 排队可见 / per-thread 模型选择 / 幽灵输入精确
  清扫 / 底栏重构);
- 文件树的「加载中」占位把子树永久卡死(占位所有权跟着请求走 + 丢弃时补发一次);
- `.jsonl` 预览谎报「文件过大」(阈值决定提示,不是组件决定);
- 预览插件目录收录音频预览插件(#881)。
另外把 `.delta/` 排除那条工具修复并入 git 轮询条目的测试小节。

**README / README_EN**:修掉「v0.24.1 起要求 0.2.0-rc.2+」这处事实错误(v0.24.1 的
peer 是 `^0.2.0-rc.1`,v0.25.0 才是 `^0.2.0-rc.2`)、跟着过时的「`latest` 仍是
0.1.7-rc.2」、以及支持线表格与徽章 alt 里的旧版本号;**补上此前从未写过的 v0.25.0
条目**并新增 v0.26.0 条目(四件大事 + 性能段)。README_EN 同步。

**CHANGELOG_EN**:停在 v0.24.1 已两版(无门禁守护),补 v0.26.0 与 v0.25.0,
并把头部说明改成「中文 CHANGELOG 为逐条权威、本文件是英文摘要且历史上滞后」。

**指南**:§4.4 内置清单的 viewer 数 3 → 4(补 `jsonl`);`terminal-bottom` 的
`single` 列与实际不符(#926 已去掉 `single`、改为 `createTab` 每次铸新 id),
两处「`contentId` 恒定」同步订正为每页签一个实例。
2026-10-13 22:44:05 +08:00
hairyf 228b753ad2 fix(git): finalize reviewed SCM groups and scope-safe actions 2026-10-13 22:42:16 +08:00
hairyf 0f9472b57f fix(host): resolve settings namespace for file-mounted plugin 2026-10-13 22:41:06 +08:00
hairyf 428347da13 fix(host): use native connection admission for HTTP and WebSocket routes 2026-10-13 20:37:43 +08:00
hairyf 3a1cf3d4b7 fix(changes): flatten session operation rows 2026-10-13 16:18:07 +08:00
hairyf 872a975e15 fix(changes): reuse official conversation Tabs styling 2026-10-13 15:49:04 +08:00
ymac 3f7a344a49 docs: 记录 #915 后续——标题只在来自文件名时才跟随改名
- CHANGELOG:`### Unreleased` 置顶补这一条(含判别性实测)。
- 指南 §7:`updateTab` 的 JSDoc 补「派生标题跟着改名、作者自设的标题原样
  保留」——这条 UI 行为由 service 的写面决定,按 AGENTS §5 同批同步。
2026-10-12 08:49:56 +08:00
ymac 2d850a5261 docs: 记录 #915 后续——后台会话页签的调解与定向写入
- CHANGELOG:`### Unreleased` 置顶补这一条(含两条判别性实测)。
- 指南 §7:`updateTab` / `closeTab` 的 JSDoc 补「指到不在屏的会话时写进它
  自己的布局(定向通道,不发布、不通知)」——AGENTS §5 要求 service.ts 的
  行为变更同批同步指南。
2026-10-12 08:48:37 +08:00
Menghuan1918 77854af361 docs: 独立验证后的收尾(#915 条目事实性修正 + 补 #910/#911/#901 条目 + updateTab 的 JSDoc 合并)
独立验证(3 个未参与解冲突的 agent)在这批合入后抓出的问题:

- CHANGELOG #915 条目里「写回时保留该页签自己的拼写」与实现矛盾:记录写的是调用方
  给的新名(绝对拼写),保留旧拼写的是**改名标记**的 from(tree-mutations.ts:186-191)。
- #910 / #911 / #901 三条用户可见修复在本批合入时都没有 CHANGELOG 条目,补上(按合入
  顺序「新在上」:901 → 915 → 916 → 911 → 910)。
- #915 条目里「原生枚举没有进消费插件的公开面」措辞过强:本批确实新增了 3 个导出成员
  (NativePathTab / SidebarSurface.pathTabs? / @internal 的 nativePathTabs),改成
  「没有当成消费 API 宣传」。
- src/client/service.ts 的 updateTab 上叠了两个 JSDoc 块,TSDoc 只挂最后一块、解释
  sessionId 的那块成了浮空注释——合并成一块(原文档面)。
- 指南 §7 的 updateTab 签名补上第三个参数 sessionId?(该行此前就漏了)。

typecheck 干净,全量 2432 passed / 17 skipped。
2026-10-12 02:00:52 +08:00
Menghuan1918 db7216eac8 docs: 补 #915 的 CHANGELOG 条目与指南 §7 的原生承载面行为说明(#912 未带文档面)
- CHANGELOG:`### Unreleased` 置顶补 #915 条目(按 #912 的实际实现写;被取代的
  PR #917 那段里的 `ctx.betterSidebar.pathTabs()` / `store.reduceFor` / 「标题只在
  派生自文件名时跟随」三处说法与实现不符,未照搬)。
- 指南 §7:`updateTab` 的 JSDoc 补「写入在原生承载面上是稳的」(导航门控)与
  「文件树改名/删除调解覆盖原生页签」——AGENTS §5 要求 service.ts 的行为变更
  同批同步指南;§7 的接口块在 ```ts 围栏内,所以写成 JSDoc 续行而不是散文段。\n
2026-10-12 01:52:52 +08:00
Atlas Zeng 4bb914ef4a Merge pull request #916 from yanzhaohui1999/fix/826-line-nav-mode
fix(editor): 行号落地四处收尾:能切回预览、插件预览也跳行、换文件不继承行号、落地有光标(#826)
2026-10-12 01:39:20 +08:00
Menghuan1918 ecb347eb11 merge origin/dev into fix/826-line-nav-mode(#826 行号落地四处收尾 合上 dev 的 #924/#925 与流式/任务批)
两处冲突的解法:
- CHANGELOG.md:dev 的 v0.25.0 落版提交已把「#826 第二半」条目移进已发布的 `### v0.25.0`,
  因此该条目全篇只保留一份——留在 v0.25.0 原位,并采用 #916 修正后的措辞
  (「并高亮该行」→「并给编辑器焦点(CodeMirror 只在获焦时画光标)」);
  #916 新增的「引用行号的四处收尾(#914 回归报告)」条目置于 `### Unreleased` 最上方(该节新在上);
  dev 的其余段落(Unreleased 与 v0.25.0 两节)逐字未动。
- src/client/service.ts:保留 dev 新的 `FileViewerProps.content` 文档(超限见 `largeFile`)
  与 #924/#925 带来的侧边对话 / 流式面,叠加 #916 的 `onLineConsumed` 文档;
  `OpenTabSeed.line`、`createBetterSidebarService` 的三处 seed 透传与 `updateTab` 文档补充按 #916 落地。

验证:pnpm typecheck 通过;pnpm test 203 文件 / 2419 用例全绿(17 skip),
含 #916 的 tests/editor-line-nav-mode.spec.tsx 等 6 个 spec。
2026-10-12 01:27:18 +08:00