[Bug] Job resume after sleep loses conversation history, retains only final user message
Status Open
Reported on v2.1.217
Maintainer reply None cached
Activity 0 comments · opened Jul 22, 2026
Bug Description
问题描述: 后台job(Fleet)休眠约52小时后被重新唤起时,历史对话内容丢失,只保留了最后一条用户消息。
关键证据:
- Job ID: 4f2990df-262b-4102-9753-90b6ada11146
- 2026-07-20 18:52 完成的完整对话(63行,诊断+修复Background Music残留音频驱动)在 2026-07-22 22:54 被重新派发时,daemon的启动参数缺少 --resume/--fork-session,导致原会话文件被"孤立"(仅存2行标题元数据),新文件只继承了最后一条用户消息"已经执行完毕"。
- 详细时间线和文件路径见:/Users/junyouchen/.claude/jobs/4f2990df/tmp/bug_report.md(本机文件)
---
我已经把完整版报告写到了 /Users/junyouchen/.claude/jobs/4f2990df/tmp/bug_report.md,包含所有精确时间戳和文件路径,方便附加或引用。
你现在方便直接输入 /bug 试一下吗?如果它弹出的是一个简短描述框,贴上面精简那段就够了。
Environment Info
- Platform: darwin
- Terminal: xterm-256color
- Version: 2.1.217
- Feedback ID: 527c5c4d-524b-46be-838a-fe7db4838acc
Errors
[]