You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codespace state tracking has a bug which leads to infinite polling #10218
The problem is: if the codespace is currently shutting down, rebuilding, or some other non-shutdown state, this start call will silently no-op and we won't try it again later - so the CLI will just poll until it eventually times out.
Steps to reproduce the behavior
Create a codespace
gh cs stop -c <name>
Immediately gh cs ssh -c <name>
Observe CLI waits for the codespace to become ready
gh cs ls in another terminal
Observe that codespace eventually becomes Shutdown
The original gh cs ssh is still polling, but does not attempt to start the codespace and the codespace remains Shutdown
Expected vs actual behavior
The state polling should properly handle waiting for the Shutdown state before attempting to restart
Activity
cmbrose commentedon Jan 10, 2025
I got ahead of myself and already took a stab at it here: #10198