DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: 无法删除对话

Open lidong19941207 opened this issue 5 months ago • 1 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.11.1

What happened?

会话归档入回收站后,会生成一个新的会话,然后这个新的会话无法删除,同时微信bot会话归档入回收站报错,session already exists in trash

Steps to reproduce

删除会话

OS / platform

winodow 10

Relevant logs or output


lidong19941207 avatar Jun 24 '26 06:06 lidong19941207

更新下,等待一会后可以删除会话,新创建的无法删除,同时已有的会话归档入回收站后,会生成一个空的新的会话

lidong19941207 avatar Jun 24 '26 06:06 lidong19941207

Closing this as addressed by #5257.

#5257 consolidates the related fixes from #5202, #5173, and #5242. It covers the reported delete/archive flow by making new blank sessions immediately deletable, avoiding reuse of a just-deleted topic as the fallback, safely reconciling trash conflicts, and refreshing the history drawer after stale delete/open failures.

All GitHub CI checks for #5257 are green. If the original Windows or WeChat bot workflow still reproduces against #5257 or after it is merged, please comment with the exact steps and we can reopen/follow up.

SivanCola avatar Jun 24 '26 14:06 SivanCola

补充一个后续修复:#5948 已经合入 main-v2(merge commit 761627c)。

它额外处理了 session already exists in trash 这一类删除冲突:如果恢复/归档后留下的 live session 与回收站里的同名副本内容一致,现在删除会按幂等操作处理,清掉 live 残留;如果确实有另一个运行时正在持有该会话 lease,则仍会拒绝删除,避免丢失对方后续保存。

#5948 的 desktop、race、Windows/macOS/Linux 测试和 CodeQL 都已通过。后续包含该提交的构建里如果还遇到相同删除流程,可以再开一个新的 follow-up issue 并贴复现步骤。

SivanCola avatar Jul 05 '26 00:07 SivanCola