Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to an existing and running workspace after a new one was created from the web dashboard #14

Closed
fioan89 opened this issue Mar 3, 2025 · 0 comments · Fixed by #59

Comments

@fioan89
Copy link
Collaborator

fioan89 commented Mar 3, 2025

Steps to reproduce:

  1. Open Toolbox and connect to Coder
  2. From Coder's web dashboard create a new workspace with a name which was never re-used.
  3. Coder toolbox plugin renders just fine and we can connect to it.
  4. However if we try to connect to an existing and running workspace the connect action fails with unresolved hostname error.

Note: this only happens when ssh wildcard config is NOT enabled.
Image

@matifali matifali added this to the v0.1.0 milestone Mar 18, 2025
@fioan89 fioan89 changed the title Can't connect to new workspace from Toolbox Can't connect to an existing and running workspace after a new one was created from the web dashboard Apr 2, 2025
fioan89 added a commit that referenced this issue Apr 2, 2025
- previously, ssh reconfiguration was triggered only when new workspaces were added, and
  the ssh config was generated only with the additional environments removing the configuration
  for the previous ones. This means that when a new workspace is created from the web dashboard,
  the old workspaces are no longer accessible via ssh from Toolbox
- now, the logic ensures ssh reconfiguration happens whenever the set of environments changes
  (including additions or removals), making it more robust, and configuration happens for all
  valid workspaces.

- resolves #14
@fioan89 fioan89 closed this as completed in 2ce2aa1 Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants