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] 收藏有子话题的话题会导致该助手的话题搜索功能异常 #6673

Open
luvsicz opened this issue Mar 3, 2025 · 3 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@luvsicz
Copy link

luvsicz commented Mar 3, 2025

📦 部署环境

Docker

📦 部署模式

服务端模式(lobe-chat-database 镜像)

📌 软件版本

1.68.3

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

收藏有子话题的话题后,该助手的话题搜索功能就异常,表现为输入关键字后,话题列表还是有不包含关键字的话题,观察请求发现API返回了过滤后的数据,似乎是前端没有渲染上去

Image

📷 复现步骤

  1. 收藏任意助手中有子话题的话题
  2. 根据关键词搜索
  3. 结果中有非关键字的结果

Image

🚦 期望结果

只出现包含关键字的结果

📝 补充信息

No response

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

👀 @luvsicz

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

Docker

📦 Deployment mode

Server-side mode (lobe-chat-database mirror)

📌 Software version

1.68.3

💻 System environment

Ubuntu

🌐 Browser

Chrome

🐛 Question description

After favorite topics with sub-topic topics, the assistant's topic search function is abnormal, which is manifested as after entering keywords, there are still topics that do not contain keywords. Observing the request, it found that the API returned the filtered data, which seems that the front-end has not been rendered.

Image

📷 Reproduction steps

  1. Collect any assistant's topics with subtitles`
  2. Search by keyword
  3. Non-keyword results in the results

Image

🚦 Expected results

Only results containing keywords appear

📝 Supplementary information

No response

Copy link

dosubot bot commented Mar 3, 2025

Hey @luvsicz, I'm here to help you with any bugs, questions, or contributions. Let's get this issue sorted out!

The issue you're experiencing seems to be related to the bookmarking feature affecting the topic search functionality. When a topic with subtopics is marked as a favorite, the search results may include topics that do not match the search keywords, even though the API returns correctly filtered data. This suggests that the problem might be in the front-end rendering logic, where the filtered results are not being displayed as expected.

To address this, you might want to check the front-end code responsible for rendering the search results. Specifically, ensure that the displayTopics function and the TopicSearchBar component are correctly handling the state and rendering the topics based on the search results. The displayTopics function should return the searchTopics when isSearchingTopic is true, and the TopicSearchBar should update the state accordingly when keywords are entered [1][2].

If the issue persists, reviewing recent changes or commits related to the topic search functionality might provide additional insights into potential causes or fixes [3][4].

To continue talking to Dosu, mention @dosu.


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

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

2 participants