fix: preserve drafts, canvas edits, and remote Continue tools

Keep paragraph formatting and checklist todos when removing canvas pages,
and preserve accepted undo/redo history after oversized input is rejected.
Merge restored queued text into the latest conversation draft and retain
image delivery when OCR returns image references and generated warnings only.

Deliver session MCP servers to bridged remote Continue Execute while keeping
Ask read-only and preserving local model-profile isolation. Add regression
coverage and update feature documentation. Correct stale conversation-limit
and forced-color assertions and the measured Electron layout test deadline.

Validation: 4,826 tests passed, 67 skipped; full typecheck and lint passed.
Current-source Linux x64 Execute/Ask/Execute MCP delivery passed, using 10
real text-provider requests and no image-provider requests. Image generation
itself was not exercised. Staged whitespace checks passed before commit.

Release note: 修复恢复队列时覆盖新输入、画布删页丢失清单格式及超限输入清空撤销历史的问题;图片 OCR 无正文时保留原图发送方式,远程 Continue Execute 正确保留会话 MCP 工具。
This commit is contained in:
mesalogo
2026-09-19 23:09:48 +08:00
parent 375b2159c8
commit a3b7a27045
29 changed files with 664 additions and 60 deletions
@@ -26,7 +26,8 @@ L-I3(FR-I2、FR-I3;US-I3、US-I11):附件身份、原始名称与来源
单独记录为图片或提取文字。只有 OCR 返回非空可靠文字且结果保存成功,才切到提取文字;
显示名派生为“原文件名 · 提取文字”。提取文字模式只拼入文本,不同时传原图或把解析中
提取的其他图片自动附加。失败、取消、空文字保持原方式;用户可显式切回图片并重新校验
能力。重试采用当前已保存 OCR 设置,开始时说明来源;旧结果在新结果成功前保持可用。
能力。图片引用及解析器生成的缺图警告不算提取文字,即使同时保存了其他有效图片也不例外。
重试采用当前已保存 OCR 设置,开始时说明来源;旧结果在新结果成功前保持可用。
## 选图与发送
@@ -153,6 +154,8 @@ L-H7(FR-H10、FR-H11;US-H11、US-H13):知识库文档独立持有正文
取消正在生成的回复保留已发送输入。会话删除和项目删除均使用同一引用清理规则。
目标已有草稿时,将恢复文字以空行追加、附件按来源去重合并,提交前校验合并后的数量与
容量;超限则保留队列及原草稿,提示先发送或整理草稿,不覆盖已有输入。
恢复等待期间允许继续编辑;文字追加到恢复完成时该会话的最新草稿,不覆盖期间的输入,
也不复活已清空的旧文字。切换会话不会改变原恢复目标。
L-H9(FR-I5、FR-H9、FR-H10;US-I8、US-I9):从聊天或知识库选出的图片在添加成功时
已是会话独立副本,其来源名称、定位和源 ID 随附件保存。来源删除或重解析不删除副本,