A websocket that never opened stays "failed" — onclose no longer overwrites it with "closed", so the terminal says "Could not open the setup terminal." instead of "The terminal session ended.". The terminal emits ended when its session closes, and HarnessPage resets terminalOpen on it (plus a Close terminal button), so reopening starts a fresh session instead of requiring a page reload. The harness load failure now has a Retry button.