上传文件在会话中如果这个会话半小时没有响应,文件上传会识别失败,需要新建对话才能上传成功
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
在Work Agent对话中上传文件时,如果该会话已经存在超过约30分钟且没有响应活动,文件上传会失败并提示无法存储附件。 具体表现: - 文件选择上传后,系统提示 Warning: X attachment(s) could not be stored and will not be sent - 无法识别已上传的文件 - 需要创建新的对话才能成功上传文件 实际案例: 尝试上传两个PDF文件: - DS_AW85805S_EN_V1.1.pdf - 004.012.0052581_深圳鼎唯_编码_包装_规格_尺寸_履历_丝印_可靠性_封面_V3.pdf 错误信息: Warning A 2 attachment(s) could not be stored and will not be sent:
What Should Happen?
文件应该在会话的任何状态下都能成功上传,无论会话是否处于空闲状态。上传的文件应该可以在当前会话中被识别和访问。
Error Messages/Logs
Warning A 2 attachment(s) could not be stored and will not be sent: DS_AW85805S_EN_V1.1.pdf, 004.012.0052581_深圳鼎唯_编码_包装_规格_尺寸_履历_丝印_可靠性_封面_V3.pdf
Steps to Reproduce
- 创建一个对话 2. 等待约30分钟不进行任何交互 3. 尝试上传文件(特别是PDF文件,或文件名较长的文件) 4. 观察系统提示 Warning: X attachment(s) could not be stored 另外,在会话超时后,之前成功上传的文件也无法被引用访问。
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
0.7.1
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
系统信息: - 平台: Windows (win32) - 系统版本: MSYS_NT-10.0-26200 - Work Agent 版本: 0.7.1 - 会话时长: 约30分钟以上无响应 可能原因: 1. 会话超时机制问题 - 会话在30分钟后被标记为非活跃状态,附件存储服务与会话状态不同步 2. 文件存储临时空间管理问题 - 长时间空闲会话的临时存储空间被清理,附件存储路径失效 3. 文件名编码问题 - 长文件名或包含中文的文件名在特定情况下处理失败 Workaround: 创建新的对话,然后重新上传文件。
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗