Repository navigation
Conversation
…not seen; sync appearance settings A fresh install's first automatic upload replaced the snapshot another machine had uploaded, and any machine's next change replaced snapshots written since it last looked; the remote keeps no history, so the other machine's settings were gone (#1149). Every upload now reads the remote manifest first and stands down when it names a snapshot this machine neither wrote nor restored. The panel shows where it came from and offers restoring it or replacing exactly that one. Restores record what they pulled, write-ahead hashes keep a lost PUT response from looking like another machine's write, older state rows recognise their own upload exactly, and one lock serializes whole sync operations. Appearance settings (light/dark, theme colour, zoom, fonts, background display, custom styles) live in localStorage and never travelled; the synced light/dark and zoom mirrors were overwritten from localStorage at every launch. They are now mirrored into a new appearance domain and handed back to the window that restores, imports or rolls back, which applies them through its storage handlers.
…ror on open The mount-time UI font-stack cache fix went through persist(), which now mirrors synced keys, so merely opening a browser against a codeg-server replaced the server's appearance mirror with that browser's near-empty storage. Write that cache locally only; the chat width, written past persist(), now mirrors like every other change. Document the remaining cross-device GET/PUT window on upload_snapshot_core.
…amed; adopt only valid theme modes; accept an empty upload body - The overwrite dialog captures its target when it opens, so a status event that reports another remote snapshot meanwhile cannot redirect the click. - A synced theme mode is adopted only if next-themes accepts it; a value with whitespace would throw in classList.add on every launch. - config_sync_upload_now takes the raw body again: empty (with or without a JSON content type) is a plain upload, as before the overwrite token. - Type the transport mock in appearance-provider-sync.test.tsx (tsc).
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.
Closes #1149
Prepared by codeg work task
534from #1149.Review the diff before merging — the task ran against issue text written by an external author.