Congratulations! Mine was intentional, back in college, where all PCs had open telnet in order to facilitate cooperation. We discovered it was easy to seize someone's computer for a while, and then watch them look around for the culprit, which we thought was hilarious. Boy were we annoying.
I don't know about the author, but I recently saw an article where the author of Claude code apparently spins up multiple instances at once (note that it could have just been a marketing ploy to get people to use more tokens)
Just use Git worktrees and a lightweight VM environment (I like macOS native sandbox-exec) and you can spawn as many sessions as you want. I've run upwards of 30 at once on my M2 Pro with no noticeable resource impact.
That was a great early lesson to never trust code you read online. Even if it is from Microsoft’s own developer portal.
So, the `SessionStart` hook was meant to catch any conversation where the `SessionEnd` hook wasn't fired.
Edit: I do realize a batch job is better. That's what I do now.
https://www.xda-developers.com/set-up-claude-code-like-boris...