fix: do not clobber dynamic parameters (backport #24645 to 2.29)#25828
Merged
Conversation
6f67905 to
2421bb4
Compare
896ab29 to
9b9f52c
Compare
Once a user has touched a field, it is better to leave it alone and display explicit validation errors over silently overwriting their inputs. Same for auto-filled values (whether from query parameters or a previous build).
9b9f52c to
50e0776
Compare
f0ssel
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #24645 to
release/2.29.Once a user has touched a field, it is better to leave it alone and display explicit validation errors over silently overwriting their inputs. Same for auto-filled values (whether from query parameters or a previous build).
Original PR: #24645 — fix: do not clobber dynamic parameters
Merge commit: d958d89
Closes #23418
Cherry-pick conflict resolution
Two conflicts resolved:
site/src/testHelpers/websockets.ts: Added newmockDynamicParameterWebSockethelper. Convertedvi.*tojest.*and#/to bare import paths to match release branch conventions.site/src/pages/CreateWorkspacePage/CreateWorkspacePage.jest.tsx: File is.jest.tsxon the release branch (.test.tsxon main). Applied the cherry-pick's structural changes (refactored inline websocket mocks, added two new test cases) while convertingvi.*tojest.*and#/to bare import paths.Note
Generated with Coder Agents by @rowansmithau