Files
mnote/.codex/reasonix-tasks/2026-05-25-batch-a2-worker-a-5-29-dom-selection-finish.md
T

50 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Reasonix Batch A2 / Worker A5-29 dom_selection 完成与验证
Project root`/mnt/Data1T/mnote-worktrees/0525-5-29-dom-selection`
## 背景
该 worktree 可能已有候选 diff
- 新增 `rust/spikes/leptos-tiptap-spike/src/editor_runtime/dom_selection.rs`
- `mod.rs` 挂载 `dom_selection`
- `lib.rs` 从该模块导入 selection helper
前一轮 runner 未写出 `process-handoff.md/json`,因此本任务要求完成、修正、验证并交接。
## 目标
确保 `dom_selection.rs` 第一刀是可采纳候选 patch:行为同构、编译通过、diff 范围干净。
## 允许修改
- `rust/spikes/leptos-tiptap-spike/src/lib.rs`
- `rust/spikes/leptos-tiptap-spike/src/editor_runtime/mod.rs`
- `rust/spikes/leptos-tiptap-spike/src/editor_runtime/dom_selection.rs`
可以修正空行、导入顺序、可见性、dead_code 标记。
## 禁止事项
- 不迁出 block menu DOM、overlay state、host bridge、resource open、local upload。
- 不改 shell / `mnote-web`
- 不修改设计文档、AGENTS、git 状态或提交。
- 不创建无关 symlink;如果已有无关 `reference-code` untracked,请不要删除,也不要依赖它。
## 验收命令
```bash
cargo fmt --manifest-path rust/Cargo.toml --all --check
cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml
```
## 输出要求
handoff 必须列出:
- 最终修改文件。
- 迁移函数清单。
- 未迁函数及原因。
- 验收命令和结果。
- 是否有 untracked / unrelated 文件,尤其是 `reference-code`