Closed zhang19980518 closed 2 weeks ago
👀 @zhang19980518
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
@zhang19980518 你好!我是Dosu,我是一个可以帮助你解决错误、回答问题并成为贡献者的机器人。在等待人类维护者的过程中,我可以帮助你。
The issue you're experiencing seems to be related to a bug in version v1.22.6 of the Lobe Chat application. After logging in, the chat interface in the default assistant throws an error, but a forced refresh resolves the issue. Unfortunately, I couldn't find specific information about known issues or recent changes in version v1.22.6 that might affect chat functionality post-login. It might be helpful to check if there are any updates or patches available for this version that address this issue. Additionally, reviewing the error handling mechanisms in place might provide insights into the error messages or logs generated during this process [1][2][3][4].
To continue talking to Dosu, mention @dosu.
The issue you're experiencing seems to be related to an error that occurs when trying to chat after logging in for the first time. This might be due to asynchronous operations affecting the initialization of the chat interface. Specifically, the enableAuth
value might be incorrect during initialization because of an asynchronous fetch, which can impact the isLoginOnInit
state used to initialize the agent store and user state [1].
Additionally, there are event listeners or hooks in place that should update the chat interface state upon successful login. In the ClerkLogin
component, functions like resend
and deleteMessage
are called when the user is signed in, which are likely responsible for updating the chat interface [2].
A potential workaround is to refresh the page after logging in, as you've noted that this resolves the issue. This refresh might help in reinitializing the state correctly.
To continue talking to Dosu, mention @dosu.
请录个屏看下你怎么操作的
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Please record a screen and see how you operate it.
现在可以了。。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
It works now. .
✅ @zhang19980518
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
📦 Environment
Zeabur
📌 Version
v1.22.6
💻 Operating System
macOS
🌐 Browser
Chrome
🐛 Bug Description
当点立即开始进到默认助手此时不聊天,然后进行登录,登录成功后在默认助手界面聊天会报错。强制刷新后就没事了。
📷 Recurrence Steps
No response
🚦 Expected Behavior
登录成功后第一次可以正常聊天
📝 Additional Information
No response