You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initial coordination dial in Coder Desktop should fail fast #18599
This means the tunnel sends the StartResponse with success set to true without knowing whether or not it was able to dial the coordination endpoint. This results in a poor UX if we're not able to dial it initially; Coder Connect appears functional but is not - the only sign something went wrong is the No workspaces message, and N error logs, for each retry attempt.
Instead, we should fail fast, and send a StartResponse with success set to false if we fail to dial right after starting.
Activity
ethanndickson commentedon Aug 5, 2025
Looking into this, we do actually fail-fast:
coder/codersdk/workspacesdk/dialer.go
Lines 82 to 105 in b0ba798
However, in the incident that prompted the creation of this issue there was a client-side bug that resulted in:
/users/me)Since a 401 isn't in the list of permanent error statuses,
w.connectedgets closed, and the dialer marked as 'connected', even though it failed.chore(codersdk/workspacesdk): make dialer fail fast for authnz errors (…