Skip to content

feat(workspaces): update listed workspaces from the panel - #1183

Closed
EhabY wants to merge 2 commits into
feat/vsc-1-workspace-actionsfrom
feat/vsc-1-workspace-update
Closed

EhabY wants to merge 2 commits into
feat/vsc-1-workspace-actionsfrom
feat/vsc-1-workspace-update

Conversation

@EhabY

@EhabY EhabY commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Adds Update to the workspaces panel menu. Update confirms a start or a restart, collects parameters, then re-reads the workspace once and refuses if the operation or template version changed. On Coder 2.36+ it updates over REST without a local CLI.

Stacked on #1168.

Behavior changes from the previous revision of #1168

  • One re-check instead of several. The only extra read is now inside updateWorkspace, after the parameter prompts. It applies to every update path: the one-build REST update, coder update, and the REST fallback for old CLIs. Before the prompts, the command only compares start-or-restart against the confirmation, using the read every action already does.
  • The re-check also covers the connected workspace's update. On main, the CLI and REST-fallback paths there never re-read.
  • The REST fallback (servers before 2.36 with CLIs before 2.24) no longer re-reads after its stop. It starts on the version that was prepared, and still checks the session between stop and start.

🤖 Generated with Claude Code

EhabY added 2 commits November 9, 2026 15:18
The Workspaces panel can start, stop, restart, retry and delete workspaces,
and open their sharing settings. Each action re-reads the workspace, checks
the session before every write, and shows a pending spinner until the list
is read again. Restart keeps the build's template version and retries
transient reads after its stop, so a dropped connection does not leave the
workspace stopped.
Update confirms a start or a restart, collects parameters, then re-reads the
workspace once and refuses if the operation or template version changed.
Coder 2.36+ updates over REST without a local CLI. The re-check covers every
update path, including the connected workspace.
@linear-code

linear-code Bot commented Nov 9, 2026

Copy link
Copy Markdown

VSC-1

@EhabY
EhabY force-pushed the feat/vsc-1-workspace-actions branch from fb9684b to 5a0015e Compare November 9, 2026 12:20
@EhabY

EhabY commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded: #1168 now holds the extension host and IPC layer, and the React UI is stacked on it separately.

@EhabY EhabY closed this Nov 9, 2026
@EhabY
EhabY deleted the feat/vsc-1-workspace-update branch November 9, 2026 12:21
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 this pull request may close these issues.

1 participant