You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): add --dormancy-threshold to coder templates push #32002
coder templates create --dormancy-threshold sets how long a workspace can be inactive before it becomes dormant ("Dormancy threshold" in the UI). coder templates push has no equivalent flag.
What to change
New template: set CreateTemplateRequest.TimeTilDormantMillis.
Existing template: send UpdateTemplateMeta.TimeTilDormantMillis only when the user sets the flag.
License check required. This setting needs the Advanced Template Scheduling entitlement. On unlicensed (AGPL) deployments, the server keeps the old value without returning an error, so push would look like it worked when it didn't. Check entitlements first, the same way `create` and `edit` do. --failure-ttl, --dormancy-threshold and --dormancy-auto-deletion should share one check.
Scope: Small (S), about 20 lines plus a test. Add another 20 to 30 lines for whichever of the three adds the shared license check first.
Activity
linear-code commentedon Nov 10, 2026
ENG-3526