[Bug]: 无法删除对话
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
更新下,等待一会后可以删除会话,新创建的无法删除,同时已有的会话归档入回收站后,会生成一个空的新的会话
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.
补充一个后续修复:#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 并贴复现步骤。