Files
mnote/.codex/reasonix-tasks/2026-05-21-batch-a-worker-c-local-folder-restore-no-refresh.md
T

62 lines
2.2 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 A Worker C: Local Folder No-refresh / Restore Focus Gap
Project root: `/mnt/Data1T/mnote`
## 背景
用户要求按 `1-8` 分阶段推进。当前执行 Batch A / P0:清 Trash no-refresh 和 restore focus 的验证红灯。
事实源:
- 阶段 checklist`design/04-tree-domain/process/4-46-batch-a-filetree-action-trash-smoke-execution-checklist-v1.md`
- 上游:
- `design/04-tree-domain/process/4-34-filetree-trash-dual-browser-no-refresh-v1.md`
- `design/04-tree-domain/process/4-28-trash-restore-location-reveal-focus-v1.md`
## Ownership
你负责:
- `design/04-tree-domain/process/4-34-filetree-trash-dual-browser-no-refresh-v1.md`
- `design/04-tree-domain/process/4-28-trash-restore-location-reveal-focus-v1.md`
- 可新增一个聚焦 smoke,例如 `scripts/task472-local-folder-restore-focus-smoke.js``scripts/task472-local-folder-no-refresh-gap-smoke.js`
- 必要时只追加 `.codex/reasonix-tasks/results/batch-a-worker-c-local-folder-restore-no-refresh.md`
你不是独自在代码库中工作;不要回滚、覆盖、格式化或清理其他人的改动。不要提交 git。
## 任务
1. 盘点当前 local folder 非 md 资源 trash / restore / purge 的真实 UI 支持状态。
2. 盘点 restore 后 DOM reveal / focus 的现有证据缺口。
3. 如能新增小型 browser smoke,则新增脚本,优先只验证现有行为,不引入业务重构。
4. 如果能力尚未实现或环境不可用,更新 `4-34` / `4-28` 的待补记录,明确:
- 已有证据
- 缺口
- 下一步脚本或实现点
## 禁止事项
- 不直接修改 `rust/crates/mnote-web/src/**`,如发现必须改 Rust,只在报告里给建议。
- 不把 reload 型刷新写成 no-refresh 完成。
- 不移动 design 文件到 done。
## 验证
如果新增或修改脚本,至少运行:
```bash
cd /mnt/Data1T/mnote
node --check scripts/task472-local-folder-restore-focus-smoke.js
```
或对应新增脚本的 `node --check`
如本机 3000 可用,可实跑并把结果写入 `tmp/task472-*/result.json`
## 最终回复格式
- 修改文件列表
- 完成的 checklist 项
- 运行过的命令和结果
- 未完成项 / 风险