Reported by @halcyon prism
Bug Report: Codex VSCode Sign-in Freeze
`Steps to Reproduce`
Try logging in to Codex for VSCode with OpenAI account, with local port 1455 occupied by other processes. To reproduce, you can create any port forwarding from any port in remote machine and to local port 1455. Then signin to codex with OpenAI account will freeze after clicking the continue button as the final step.
The fix is to create a port forwarding by codex when signin is clicked. Then the local port can be passed on to the final callback to localhost port.
`Expected Result`
Successfully redirect to signin success page and successfully signin in VSCode Codex extention.
`Actual Result`
The browser waits for the redirection forever.
`Environment`
VSCode.