Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages should not be saved everytime, causing lost data in high latency environments. #72

Closed
Stump8743 opened this issue Dec 24, 2023 · 2 comments

Comments

@Stump8743
Copy link

The pages should not be saving every time they are viewed.

I have lost a few pages content thanks to latency when running Codex via a SSHFS mounted remote disk to share with other people.

The solution is to:

  1. Only save data when it is changed e.g. compare of checksum on load and again when navigating away from the page to only save when data has changed.

  2. Have a read-only and write mode. You must put Codex in write mode to make changes.

  3. Make saving the responsibility of the user via a save button.

@jcv8000
Copy link
Owner

jcv8000 commented Dec 30, 2023

I'll get right on this for the next patch, thanks for letting me know

@jcv8000
Copy link
Owner

jcv8000 commented Jan 3, 2024

Just released 2.0.4 which has a setting for "Autosave pages when switching between pages" which you'd want to disable.

Now it will keep track of whether you've made any changes to the page. If you switch pages with no changes it won't overwrite anything, if you do have unsaved changes it will make a popup asking to save/discard the changes or go back

@jcv8000 jcv8000 closed this as completed Jan 15, 2024
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

No branches or pull requests

2 participants