[wp-trac] [WordPress Trac] #65138: RTC: Real-time collaboration bug sprint for 7.0

WordPress Trac noreply at wordpress.org
Wed May 6 21:55:32 UTC 2026


#65138: RTC: Real-time collaboration bug sprint for 7.0
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  7.0
Component:  Posts, Post Types                    |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:  tests
  merge                                          |
-------------------------------------------------+-------------------------

Comment (by dmsnell):

 In [changeset:"62311" 62311]:
 {{{
 #!CommitTicketReference repository="" revision="62311"
 RTC: Promote auto-draft posts on first autosave for collaborative sessions
 to avoid post loss.

 When an RTC session in the editor saves edits on a draft post, they always
 save into an autosave revision. This prevents a sync but where storing to
 the post itself would lead to duplicate edits. This was set in
 wordpress/gutenberg commit 9df142b839320316b406ee1a02e23704d42f8719.
 However, there is an exception to this rule: the first session to save
 edits needs to promote the autosave revision into a real draft post, if a
 post doesn’t exist. The reason is that WordPress hides autosaves.

 That is, multiple people could be editing a draft post and then once they
 close it, never be able to find it again. While the data is still in the
 database, this is a loss of the post from a practical standpoint.

 This change introduces an exception where the first time a collaborative
 session is saving draft edits, the autodraft is promoted to a real draft
 post, making it visible in the post list.

 AI Disclaimer: This bug was detected in a fuzzing system built by AI
 models and the fix was first proposed by an AI model.

 Developed in: https://github.com/WordPress/gutenberg/pull/77865
 Discussed in: https://core.trac.wordpress.org/ticket/65138
 See also: https://github.com/WordPress/gutenberg/pull/77716

 Follow-up to [61680].
 Props danluu, dmsnell.
 See #65138.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65138#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list