Skip to content

fix: pick up external file updates in a guest's open editor - #4385

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/guest-editor-external-updates
Nov 10, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/guest-editor-external-updates

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

A guest's open text editor now picks up changes the owner makes to the file and shows the "File updated" message, like it already does for signed-in users. Guests have had an SSE stream since #3981, only this listener was still limited to signed-in users.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: the external file updates listener subscribes in guest context and unsubscribes when it ends
  • test case 2: browser: guest with Can edit sees the owner's changes to a txt and an md file within a second, with the File updated message (desktop, Pixel 7)
  • test case 3: browser: unsaved guest edits are kept and saving gives the conflict message instead of overwriting
  • test case 4: browser: guest with Can view gets no prompt; the guest's own save shows no File updated message
  • test case 5: browser: signed-in recipient and public link editor unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Nov 9, 2026
@AlexAndBear
AlexAndBear requested a review from kulmann November 9, 2026 16:17
@AlexAndBear
AlexAndBear merged commit 09e7f25 into main Nov 10, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/guest-editor-external-updates branch November 10, 2026 12:41
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
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.

[Guests] A guest's open editor doesn't pick up the owner's changes

2 participants