feat(cli): replace open vscode container with devcontainer subagent (#18765)

This change allows a devcontainer to be opened via the agent syntax,
`coder open vscode <workspace>.<agent>` and removes the `--container`
option to simplify the subcommand. Accessing the subagent will behave
similarly to how the `--container` option behaved.

Fixes coder/internal#748
This commit is contained in:
Mathias Fredriksson
2025-07-08 19:21:41 +03:00
committed by GitHub
parent 5f50dcce5a
commit 6c4db7a2bc
10 changed files with 290 additions and 330 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func (r *RootCmd) ping() *serpent.Command {
defer notifyCancel()
workspaceName := inv.Args[0]
_, workspaceAgent, err := getWorkspaceAndAgent(
_, workspaceAgent, _, err := getWorkspaceAndAgent(
ctx, inv, client,
false, // Do not autostart for a ping.
workspaceName,