so today was fun. i had one session doing a schema migration and a second session in another terminal doing what i thought was a completely separate cleanup task, and i learned this evening that “completely separate” was doing a lot of work in that sentence the cleanup session decided some unused files needed deleting. one of them was the new migration the first session had just written. it wasnt unused, it was three minutes old. session one then regenerated it slightly differently because the file it expected was gone, and now i had two schema versions that both looked plausible and a db that matched neither no errors anywhere btw. everything exited green. i found it because a seed script failed an hour later and i went digging through reflog like a detective in a bad mood i know the answer is worktrees, everyone says worktrees. ive also poked at coldtea which makes the sessions actually aware of each other, that parts real, but im not moving my whole setup onto a mac app because of one bad tuesday. and honestly the boring fix might just be not running two sessions on one repo, which nobody wants to hear because running five of them is the entire fantasy whats the stupidest thing your parallel sessions have done to each other. i need to feel less alone about the reflog thing submitted by /u/Specialist_Agent3599
Originally posted by u/Specialist_Agent3599 on r/ClaudeCode
