[BUG] Agent Task Output Files Were All 0 Bytes Despite the Tasks Showing "completed" Status
Resolved 💬 2 comments Opened Jun 15, 2026 by iam6ft7in Closed Jun 18, 2026
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?
The agent output files were all 0 bytes because of the auto-compact process. The main process went to retrieve the task output files after the auto-compact process and they were now all zero byte files.
What Should Happen?
The results files from the agent should survive an auto-compaction.
Agent(Las Vegas Aug 13-21 activity research)
⎿ Done (31 tool uses · 86.6k tokens · 7m 3s)
Error Messages/Logs
All the output files from the prior session's agents are empty (the results were delivered only through the context that got compacted). I'll re-run the full Las Vegas research now as a foreground agent so the results come back directly.
Steps to Reproduce
Unsure
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.177 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗