Skip to content

Conversation

@mitchdenny
Copy link
Member

Fixes: #8412
Fixes: #8366

Before we shipped 9.2 I modified some of the logic around getting the dashboard URL to show in the CLI. It resulted in us no longer waiting for the dashboard to start before showing the URL.

This resulted in two issues. The first was that we displayed the URL to the dashboard before the port forwarding configuration was written in devcontainer/codespace scenarios. Because of this the one-time URL display detection that VSCode does never triggered port-forwarding on the dashboard (it would work the second time around).

The second issue was that we displayed the URL before the dashboard was running so if someone was quick enough (within a second or two) they could click on the dashboard URL and get an error which would leave them wondering whether something was broken.

This change makes the GetDashboardUrlsAsync method wait to get the URLs until after the dashboard is healthy which is after the port forwarding config is written.

This solves both issues listed above.

@mitchdenny mitchdenny requested a review from davidfowl April 30, 2025 06:33
Copy link
Member

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean!

@davidfowl davidfowl merged commit 4e112fd into main Apr 30, 2025
174 checks passed
@davidfowl davidfowl deleted the mitchdenny/devcontainer-dashboard-portforwarding-bug branch April 30, 2025 07:55
mitchdenny added a commit that referenced this pull request Apr 30, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Codespaces port forwarding doesn't work until second run of aspire run. CLI shows the link to the dashboard before it is listening

3 participants