blue-journalist-98938
09/05/2025, 11:11 PMpyflyte
cli from within remote vscode sessions.
When running pyflyte info
or any other pyflyte command that launches an authentication flow, the remote session binds vscode the the callback service port (port 53593). However, once the flow is complete and the local service is stopped, the port binding does not get released. When inspecting the vscode port bindings, the binding shows as “User Forwarded”, which I believe causes them not to be automatically released
This is causing issues with a team that has several projects, and often uses remote connections or dev-containers for development. When one session claims a port binding, it blocks other sessions from being able to bind the local service for an authentication flow.
I’m unclear if this is a pyflyte
issue or a vscode
issue - but since vscode is such a prevalent IDE I hope you + the community may have some advice. Is this a known challenge with using pyflyte within remote vscode environments, and is there a known solution to this problem?ancient-wolf-19325
09/05/2025, 11:11 PMancient-wolf-19325
09/05/2025, 11:11 PMpyflyte
launches its local callback server for authentication, specifically when using OAuth flows. According to a related discussion, pyflyte
uses a local port (such as 53593) to listen for the authentication callback, and this port may remain bound if the process does not clean up properly, especially in remote or containerized environments like VSCode dev-containers. There is no explicit mention in the available data sources of this being a widely documented or solved problem, nor is there a direct workaround provided for VSCode remote sessions or dev-containers. However, the problem seems to stem from the interaction between `pyflyte`'s authentication flow and how VSCode manages port forwarding and session cleanup, rather than a bug in pyflyte
itself.
Though I'm not entirely certain, it might be that manually releasing the port in VSCode (by stopping the port forwarding or closing the session) is necessary, or you may need to check if the authentication process is leaving behind orphaned processes that keep the port open. There is no clear documentation or community guidance on this specific scenario, so you may want to raise this as a feature request or bug in the Flyte GitHub repository, or seek advice in the Flyte community Slack for best practices in multi-project, multi-session VSCode environments. Would you like more detail on how pyflyte
handles authentication ports or on possible workarounds? 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.