[Bug] Unlimited document switching in the appflowy client
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.
The problem seems to occur during reconnection.
Does it happen when your application is connected to the server?
Based on my observation, this occurs when the client and server disconnect and then reconnect.
My general steps to reproduce the issue:
-
Stop AppFlowy Cloud
-
Switch between documents a few times on the client side
-
Start the AppFlowy Cloud server
-
While the client is still displaying "connecting...", switch between documents a few more times. This will most likely trigger the issue.
My AppFlowy Cloud version is 0.9.157.
@smartyhero , please let us know if the issue still persists in v0.10.5
I updated to version 0.10.5, but the problem persists. I also updated my appflowy-cloud to version 0.9.166. @annieappflowy
@smartyhero can you share your screen recording and log files when you encounter this issue?
appflowy_logs.zip These are the client logs; please let me know if you need any other logs.
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
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.
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 I can't access the video you uploaded. Can you check if the URL is accessible?
The link above is not working; please try this link instead.
https://dl.k8sre.cn/s/2025-12-05.mov
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
There are no problems using this version.