After running tailscale up with an --exit-node the connection to the Codespace goes away and I'm unable to connect to the Codespace again.
Also tried with more options:
sudo tailscale up --accept-routes --exit-node=100.x.x.x --exit-node-allow-lan-access=true