-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When a template has require_active_version enabled, the Workspace Settings page displays the Automatic Updates field as "Always" and disables it with the helper text "The template for this workspace requires automatic updates." However, the actual stored value of automatic_updates on the workspace remains "never" (the default).
This is misleading because:
• Users and administrators believe the workspace's automatic_updates is set to "always"
• Any code path that reads the actual automatic_updates value from the API (such as the CLI) will see "never" and behave accordingly
• The display creates a false sense that the update policy is being enforced at the workspace level
Relevant Log Output
N/AExpected Behavior
When require_active_version is enabled on a template, the server should automatically set (or treat) all associated workspaces' automatic_updates as "always" (not only from a UI perspective but also from a database state point of view). This ensures all consumers of the API see a consistent value.
Steps to Reproduce
- Create a template with
Require workspaces automatically update when started(require_active_versionin the CLI) enabled - Create a workspace from the template
- Go to the settings page of the workspace and observe that the Automatic Updates field is set to
Always. However, Database showsneverwhen the workspaces table is queried.
Environment
- Host OS: Ubuntu 24.04 and Mac OS
- Coder version: Reproduced on Coder server versions 2.26.6, 2.28.6, and 2.29.6
Additional Context
No response