bug: "Update and restart" from settings does not restart
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
In Settings > Parameters, there is a button titled "Update and restart".
If you edit settings, and click it, the workspace does not restart. It issues a duplicate "Start" without a "Stop".
This is inconsistent with the "Update and restart" button that shows on the main workspace page (displayed when there is a template update to apply). When clicking that, the workspace is actually stopped first, then started again (note: that behavior wasn't correct until a pretty recent bug fix).
This is a problem for us, because there are certain kinds of self-service things we want to allow, like changing workspace zone, which require a full stop + start.
Relevant Log Output
Expected Behavior
A button that says "Update and restart" should actually restart the workspace.
Steps to Reproduce
- Workspace -> Settings -> Parameters
- Edit a parameter
- Click "Update and restart"
- Observe that it does not restart.
Environment
- Coder version: 2.31.7
Additional Context
No response