coder / vscode-coder

Open any Coder workspace in VS Code with a single click.
MIT License
66 stars 15 forks source link

bug: VSCode desktop failing with multiple agents #131

Open stirby opened 1 year ago

stirby commented 1 year ago

VSCode Desktop Integration Fails with Multi-Agent Docker Workspace

Problem Description

When deploying a Docker workspace with two agents using our example Terraform templates, the VSCode Desktop integration is experiencing issues. Although all the necessary resources such as docker_volume, docker_container, and coder_agent have been correctly doubled, the VSCode Desktop extension fails to connect.

Error Message

The error message displayed in VSCode Desktop is: "Error: Invalid Coder SSH authority. Agent not found!"

double-container-error

Dashboard Health

The dashboard indicates that all components are healthy:

double-container-dashboard

Steps to Reproduce

Double all required resources from the example Terraform template. Deploy the Docker workspace. Open the VSCode Desktop extension.

Expected Behavior

The VSCode Desktop extension should successfully connect to both agents in the Docker workspace.

Actual Behavior

The VSCode Desktop extension is unable to find the agents and shows an error message regarding invalid SSH authority.

Template Link

matifali commented 10 months ago

While trying to reproduce this. I created a template with 6 agents, and I can connect if I press ok on the error, but interestingly, it always connects to the first agent shown on the workspace page.

code-asher commented 3 months ago

I think this might be fixed now. At least, it should ask which agent to connect.