Skip to content

bug: Workspace settings parameters cycle between changed and default values when dynamic parameters enabled #21433

Closed

Description

@brent-at-aam

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have a template that has been updated to use dynamic parameters. When I enable dynamic parameters for the template and navigate to an existing workspaces settings page, parameter values with a default value will continually flip back and forth between the workspace's current value and the default setting. In other words, if I have a disk size parameter that defaults to 100 GB, and I've updated my workspace to use 200GB, I will see the disk size parameter repeatedly flip back and forth between 200GB and 100GB. This is causing unpredictable updates for our users.

The behavior is not consistent. Sometimes, the values remain static with the customized settings. Other times, they will flip to defaults and remain static with the defaults. Usually, if I refresh the page when it is cycling or stuck on the defaults, that will fix the issue, but sometimes it required multiple refreshes.

There have been a few bug fixes related to dynamic parameters that seemed relevant, but they appear to have no effect on this strange behavior. I don't see any errors in the console output and all network requests, e.g. websockets seem to be working. Naively thinking about the problem, it feels like there is some race condition in play here but I haven't tried to debug further.

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

  1. Enable dynamic parameters on an existing template that has parameters with default values
  2. Navigate to an existing workspace that has parameters that have been changed from the defaults
  3. Open the settings page and switch to the parameters tab
  4. More often than not, the values will cycle between the changed and default values

Environment

  • Host OS: EKS with Bottlerocket on the node and the official coder image for the container
  • Coder version: v2.28.5

Additional Context

No response

Activity

  1. added theissue type on Jan 6, 2026
  2. added
    needs-triage
    on Jan 6, 2026
  3. brent-at-aam commented on Jan 20, 2026

    @brent-at-aam
    Author

    We are still observing this behavior which blocks updating our templates to use dynamic parameters. One additional symptom, if I change a value on the form when it's stuck in this cycling state, the change is not registered with the form. The value for the field will flip back to the default, then back to the current workspace parameter value.

  4. bpmct commented on Aug 17, 2026

    @bpmct
    Member

    Hey! This was addressed by another PR #26357 which is in v2.35.0 and above. If you upgrade and still see this, can you reopen the issue? Not sure why this wasn't linked before then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions