So apparently some of the recent GPT models like using the “exit” command which kills their session 🫠
Here’s a simple fix of recovering the session when Tmux dies, validated with live runs:
https://github.com/OpenHands/software-agent-sdk/pull/3037
EDIT: I might just merge since openhands reviewer likes it and it seems low risk, but please tell me if there are concerns.