Here’s the diagnosis from my bot:
Running any exec call on the Mac mini now fails immediately with spawn EBADF. The gateway process itself is running fine, but every attempt to spawn a shell hits a “bad file descriptor” before the command even starts. The bug comes from leaking PTY file descriptors on macOS, so after a few commands there are no FDs left and spawn just errors out. The OpenClaw team is already working a fix (PR #4153 closes the PTY leak and PR #4932 adds a macOS fallback that captures output without a PTY), but until that lands the only workaround is to restart the gateway periodically so the leaked FDs get released.