Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Oct 14, 2025

A bug in synchronizing the document state might have resulted in a Yjs document state with missing steps being persisted into the Ydoc that we store on the server. If no client that had the missing step did an autosave afterwards, future sync session members will never recover from this situation.

We implemented several improvements recently that should result in less out-of-sync situations where a step becomes missing. To start with fresh editing sessions and not carry on with possibly unrecoverable document states, let's reset all editing sessions with the next app update.

See #7692 for further context.

Resolved #7692

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

A bug in synchronizing the document state might have resulted in a Yjs
document state with missing steps being persisted into the Ydoc that we
store on the server. If no client that had the missing step did an
autosave afterwards, future sync session members will never recover from
this situation.

We implemented several improvements recently that should result in less
out-of-sync situations where a step becomes missing. To start with fresh
editing sessions and not carry on with possibly unrecoverable document
states, let's reset all editing sessions with the next app update.

See #7692 for further context.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- requested a review from juliusknorr October 14, 2025 09:11
@mejo- mejo- self-assigned this Oct 14, 2025
@mejo- mejo- requested a review from max-nextcloud as a code owner October 14, 2025 09:11
@mejo- mejo- added bug Something isn't working 3. to review feature: sync labels Oct 14, 2025
@mejo-
Copy link
Member Author

mejo- commented Oct 14, 2025

/backport to stable32

@mejo-
Copy link
Member Author

mejo- commented Oct 14, 2025

/backport to stable31

@max-nextcloud
Copy link
Collaborator

We already discussed this and the code changes are minimal. Would like to wait for a review from @juliusknorr

@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.19%. Comparing base (eb94271) to head (8838167).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7783   +/-   ##
=======================================
  Coverage   60.19%   60.19%           
=======================================
  Files         502      502           
  Lines       38561    38561           
  Branches     1135     1135           
=======================================
  Hits        23210    23210           
  Misses      15245    15245           
  Partials      106      106           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@max-nextcloud max-nextcloud merged commit 490ddb6 into main Oct 15, 2025
67 checks passed
@max-nextcloud max-nextcloud deleted the fix/reset_sessions branch October 15, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collaborative editing unreliable (out of sync state in some clients)

3 participants