AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] Unlimited document switching in the appflowy client

Open smartyhero opened this issue 1 month ago • 4 comments

Bug Description

When I open AppFlowy, sometimes it displays "connecting," and when I switch documents, AppFlowy automatically and endlessly switches documents, although the trigger probability is very low.

How to Reproduce

I haven't found a way to trigger it 100% yet.

It seems that when I disconnect the network or stop my server-side load balancer, Appflowy displays "connecting...". If I switch between documents a few times, then reconnect to the network or start my load balancer, and then switch documents again, this issue is very likely to be triggered.

Expected Behavior

No side effects

Operating System

mac

AppFlowy Version(s)

0.10.4

Screenshots

No response

Additional Context

I'm not sure if this is a bug, but I did encounter this problem.

smartyhero avatar Nov 28 '25 09:11 smartyhero

The problem seems to occur during reconnection.

smartyhero avatar Nov 28 '25 09:11 smartyhero

Does it happen when your application is connected to the server?

LucasXu0 avatar Nov 28 '25 09:11 LucasXu0

Based on my observation, this occurs when the client and server disconnect and then reconnect.

My general steps to reproduce the issue:

  1. Stop AppFlowy Cloud

  2. Switch between documents a few times on the client side

  3. Start the AppFlowy Cloud server

  4. While the client is still displaying "connecting...", switch between documents a few more times. This will most likely trigger the issue.

smartyhero avatar Nov 28 '25 09:11 smartyhero

My AppFlowy Cloud version is 0.9.157.

smartyhero avatar Nov 28 '25 09:11 smartyhero

@smartyhero , please let us know if the issue still persists in v0.10.5

annieappflowy avatar Dec 04 '25 05:12 annieappflowy

I updated to version 0.10.5, but the problem persists. I also updated my appflowy-cloud to version 0.9.166. @annieappflowy

smartyhero avatar Dec 04 '25 10:12 smartyhero

@smartyhero can you share your screen recording and log files when you encounter this issue?

LucasXu0 avatar Dec 04 '25 12:12 LucasXu0

appflowy_logs.zip These are the client logs; please let me know if you need any other logs.

smartyhero avatar Dec 05 '25 03:12 smartyhero

You can try downloading the screen recording from this link. I am unable to upload the screen recording file to GitHub.

https://s3.k8sre.cn/share/2025-12-05%2011-04-25.mov

smartyhero avatar Dec 05 '25 03:12 smartyhero

The document creation operation shown in the screen recording may not be related to the triggering of this issue.

In version 0.10.5, after I stopped Envoy, the client did not immediately show a reconnection prompt.

I used Envoy to replace Nginx.

smartyhero avatar Dec 05 '25 03:12 smartyhero

log.2025-12-05.log

These are the log files in my data directory.

The compressed file above is a compressed archive exported using the "Export Logs" button in AppFlowy; it seems to contain very old logs.

@LucasXu0

smartyhero avatar Dec 05 '25 03:12 smartyhero

@smartyhero I can't access the video you uploaded. Can you check if the URL is accessible?

LucasXu0 avatar Dec 05 '25 03:12 LucasXu0

The link above is not working; please try this link instead.

https://dl.k8sre.cn/s/2025-12-05.mov

smartyhero avatar Dec 05 '25 03:12 smartyhero

Can you verify if the issue has been fixed in this version?

https://github.com/AppFlowy-IO/AppFlowy-Builder/releases/tag/0.10.5-fix%2Favoid_reopen_pages-251205-1232

LucasXu0 avatar Dec 05 '25 05:12 LucasXu0

There are no problems using this version.

smartyhero avatar Dec 05 '25 05:12 smartyhero