Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 在某些不可预测的情况下,发送按钮一直处于转圈的状态 #5472

Open
FU1006-1 opened this issue Jan 16, 2025 · 13 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@FU1006-1
Copy link

📦 部署环境

Vercel

📌 软件版本

多版本都是如此,目前版本1.45.16

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

在使用时,有些不可预测(不知其什么原因引起)的情况下会导致发送按钮一直转圈如图片所示
我即使刷新当前页面也不能使其恢复正常,只有重新打开一个新的页面才可以
1737019548831

📷 复现步骤

我不能复现这个bug,但它确实存在并且困扰我

🚦 期望结果

希望加入更好的逻辑判断按钮的可用状态

📝 补充信息

No response

@FU1006-1 FU1006-1 added the 🐛 Bug Something isn't working | 缺陷 label Jan 16, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 16, 2025
@lobehubbot
Copy link
Member

👀 @FU1006-1

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Vercel

📌 Software version

This is true for many versions, the current version is 1.45.16

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

When using it, some unpredictable situations (I don’t know what the cause is) will cause the send button to keep spinning as shown in the picture.
Even if I refresh the current page, it cannot return to normal. I can only reopen a new page.
1737019548831

📷 Steps to reproduce

I can't reproduce this bug, but it exists and it bothers me

🚦 Expected results

Hope to add better logic to determine the available status of the button

📝 Supplementary information

No response

Copy link

dosubot bot commented Jan 16, 2025

Hey @FU1006-1! 👋 I'm here to help you with any bugs, questions, or contributions. I'm Dosu, a bot designed to assist you while you wait for a human maintainer.

To address the issue of the send button getting stuck in a loading state on Chrome in Windows environments, you can enhance the logic for determining the button's availability. Here are some steps you can take:

  1. State Tracking: Ensure that the functions isHasMessageLoading, isCreatingMessage, and isInRAGFlow accurately reflect the current state of message processing and are updated promptly when the state changes [1].

  2. File Uploads: Incorporate checks for file uploads using the isUploadingFiles state to ensure the send button is disabled when files are being uploaded [2].

  3. Timeout or Fallback: Implement a timeout or fallback mechanism to reset the loading state if it persists for too long, which could indicate a stuck state.

  4. Logging and Debugging: Add logging or debugging information to track when and why the send button becomes disabled, which can help identify any edge cases or race conditions.

  5. Refine Logic: Use the canSend logic from the useSendMessage hook, which checks both file uploads and message-related conditions, to determine the send button's availability [2].

By integrating these improvements, you can help prevent the send button from getting stuck in a loading state.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@JoeChen2me
Copy link
Contributor

JoeChen2me commented Jan 16, 2025

一般这种情况,刷新网页重新进入即可。或者把chat sesson后面那一串对话ID删除

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Generally, in this case, you can refresh the webpage and re-enter.

@Yuyuyang
Copy link

我知道你在说什么,我的版本是在vercel上部署的数据库版本的1.46.1,也偶尔会遇到你说的这种情况。明明模型已经回复完毕,我的发送按钮仍然是转圈状态。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I know what you are talking about. My version is the database version 1.46.1 deployed on vercel, and I occasionally encounter the situation you mentioned. Obviously the model has finished replying, but my send button is still spinning.

@CaiJingLong
Copy link
Contributor

CaiJingLong commented Jan 17, 2025

我找到了一个稳定复现途径
我使用 github models + gpt4o模型。
上传一个 mp4 文件,点击发送,会提示不支持的格式,然后,发送按钮就会始终处于转圈状态。
不知道这个是否和这个是同一个问题,但是目测的效果是一样的。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I found a stable way to reproduce
I use github models + gpt4o models.
When uploading an mp4 file, you will be prompted with an unsupported format, and then the send button will always be in a spinning state.
I don't know if this is the same problem as this one, but the visual effect is the same.

@TonyBlur
Copy link

我也会时不时遇到这种情况,每次都要刷新页面才能解决

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I also encounter this situation from time to time, and I have to refresh the page every time to solve it.

@clickinfinite
Copy link

我也经常遇到 希望能改善

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I often encounter this too and hope it can be improved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

7 participants