@ryuu-64/dsh-find-all 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.12
4
+
5
+ - Add opt-in archived conversation search with explicit Unarchive and open actions, current-state verification, and cancelled navigation when the search changes.
6
+
7
+ - Name the independent entry “对话全文搜索” / “Full-text conversation search”, and clarify title/body matching in the input while retaining the title-only filter.
8
+
9
+ - Keep conversation search compact with the native headless Modal, an input-first header, stable search controls, independently scrolling two-line results, and a quiet completed-result count.
10
+
11
+ - Search ordinary unarchived conversations by title and saved user/assistant body text by default, using public immutable Host reads even with the official default FTS provider disabled.
12
+ - Match Chinese short substrings, English and literal code with the same Unicode case-insensitive rule as in-conversation find; return real snippets and original-text highlight ranges.
13
+ - Add title-only mode, bounded conversation batches, explicit continuation and progress, cancellation, and partial/read-failure states without allowing title matches to displace body results.
14
+ - Preserve query and results when opening a conversation and returning. Keep the current-conversation find handoff without claiming an exact snippet-to-message jump.
15
+ - Keep compaction-era append transcript text, exclude model-only replacements and superseded assistant retries, and avoid a persistent second index or body-bearing diagnostics.
16
+
17
+ ## 0.1.11
18
+
19
+ - Match the Host’s filled three-dot options icon and show readable idle, searching, empty, and incomplete count states; only available results open match-number navigation.
20
+
21
+ - Show the running plugin version and a manual public-npm latest check in search options, with bounded requests, explicit failure states, and update instructions. No automatic installation or restart.
22
+
23
+ - Add a localized About dialog using the Host Modal, with the author, explicit QQ-group copying, project links, upstream credits, and license notices.
24
+
25
+ - Add a fixed GitHub feedback link next to diagnostic copying, with public-submission guidance and no automatic data transfer.
26
+ - Let the result count temporarily edit a match number, with strict bounds, Enter-only navigation, accessible keyboard controls, and cancellation when result identities change.
27
+
28
+ - Search the current session through a fixed durable cursor, checking continuous event coverage instead of loading the entire Chat DOM.
29
+ - Keep query scans separate from history reads, show cutoff and partial states, and retain loaded-only search when the full-history capability is unavailable.
30
+ - Project text with the Host renderer and resolve matches to exact original-Chat message blocks on demand. Keep saved-but-unrendered fields explicit, and isolate image descriptions and live-tail counts.
31
+ - Preserve keyboard navigation, movable find controls and return-to-reading-position behavior.
32
+
3
33
  ## 0.1.10
4
34
 
5
35
  - Keep the find bar below the conversation header and allow moving it within the conversation body with a drag handle or directional buttons.
package/NOTICE.md CHANGED
@@ -23,8 +23,8 @@
23
23
  相对上游快照 `ce7eb75`,本仓库改动如下(原上游功能一律保留):
24
24
 
25
25
  1. 插件的名称与 cordis 行 id:`dsh-find-bar` → `dsh-find-all`(npm 包名:`@ryuu-64/dsh-find-all`);
26
- 2. **新增"整段会话"搜索**:通过会话服务 `ctx.sessions`(`binding(id).session.loadOlder()` + 快照里的 `hasMore`)把尚未加载的历史分页拉进页面,每页之后重跑匹配,使命中计数覆盖整段会话;宿主读不到 `hasMore` 时退化为"翻到页面不再变化为止";
27
- 3. 新增范围切换(`整段` / `本页`)、进度提示(含点击停止)、加载页数上限与会话切换时的状态重置;
26
+ 2. **新增完整会话搜索**:通过正式 `ctx.remote.session.follow/page` 接口读取固定截点的已保存历史,验证事件序号连续覆盖,在内存文字上搜索,并在选择命中时按需定位原聊天;
27
+ 3. 新增范围切换(`完整会话` / `已加载内容`)、读取与扫描进度(含点击停止)、独立结果展示上限与会话切换时的状态重置;
28
28
  4. `test/find-logic.test.mjs` 由上游测试改写为 `node:test` 并扩充:新增匹配器、键盘路由与分页状态机的 19 项用例;
29
29
  5. 新增 README、`NOTICE.md`(本文件)与仓库元数据。
30
30
 
@@ -41,3 +41,47 @@ Copyright (c) 2026 Ryuu-64 ← 本 fork dsh-find-all 的修改部分
41
41
 
42
42
  - 上游部分的版权归 **secyborg**,本仓库不对上游代码主张任何额外权利;
43
43
  - 本仓库新增/修改的部分版权归 **Ryuu-64**,同样以 MIT 发布。任何人使用本仓库时,这两行版权声明都要一并保留。
44
+
45
+ ## React server text projection
46
+
47
+ The client bundle includes the React DOM 18.3.1 server renderer. It uses the Host's existing React runtime to turn the Host's public text components into inert text projections. React DOM is distributed under the MIT License:
48
+
49
+ Copyright (c) Facebook, Inc. and its affiliates.
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ of this software and associated documentation files (the "Software"), to deal
53
+ in the Software without restriction, including without limitation the rights
54
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom the Software is
56
+ furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67
+ SOFTWARE.
68
+
69
+ ## Version comparison
70
+
71
+ The client bundle includes npm node-semver 7.8.5 (https://github.com/npm/node-semver), distributed under the ISC License:
72
+
73
+ The ISC License
74
+
75
+ Copyright (c) Isaac Z. Schlueter and Contributors
76
+
77
+ Permission to use, copy, modify, and/or distribute this software for any
78
+ purpose with or without fee is hereby granted, provided that the above
79
+ copyright notice and this permission notice appear in all copies.
80
+
81
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
82
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
83
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
84
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
85
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
86
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
87
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -1,94 +1,55 @@
1
1
  # dsh-find-all
2
2
 
3
- DSH Desktop 的 **⌘F / Ctrl+F 查找**插件。它有一个和浏览器查找不一样的地方:**会向宿主请求更早的历史,不只搜索当前已经显示出来的部分。**
4
-
5
- ## 为什么需要它
6
-
7
- DSH 桌面窗口是 Electron 壳,本身没有浏览器那种查找栏。而会话视图一次只在页面里保留最近 50 条消息——点一次「加载更早」才再多 50 条。
8
-
9
- 所以拿普通查找条搜一个较早的词,结果永远是 0,哪怕这段会话里确实有。
10
-
11
- 这个插件在你输入关键词之后,通过会话服务把更早的历史一页页加载进来,每加载一页就重搜一次。宿主不再提供更早页时,最后重搜并提示“已搜索当前可用历史”。宿主公开接口不能证明历史完整性,插件不会把终止信号当作“全部搜完”。
12
-
13
- ## 功能
14
-
15
- - **⌘F / Ctrl+F** 唤起查找栏,优先带入有效的选中文字;没有新选词时恢复上次关键词。关键词仅保留在当前插件实例内存中,禁用、刷新或重启后清空
16
- - **范围切换**:`包含更早内容`(默认)↔ `已加载内容`,点那个胶囊按钮切换
17
- - **已加载内容**:只搜索当前会话中已经加载到页面的内容,包括滚动区域外的内容;不会继续加载历史,也不会移除先前已经加载的内容
18
- - **边搜边加载**:“包含更早内容”模式下自动分页加载历史,高亮与计数随加载实时更新
19
- - **进度可见**:显示「正在加载更早的历史… 已 3 页」,**点一下这段文字即可停止加载**
20
- - **安全上限**:最多加载 400 页(约 2 万条消息);历史不再增长时会自行停止
21
- - **导航**:Enter / Shift+Enter 上下一个;⌘G(Ctrl+G)/ F3 下一个,加 Shift 反向;Esc 关闭查找栏并清除高亮
22
- - 切换会话时清除旧结果,并在新会话里重搜同一关键词
23
- - 后台重扫首次找到结果时选中第一项;前插历史时优先保留可确认的当前命中,不自动滚动。原节点可对应,或同一正文块仍在且原文完全未变时,可在 Text/span 换树后恢复当前项;无法确认时把旧序号夹到新结果范围,换词或换会话则选第一项
3
+ DeepSeek Harness(DSH)的对话查找插件。按 **⌘F / Ctrl+F** 查找当前对话;点侧栏的「对话全文搜索」寻找其他对话。
24
4
 
25
5
  ## 安装
26
6
 
27
- 先按 **DSH 运行时版本**选择安装入口;它不一定等于 Desktop 产品版本。
7
+ 1. 打开 DSH 的「插件」→「添加插件」。
8
+ 2. 输入 `@ryuu-64/dsh-find-all`,安装并启用。
9
+ 3. 重启 DSH(网页版需重启服务并刷新页面)。
28
10
 
29
- **运行时 0.2.0-rc.2**:用 Desktop 自带的插件命令安装:
11
+ 如果装过 `dsh-find-bar`,请先卸载,避免快捷键冲突。
30
12
 
31
- ```sh
32
- dsh plugin --profile desktop add @ryuu-64/dsh-find-all
33
- ```
34
-
35
- **运行时 0.2.0-rc.1 / 0.1.7-rc.2**:这两个官方安装包没有上述新版 CLI 入口,通用 `dsh plugin --profile desktop` 也会拒绝操作。请在 Desktop 中打开「插件 / Plugins」→「添加插件 / Add plugin」,填入 `@ryuu-64/dsh-find-all`,点击「安装 / Install」,完成后点击「立即启用 / Enable now」。不要用版本豁免绕过安装错误。
36
-
37
- 安装后**完整重启一次 DSH Desktop**,再检查插件是否正常加载。
38
-
39
- 装完按 **⌘F / Ctrl+F**,右上角出现查找栏就算装好了。
40
-
41
- ### 和 dsh-find-bar 只能留一个
13
+ ## 使用
42
14
 
43
- `dsh-find-bar` 和本插件**都会抢 Ctrl+F**,两个同时装会互相顶掉。如果你之前装过它,先卸掉。运行时 0.2.0-rc.2 可用:
15
+ - **打开查找**:按 `⌘F / Ctrl+F`,输入关键词。
16
+ - **切换结果**:按 `Enter` / `Shift+Enter`;也可点击结果数量,输入序号后按 `Enter` 跳转。
17
+ - **调整搜索**:点 `⋯`,切换「完整会话 / 已加载内容」,或勾选思考、工具等内容。默认搜索用户消息和助手回复。
18
+ - **搜索新消息**:点 `⋯` →「重新读取最新会话历史」。
19
+ - **停止搜索**:点查找栏里正在搜索的状态提示。
20
+ - **关闭查找**:按 `Esc`;选项展开时会先收起选项。
44
21
 
45
- ```sh
46
- dsh plugin --profile desktop remove dsh-find-bar
47
- ```
22
+ 「完整会话」搜索已保存的消息;如果无法使用,可改选「已加载内容」。不搜索图片里的文字或附件内容。最多显示前 5000 个结果;没搜完或无法准确跳转时会提示。
48
23
 
49
- 运行时 0.2.0-rc.1 / 0.1.7-rc.2 请在「插件 / Plugins」中找到 `dsh-find-bar` 并选择「卸载 / Uninstall」。
24
+ ## 对话全文搜索
50
25
 
51
- ## 使用
26
+ 点侧栏的「对话全文搜索」,无需先打开聊天。也可从当前查找栏的 `⋯` 进入,并带上关键词。
52
27
 
53
- | 操作 | 按键 |
54
- | --- | --- |
55
- | 打开查找栏 | `⌘F` / `Ctrl+F` |
56
- | 下一个 / 上一个命中 | `Enter` / `Shift+Enter` |
57
- | 下一个 / 上一个命中(另一套) | `⌘G`(`Ctrl+G`)/ `F3`,加 `Shift` 反向 |
58
- | 切换范围 `包含更早内容` ↔ `已加载内容` | 点查找栏上的胶囊按钮 |
59
- | 停止加载更早的历史 | 点「正在加载更早的历史…」那行文字 |
60
- | 关闭并清除高亮 | `Esc` |
28
+ 默认同时搜索标题和正文,也可勾选「仅标题」。范围是当前连接服务中、所有工作区的普通对话,默认不含归档;勾选「包含归档」后可查看归档命中及正文摘要,主动点击「取消归档并打开」才会恢复并打开。正文直接使用宿主公开的已保存历史读取能力,不要求开启 SQLite 全文索引,也不改变宿主的默认配置。
61
29
 
62
- 搜索全部在本机完成:插件只向 DSH 的会话服务要更早的历史,不发网络请求,也不改动会话内容。
30
+ 输入中文短词、英文或代码片段即可按字面子串查找,不区分大小写。结果显示标题、工作区和真实正文片段;标题和片段中的命中会高亮。输入后会自动分批扫描并逐步显示结果;一页结果满后,点击「继续加载结果」查看更多。正文结果不会被标题结果挤掉。界面会区分尚未搜完、读取失败、已停止和确实没有结果。
63
31
 
64
- ## 已知限制
32
+ 点击结果会打开该对话,带上关键词继续会话内查找;「返回搜索结果」保留查询和列表位置。摘要不承诺直接跳到原句。跨对话匹配的是保存的文本块,含原始 Markdown;跨格式标记的渲染后短语不保证匹配。详细范围和限制可在「搜索说明」查看。
65
33
 
66
- - 大小写不敏感,没有「区分大小写」开关
67
- - 单次搜索仅显示前 5000 处匹配
68
- - 折叠起来的工具调用和思考块,正文不在页面里,搜不到——先展开再搜
69
- - “包含更早内容”模式要真的翻历史,所以很长的会话首次搜索需要等几秒
70
- - 宿主尚未就绪、公开报错、无进展或到达上限时,保留已找到的结果并提示未完成;再次打开查找或输入关键词可手动重试。停止、关闭、换词或切换会话会取消插件任务,但不会中断宿主已经发出的请求
71
- - “已搜索当前可用历史”不保证历史完整。宿主可能在正常末页和不连续页错误时都不再提供更早页;此时重新查找也不保证恢复缺失历史
34
+ 普通用户消息和助手已完成的正文包括压缩前仍可阅读的历史;不搜索工具、思考过程、子代理、附件、图片文字或未发送草稿。每次查询固定候选对话,期间新增或改动的内容可在输入框按 Enter 重新搜索。极大或无法读取的会话会显示未完整搜索,不会冒充零命中。
72
35
 
73
- ## 支持与交流
36
+ 搜索只使用当前连接的 DSH 服务,不改聊天记录,不把搜索词或正文发送到外部 AI。浏览器只接收匹配片段;插件不建持久正文索引。首次搜索需要逐个读取会话,大型历史可能较慢。当前宿主缺少所需公开接口时会提示服务不可用,原有会话内查找仍可使用。
74
37
 
75
- 发现 Bug、兼容性问题或有功能建议,请先[提交 Issue](https://github.com/Ryuu-64/dsh-find-all/issues),并附上 DSH Desktop、DSH 运行时和插件版本、复现步骤及必要截图;不要公开 API 密钥或私密对话。
38
+ ## 更新
76
39
 
77
- QQ 交流群:`1129212995`。群聊用于使用交流和社区互助;需要持续跟踪的问题请先提交 Issue,再把 Issue 链接发到群里。群聊不替代 Issue 中可检索的正式记录。
40
+ 在 `⋯` 中点「检查更新」。有新版时,去 DSH「插件」页卸载本插件,再按上面的步骤重新安装并重启 DSH。
78
41
 
79
- ## 卸载 / 回退
42
+ ## 反馈与交流
80
43
 
81
- 运行时 0.2.0-rc.2 可用:
44
+ 遇到问题请[到 GitHub 反馈](https://github.com/Ryuu-64/dsh-find-all/issues/new),说明你做了什么、遇到什么问题,附上必要截图。可点 `⋯` →「复制诊断信息」后粘贴到反馈中。不要公开密钥或私密对话。
82
45
 
83
- ```sh
84
- dsh plugin --profile desktop remove @ryuu-64/dsh-find-all # 卸载
85
- dsh plugin --profile desktop add dsh-find-bar # 想换回上游那个插件
86
- ```
46
+ QQ 交流群:**1129212995**。需要跟进的问题请到 GitHub 反馈。
87
47
 
88
- 运行时 0.2.0-rc.1 / 0.1.7-rc.2 请在「插件 / Plugins」中卸载本插件;需要回退时,再通过「添加插件 / Add plugin」安装 `dsh-find-bar`。
48
+ 点 `⋯` →「关于」可查看作者、联系方式与项目链接。
89
49
 
90
- ## 关于这个项目
50
+ ## 作者与致谢
91
51
 
92
- 本插件 fork 自 [secyborg/dsh-find-bar](https://github.com/secyborg/dsh-find-bar)(作者 secyborg,MIT),在上游的基础上加了自动加载更早内容的会话搜索。上游原有的查找条界面、高亮、`n/N` 计数和键盘导航都保留了下来。
52
+ 由 [Ryuu-64](https://github.com/Ryuu-64) 维护,基于 [secyborg/dsh-find-bar](https://github.com/secyborg/dsh-find-bar) 开发,感谢 secyborg 的原作。
93
53
 
94
- 版权与许可为 MIT 双署名:`Copyright (c) 2026 secyborg` 与 `Copyright (c) 2026 Ryuu-64`。上游 README 原样保存在 `README.fork-origin.md`,改动清单与致谢见 `NOTICE.md`。
54
+ [MIT 许可](LICENSE):Copyright (c) 2026 secyborg / Copyright (c) 2026 Ryuu-64。
55
+ 上游 README 见 [README.fork-origin.md](README.fork-origin.md),改动与致谢见 [NOTICE.md](NOTICE.md)。
@@ -1,4 +1,91 @@
1
- # Issue #1: compatibility acceptance
1
+ # Full-text conversation search
2
+
3
+ The Full-text conversation search entry targets public DSH `0.2.0-rc.2` at [`639ed015`](https://github.com/deepseek-ai/deepseek-harness/tree/639ed015397290b3745d163aafe02ffee4aa3f84). This is the implementation target, not a new claim that every historical peer version or Electron Desktop has passed acceptance. Package version and peer ranges remain unchanged.
4
+
5
+ ## Host and client contract
6
+
7
+ The same package now contains an optional Host half. A Cordis child scope acquires `connection`, `sessionQuery`, and `workspaceRegistry`; the authenticated `connection.fetch` registry owns POST `/api/dsh-find-all/search`. The browser addresses `api/dsh-find-all/search` relative to the document, preserving reverse-proxy mount paths. There is no new listener, direct database/log reader, provider replacement, or external upload. Missing services leave current-conversation find installed and make cross-conversation search explicitly unavailable.
8
+
9
+ `sessionQuery.listSessions(signal)` establishes Host identity/cwd/origin availability; `observeSession(id, { signal, projectionMode: 'none' })` supplies each immutable cut. The official Web default remains `session-query-sqlite.openAt: never`. No FTS handle, extra persistent index, or package dependency is required.
10
+
11
+ The root sidebar entry and current find menu use native Modal/Button/Input/Checkbox primitives. The search surface uses the public `Modal` headless contract: `title` still supplies the dialog aria-label, while the Host owns the mask, focus trap, Escape handling and return focus. A top-aligned card stays inside the native padding and available height, keeping the input and scope row stationary without reserving a large empty result area. The two-line result region grows to a bounded height and scrolls independently; low-frequency expanded help is separately bounded. Search progress, partial states and paging actions stay below results; a successful complete scan shows a short result count. Details remain collapsed unless requested. No default shortcut is added or replaced. Client catalog membership comes from ready `sessions.list.ids`, not arbitrary `byId` entries. Ordinary, nonblank rows across connected workspaces are eligible. Archived conversations are excluded by default; the independent Include archived checkbox expands this scope. The Host independently excludes missing-cwd and subagent sessions, and excludes archives in the default scope, including candidates forged into the request. Workspace labels are display metadata only. This scope does not inherit another view's archive toggle.
12
+
13
+ Archived results use a noninteractive row with an Archived label, matched snippet and explicit Unarchive and open button. The public `uiWorkspace.unarchiveSession` command is followed by a fresh, ready workspace/session snapshot check before opening. A successful RPC alone does not prove the session exists or the latest archive state has synchronized. An uncertain result stays in search with a retry message; confirmed unarchive followed by an open failure is reported separately. Only one restore RPC runs at a time. Changing query, mode or scope, closing search, choosing another result, or resetting the connection invalidates its automatic navigation. The public command has no cancellation signal: these actions do not undo a restore already sent, and the extension never automatically rearchives a conversation. Search scope changes discard prior results and continuation tokens.
14
+
15
+ ## Matching and transcript coverage
16
+
17
+ A query is a trimmed literal substring of at most 500 UTF-16 code units, without null characters. Escaped `RegExp(..., 'giu')` uses the existing in-conversation matcher's locale-independent Unicode simple case folding, without normalization or full-fold expansion. Punctuation, quotes and code operators cannot become regex or SQL syntax. Chinese two-character substrings can match within longer Chinese text. Titles and body use the same rule.
18
+
19
+ Body search includes append-origin `user/message` with `source.kind === 'user'`, and the last settled append-origin `assistant/message` for each turn/step. Step start or `llm/retry` clears an earlier settlement. This follows the official Chat transcript rather than the model's current surface: compaction-shadowed append text remains searchable, while model-only replacement copies, checkpoints, reasoning, tools, queued drafts and assistant attempts are excluded. The public append-transcript contract is documented in [session/surface.ts](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/core/session/src/surface.ts#L78-L92). User text blocks are joined as the existing reader presents them; assistant text blocks stay separate.
20
+
21
+ Body matching uses saved text including raw Markdown syntax. It does not promise to find a rendered phrase spanning formatting markers. Snippets and their exclusive-end UTF-16 ranges come from exactly the same text and immutable cut; the response also carries message ID, event seq, content index and observation cursor. The client validates ranges and renders text/mark nodes, never source HTML. These raw offsets are not DOM coordinates. Opening a result retains the reviewed conversation-find handoff and does not claim an exact snippet jump. If the selected conversation scope/projection has no match, its existing notice explains the difference and offers Return to search results.
22
+
23
+ ## Batches, consistency and limits
24
+
25
+ Start freezes the client's ordered eligible IDs; catalog titles are fallback hints only. Native cold-list metadata can lack a title cache. In title/body mode, the latest `session/title` event from the same observation supplies the actual title; title-only uses the public `readTitleSnapshot(id, signal)` to obtain the saved title, without body matching. Returned titles replace missing or stale UI metadata in result rows. The Host processes at most eight candidates per request and yields between sessions; a 100 ms soft batch budget is checked between sessions, not represented as a hard latency bound. The client automatically requests successive batches, including empty ones, until roughly 20 additional results are displayed or every candidate is scanned. Continue requests the next result page, not each internal scan batch. Title/body results share scan order without a title-first truncation. Title-only does not call the body scanner or `observeSession`; the public title reader may still read a complete cold log internally. It cannot promise metadata-only I/O.
26
+
27
+ A random request ID owns one in-memory search. Opaque continuation tokens bind its query, mode, fixed scope, protocol version and frozen candidates. Concurrent next requests receive 409. The preceding continuation response can be replayed without advancing again; replay rechecks visibility and expires with 410 if a returned conversation disappeared or became excluded by scope. Included archives retain a freshly checked archive flag on replay. Every page also rechecks visibility before sending snippets. This is a per-session scan, not a global instantaneous snapshot. Each conversation is read once per scan; new or edited conversations require a fresh search (Enter in the input). Historical pages already shown are not retroactively rewritten, but the client always filters displayed/opened rows against its current catalog.
28
+
29
+ Failed reads preserve confirmed title matches and increment failure counts. Policy changes or hard per-session limits increment skipped counts. Complete scanning plus any failed/skipped count remains incomplete coverage; zero matches is asserted only with complete, failure-free coverage. The scanner caps one observation at 200,000 events and 32 Mi UTF-16 text units, and searches text in 65,536-unit chunks with overlapping boundaries and cancellation yields. These limits do not bound the Host's internal cold restore allocation: the public API still prepares a whole session, and its synchronous restore cannot be instantly interrupted. Very large sessions can therefore delay other work before the plugin gets control.
30
+
31
+ Query/mode changes, Close, Stop, connection reset and scope withdrawal abort the HTTP read, invalidate a client generation and send a best-effort explicit cancellation for its own request ID. Leases are disposed in `finally`. Completed or confirmed partial result rows remain available for Back; a cancelled incomplete scan requires Retry. Successful results have no Retry action; Enter refreshes the query with composition/repeat guards. A search expires after five idle minutes, at most eight searches coexist, and a start accepts at most 100,000 unique candidates with bounded request/title sizes. The Host keeps only query/catalog state and one bounded replay page of snippets in memory; it clears state on cancel/disposal/expiry. Neither searches nor body snippets are logged or persisted by this plugin.
32
+
33
+ ## Verification for this candidate
34
+
35
+ - Reproducible client build, Host/client syntax, registration, whitespace checks, and the existing 17 tests in `text-matching.test.mjs`, `bundle-registration.test.mjs`, and `client-registration-check.test.mjs` pass. No test files or assertions were added to the repository; no historical long CI or release matrix was run.
36
+ - A bounded inline protocol exercise checks exact source ranges across chunk boundaries, Unicode/literal matching, append/replacement/retry selection, title preservation after read failure, idempotent cursor replay, query mismatch, archive invalidation, concurrent next rejection, explicit cancellation, title-only without observation, and lease disposal.
37
+ - A real official RC2 service probe uses Session/JSONL cold fixtures and `SqliteSessionQueryEngine` with `openAt: never`; native FTS is confirmed disabled and no index file appears. Its 28 ordinary synthetic candidates (plus a separately rejected subagent candidate) include 24 title matches, an old body-only conversation, a 160-turn conversation with about 5.2 million text code units, literal code and unrelated text. A separate forged-candidate check includes a subagent. Chinese “问题” finds 26 ordinary conversations, including the old/long body-only hits; code punctuation, Unicode case matching, no-hit and title-only queries pass. After the cold-catalog title gap was found in browser acceptance, title matching was changed to public saved-title reads and rechecked with intentionally empty catalog titles. The forced subagent is skipped.
38
+ - In that Node 24.19.0 service probe, title/body first batches took 82–129 ms and complete scans 331–772 ms; title-only public-title scans completed in 882–1047 ms. These sequential samples include cold and cached reads. A separate cold-read cancellation requested after 10 ms settled with HTTP 499 at 10 ms, and the next independent query passed. These are one small synthetic service measurement, not UI latency, production scale guarantees, or a benchmark. The default Web overlay does not enable FTS.
39
+
40
+ An isolated official RC2 Web browser run with the default `openAt: never` configuration passed on 2026-10-12:
41
+
42
+ - A single body query automatically scans all 28 ordinary conversations, finds both old/long body-only matches, and highlights the exact snippet text.
43
+ - Cold titles appear without opening each conversation first. Result pagination reaches 26 matches (24 title matches plus two body-only matches); title-only reaches 24 and excludes the body-only query.
44
+ - Successful results have no Retry action; Enter starts a fresh same-query scan. Stop reports incomplete coverage, and rapid query changes leave only the latest literal-code result.
45
+ - Opening the 160-turn long conversation and returning preserves the query and input focus. The final client/Host artifact hashes were unchanged throughout this clean acceptance run.
46
+
47
+ The compact-layout follow-up passed at 1180×757 and 501×403 in Chrome/Web. Input top position stayed at 44 px for empty, zero-match, two-result and paged results; the two-result card was 234 px high rather than a fixed empty panel. The 501 px view had no horizontal overflow. Expanded help and result lists scrolled separately; Stop, Retry and Load more stayed reachable. Tab trapping, Escape and return focus passed, with unchanged client/Host artifact hashes.
48
+
49
+ Archived-search acceptance on the same isolated RC2 Web profile verified default exclusion, opt-in body/title matches with archive labels and snippets, and scope changes discarding excluded rows. Clicking archived title text left the durable archive state unchanged; keyboard activation of the explicit restore action unarchived the synthetic conversation and opened Chat with the query. Returning showed the ordinary row. The 501×323 view had no horizontal overflow and its actions remained reachable. Independent-entry Close/Escape returned focus; after restore → Back → Escape, the original trigger had been removed by navigation and focus fell to the page. No exact return-focus guarantee is made for that path.
50
+
51
+ Bounded component/protocol checks additionally covered cross-scope cursor rejection, fresh archive flags on replay, deletion during replay, archive changes during reads, late old-scope responses, repeated restore activation, uncertain/rejected restore responses, confirmed restore followed by open failure, and navigation invalidation on Close/query/mode/scope/reset/another result. Delayed restore races and failure UI were not independently reproduced in the browser. The smallest actual browser width was 501 px; 320 px reflow remains unverified.
52
+
53
+ No real read-failure UI was produced in browser acceptance; failure/partial behavior has the bounded component/protocol checks above. Dark mode, 360/390 px widths, compaction/retry history through the UI, and Electron Desktop remain unverified. Compaction/retry selection has the source-contract and bounded service/protocol evidence described above. The historical host-version matrix was not rerun.
54
+
55
+ ---
56
+
57
+ # Full-session search compatibility
58
+
59
+ The unreleased full-session path targets the official DSH `0.2.0-rc.2` contract at [`639ed015`](https://github.com/deepseek-ai/deepseek-harness/tree/639ed015397290b3745d163aafe02ffee4aa3f84). The historical matrix below describes the pre-existing loaded/DOM-paging implementation; it is not acceptance evidence for this data-search path.
60
+
61
+ ## Durable read and lifecycle
62
+
63
+ The plugin subscribes through `ctx.remote.session.follow`, captures the first snapshot cursor, closes that subscription, and pages older records with the same `throughSeq`. Every page must be ordered, unique and dense, meet the preceding boundary, and collectively cover `0..T`. `SessionFace.hasMore` is never used as proof of complete history. Read coverage, text-projection coverage, query scanning and the 5000-result display limit are independent states.
64
+
65
+ Remote services are acquired in a Cordis child dependency scope. Missing or withdrawn services disable full-session search without preventing the existing loaded-only mode from mounting. Query, acquisition and navigation generations are separate. Closing, scope/session changes and disposal cancel owned work; changing a query reuses the current session's text cache. No persistence, worker or alternate reader is installed.
66
+
67
+ ## Text and original-Chat positioning
68
+
69
+ Assistant Markdown is projected through the Host's public `MarkdownText` component with the Host's React 18 runtime and a bundled React DOM server renderer. Each source is rendered once into an inert, unmounted template, converted to independent UTF-16 text blocks, and released. Generated code does not bundle React or request images. The single checked-in client bundle is reproducible with `npm run build`; `npm run check:build` rejects a stale artifact.
70
+
71
+ Saved source identity is retained separately from renderer offsets. Navigation uses the selected session's `loadThrough`, validates the native semantic node and content part, opens only the corresponding native disclosures, and compares complete text-block sequences before making a Range. React replacement nodes are revalidated during settling. Capped process fades and the find bar are excluded from the readable area. If a boundary prevents scrolling clear of the bar, a temporary in-panel displacement preserves its saved manual position; cancellation and user movement end that displacement.
72
+
73
+ Match navigation uses the first non-empty Range fragment while highlighting the entire match. It leaves that fragment in place when the outer reading area has one measured line-height of space above and below; otherwise it centers the fragment in the reachable area above the composer and clear of the find bar. Inner code and process scrollers retain nearest alignment and their fade exclusions. At a history boundary, a readable fragment can succeed without the full margin.
74
+
75
+ Before moving a match, navigation waits for the selected session to stop loading and uses the exact loaded Turn control, when mounted, to release the Host’s retained paging anchor. It then resolves the source again and checks measured geometry over successive polls. The [RC2 Turn navigator](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/client/ui-chat/src/client/chat/TurnNavigator.tsx) omits the rail for a single turn and virtualizes its marks. When the exact control is absent but the session is ready and the target Range is valid, navigation tries direct placement once; this does not establish a Host ownership handoff. If that placement is reversed, it reports the existing positioning failure without retrying the scroll or selecting another turn. Loading or unknown session state never permits a write.
76
+
77
+ The Host exposes no navigation-completed event. After a native Turn action, the bounded geometry check permits an initial placement and one layout correction, then reports failure if the Host keeps moving the match back. A readable boundary can succeed without ideal centering. Reader input, a new query, closing Find, or a changed session cancels the attempt. Loaded-content text rescans wait for the attempt to finish and do not initiate another jump. The existing `loadThrough` request is awaited separately; its completion is not evidence that the rendered match has landed.
78
+
79
+ Read, Diff, Search and supported terminal cards use validated first-party presentation data. Context follows the final RC2 Chat visibility filter: ordinary background context and system prompts are excluded; turn triggers and context containing tool changes use their native form and DOM markers. Saved but unrendered attempts/fields and Host display limits remain explicit navigation limitations. Authored image descriptions are independent saved-text results; images, OCR and attachment internals are excluded. Unknown required text types or unverified custom tool presentation report incomplete coverage rather than a false zero or complete count.
80
+
81
+ ## Build and verification scope
82
+
83
+ The package version remains unchanged while the feature is under review. Packaging keeps the existing single classic-script client registration and introduces no required Host package. The final candidate must be verified with the bounded official-Host scenarios for data coverage, original-Chat landing, cancellation and return behavior; the prior release matrix is not automatically rerun or claimed.
84
+
85
+ ---
86
+
87
+ ## Historical loaded-mode acceptance
88
+
2
89
 
3
90
  This implementation follows the approved [Issue #1 plan](https://github.com/Ryuu-64/dsh-find-all/issues/1#issuecomment-5933617888), with the accepted release scope and unverified Desktop limits recorded in [PR #9](https://github.com/Ryuu-64/dsh-find-all/pull/9). This does not promise compatibility with untested or future hosts. Issues #2–#8 are outside this change.
4
91
 
@@ -45,8 +132,8 @@ npm ci --ignore-scripts --legacy-peer-deps
45
132
  npm run check
46
133
  npm_config_cache=/tmp/find-all-npm-cache npm run verify:release
47
134
  npm pack --ignore-scripts --pack-destination /tmp/find-all-candidate
48
- # Extract this one tgz, retain its SHA-256, then test those bytes:
49
- FIND_ALL_PACKAGE_ROOT=/tmp/find-all-candidate/package node --test test/session-adapter.test.mjs
135
+ # Extract this one tgz, retain its SHA-256, then verify its registration bytes:
136
+ node scripts/check-client-registration.mjs /tmp/find-all-candidate/package
50
137
  ```
51
138
 
52
139
  `--legacy-peer-deps` here is only for isolated development test dependencies; it is not a host installation result or exemption. Test sessions must be synthetic, with no user data or model credentials. Do not change the artifact between version runs. Unknown future host versions need fresh regression evidence before changing support metadata.