Skip to content

[stable35] fix(SyncService): Behave like an idle disconnect on 403 responses - #9210

Merged
mejo- merged 1 commit into
stable35from
backport/9192/stable35
Sep 16, 2026
Merged

mejo- merged 1 commit into
stable35from
backport/9192/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 16, 2026

Copy link
Copy Markdown

Backport of PR #9192

When the editing session went invalid (i.e. because a browser or tab was
sleeping and didn't send a heartbeat for more than five minutes), the
server replies with 403 responses to sync/push requests.

The client-side polling backend correctly disconnects but the push side
(sync service) continues to send push requests with awareness state
updates and optionally pending steps.

This commit changes the sync service to stop pushing to the server on
403s as well by invalidating the session client-side.

The UI now handles the `PUSH_FORBIDDEN` error like an idle disconnect:
it sets the `idle` state which causes the status badge with reconnect
button to be displayed.

Fixes: #8950

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-fable-5-1
@mejo-
mejo- merged commit ff0d980 into stable35 Sep 16, 2026
63 of 64 checks passed
@mejo-
mejo- deleted the backport/9192/stable35 branch September 16, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant