Repository navigation
Saving one model card preserves drafts on the others - #1505
Merged
WaylandYang merged 2 commits intoNov 16, 2026
Merged
Conversation
Signed-off-by: Maya Kid <BinjunYann@gmail.com>
WaylandYang
approved these changes
Nov 16, 2026
WaylandYang
left a comment
Contributor
There was a problem hiding this comment.
Thanks — per-card drafts and the identity check on clear look right. Merging.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Edit the chat model, then save the embedding card. The shared settings refresh used to restore the old chat model while leaving the card marked as unsaved. Saving a value that the server normalizes back to its previous value could also leave the input unnormalized, and an in-flight save could replace newer edits on the same card.
What changes
Use fetched settings as the baseline and keep a separate draft for each card. A save sends that card's fields and uses saved values for fields that the shared chat/embedding endpoint requires. After a successful readback, discard only the submitted draft if no edits have superseded it. Failed readback can be retried without another PUT.
How it was checked
dev(f33f9fc9). The fixed branch passed those scenarios and the failed-readback retry. Tests inspect the actual PUT payloads and the drafts displayed after refresh.Before review
git commit -s).