Sprites failed to allocate TTY

I’m seeing this come back from my sprite during exec:

failed to create session: pty provider returned nil

This is transient and when I reconnect it’s fine, but it’s really annoying that I can’t shell into my sprite immediately.

The exact command is bash (TTY), via a WebSocket upgrade to:

wss://api.sprites.dev/v1/sprites/<prefixedName>/exec?cmd=bash&path=bash&stdin=true&tty=true&rows=<rows>&cols=<cols>

<prefixedName> is the sprite name.

Is there any way I can get around this other than always just retrying my exec when this error string shows up? That seems like a big hack…

Note that this is a previously created sprite that I am just execing back into, in case it matters.

The sprite in question is 7b70bd86-8daf-4485-bd09-827ede65c37f--npc-984b26f09c32.