Skip to content

Fix sampling method reset#13

Merged
JD-P merged 3 commits into
mainfrom
cursor/fix-sampling-method-reset-2600
Dec 9, 2025
Merged

Fix sampling method reset#13
JD-P merged 3 commits into
mainfrom
cursor/fix-sampling-method-reset-2600

Conversation

@JD-P

@JD-P JD-P commented Dec 8, 2025

Copy link
Copy Markdown
Owner

Preserve user-entered values in the service settings modal when changing sampling methods and remove the legacy "Custom" option.

Previously, changing the sampling method would reset all related fields (API URL, Model Name, API Delay) to the new method's defaults, even if the user had already entered custom values. This change implements a "smart" default replacement, only updating fields if their current value is empty or matches the default of the previous sampling method, thus preserving user input. The "Custom" sampling method was also removed as it is legacy.


Open in Cursor Open in Web

Remove "Custom" option and improve default value handling when changing sampling methods.

Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
@cursor

cursor Bot commented Dec 8, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits December 9, 2025 00:01
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
Co-authored-by: johndavidpressman <johndavidpressman@gmail.com>
@JD-P JD-P marked this pull request as ready for review December 9, 2025 00:24
@JD-P JD-P merged commit c889004 into main Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants