Skip to content

Updating workspace via VS Code fails #1095

Closed

Description

@kcon-stackav

Here are the logs from the Coder VS Code output panel when I try to update my workspace via the "Update workspace" button in VS Code:

2026-08-25 13:49:18.543 [info] [session 3c5e933a] Updating kevin/workstation {"status":"running"}
2026-08-25 13:49:20.446 [info] [session 3c5e933a] Workspace kevin/workstation state changed {"from":"running","to":"stopping","transition":"stop","reason":"initiator"}
2026-08-25 13:49:20.446 [info] [session 3c5e933a] Workspace kevin/workstation agent <ELIDED> removed
2026-08-25 13:49:35.695 [info] [session 3c5e933a] Workspace kevin/workstation state changed {"from":"stopping","to":"stopped","transition":"stop","reason":"initiator"}
2026-08-25 13:49:41.967 [info] [session 3c5e933a] Workspace kevin/workstation state changed {"from":"stopped","to":"starting","transition":"start","reason":"ssh_connection"}
2026-08-25 13:49:49.480 [warning] [session 3c5e933a] Update failed for kevin/workstation: "--global-config /Users/kevin/Library/Application Support/Code/User/globalStorage/coder.coder-remote/coder.stackav.io update kevin/workstation" exited with code 1: Encountered an error running "coder update", see "coder update --help" for more information
error: Trace=[start workspace: create workspace build: ]
A workspace build is already active.
A workspace build is already active.

The workspace does restart but ends up still running the same (non-updated) template version. Updating the workspace on the Coder website works fine as a workaround.

This is on macOS using the Coder VS Code extension version 1.16.1 in VS Code version 1.134.0 (Universal). We're running Coder v2.35.3 on the server.

I found #972 but I'm not sure if it's the same issue. The workspace template I am using does use dynamic parameters with one of the mentioned conditions (A parameter only appears for certain combinations of other inputs (the static rich-parameters list does not include it).).

Activity

  1. linear-code commented on Aug 25, 2026

    @linear-code
  2. Shocktrooper commented on Aug 31, 2026

    @Shocktrooper

    I also have ran into the same issue

    Workspace update failed: "--global-config c:\Users\123\AppData\Roaming\Code\User\globalStorage\coder.coder-remote\123.com update 123/workspace" exited with code 1: Encountered an error running "coder update", see "coder update --help" for more information
    error: start workspace: error creating cancelreader: failed to prepare console input: get console mode: The handle is invalid.
    . Continuing with the existing version.
    
  3. Shocktrooper commented on Aug 31, 2026

    @Shocktrooper

    I think I might have identified a potential cause. In the UI if I try to update the same workspace I get this message. We probably need to propagate this to the vscode extension if this is the cause

    Image
  4. self-assigned this
    on Sep 17, 2026
  5. added 7 commits that reference this issue on Sep 17, 2026
    bf287af
    43ff3d8
    131d30b
    44bc3f5
    dc31dd9
    df24ea4
    522f9d4
  6. added a commit that references this issue on Sep 23, 2026
    0d97bf9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions