fix(cli): proactively use active template version when require_active_version is set by f0ssel · Pull Request #22033 · coder/coder

@f0ssel f0ssel changed the title fix: sync workspace automatic_updates with template require_active_version fix: sync workspace automatic updates with template require active version

Feb 10, 2026

@f0ssel f0ssel changed the title fix: sync workspace automatic updates with template require active version fix: sync workspace auto-update setting when template requires active version

Feb 10, 2026

@f0ssel f0ssel changed the title fix: sync workspace auto-update setting when template requires active version fix: sync workspace automatic updates with template active version requirement

Feb 10, 2026

@f0ssel f0ssel changed the title fix: sync workspace automatic updates with template active version requirement fix: synchronize workspace automatic updates with active version requirement

Feb 10, 2026

johnstcn

johnstcn

geokat

sreya

sreya

@f0ssel f0ssel changed the title fix: synchronize workspace automatic updates with active version requirement fix: document consistent require_active_version evaluation

Feb 11, 2026

@f0ssel f0ssel changed the title fix: document consistent require_active_version evaluation fix(cli): proactively use active template version when require_active_version is set

Feb 11, 2026

johnstcn

@f0ssel

…_version is set

When a template has require_active_version enabled, coder start and
coder restart now proactively use the active template version for all
users (including admins), matching the web UI behavior where the only
button shown is 'Update and start'.

Previously, the CLI only checked workspace.AutomaticUpdates but ignored
TemplateRequireActiveVersion. This caused admins using the CLI or VS Code
extension to silently start on stale template versions. The fix adds
TemplateRequireActiveVersion to the existing OR condition in
buildWorkspaceStartRequest(), matching how server-side autostart already
handles it.

The 403->retry fallback remains as a safety net but is no longer the
primary path for any user.

Fixes #22030

@f0ssel f0ssel marked this pull request as ready for review

February 25, 2026 00:41