From time to time, the active claude/codex sessions running on my sprite(s) drop without any obvious root cause. Are there logs anywhere for what causes the latest disconnection? On Fly machines, I simply run tmux which avoids most issues related to potential network blips, and it also helps that they don’t go to sleep. On sprites, it’s often unclear what causes an issue. Any pointers would be appreciated.
There’s not a great way to get those logs for your sprites right now. However, if you reach out to support with the specific sprites you’re seeing this behavior on, we can dig in and investigate what’s going on!
For this use case though, it sounds like you might want to reach for the Tasks API - it was designed to keep agent sessions running long-term: