[Bug] Auto-compact triggers unintended agent behavior and unsafe git checkout during rollback
Resolved 💬 6 comments Opened May 19, 2026 by mowat27 Closed Jun 18, 2026
Bug Description
agent wrote a PRD. I did not want it implemented becuase I had another agent working in the codebase. The session auto compacted when I asked it to do something else. When the compaction completed, the agent immediately started implementing the spec and then when I stopped it and told it to roll back it did a blanket git checkout and potentially deleted the other agent's work. I now need to figure out what happened.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.144
- Feedback ID: 2cacc85c-6cb1-4bb4-9eb3-849dd6569b81
Errors
[{"error":"Error: File does not exist. Note: your current working directory is /Users/adrian/code/precision-weave/whcc.\n at call (/$bunfs/root/src/entrypoints/cli.js:4274:11536)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:56:04.453Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/adrian/code/precision-weave/whcc.\n at call (/$bunfs/root/src/entrypoints/cli.js:4274:11536)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:56:04.681Z"}]This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗