You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
The mode switch between "Document Mode" and "Conversation Mode" within the "Just Chat" assistant is not functioning correctly in the database version of LobeChat. The UI does not reflect changes when toggling between these modes, and the behavior of the agent remains consistent regardless of the selected mode. This issue does not occur in the client-side database mode.
Environment:
LobeChat Version: (Please fill this in if available, e.g., latest, a specific release tag)
Deployment: Database version, deployed using Docker Compose.
Database: PostgreSQL (pgvector/pgvector:pg16).
.env Configurations: As provided in the original report (see details below).
docker-compose.yml: As provided in the original report (see details below).
Additional Notes:
This issue is not reproducible in the client-side database mode.
There are no errors observed in the LobeChat container logs or PostgreSQL logs concerning this issue.
No log records related to the mode switching action are generated in the container logs when the switch is used.
The .env file is correctly configured as all basic functions are usable.
Start a fresh instance of LobeChat using the database version (docker-compose setup).
Access the "Just Chat" assistant.
Attempt to switch between "Document Mode" and "Conversation Mode" using the mode toggle switch within the chat interface.
Observe: the UI does not visibly update to reflect the chosen mode, and interaction with the agent remains consistent regardless of which mode was selected.
(Optional) Confirm that the same UI element renders correctly in Client-Side DB mode of LobeChat.
🚦 Expected Behavior
When switching between "Document Mode" and "Conversation Mode," the chat UI should visibly indicate the selected mode, and the agent should behave differently depending on the selected mode.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered:
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
I'm here to help you with any bugs, questions, or contributions you might have. Let's work together to resolve the issue you're facing.
The issue you're experiencing with the mode switch between "Document Mode" and "Conversation Mode" not functioning in the database version of LobeChat could be related to recent changes or specific dependencies in the system. Here are a few points to consider:
Recent Changes: There have been recent changes in the LobeChat codebase related to mode switching functionality. Specifically, there was a refactoring to align client mode upload with server mode, and a fix for the fallback behavior of the default mode in AgentRuntime[1].
Dependencies: The mode switch functionality in the database version relies on several dependencies, including a Postgres database with the pgvector plugin, an authentication service (such as Clerk or NextAuth), and an S3-compatible storage service for file storage [2][3][4][5].
UI Update Mechanism: The UI update mechanism for mode switching involves functions like switchThemeMode and switchLocale, which update the general configuration settings. If the settings are not different from the previous ones, the UI will not update, as the function exits early [6].
Given these points, you might want to check if the recent changes have been correctly integrated into your setup and ensure that all dependencies are properly configured. Additionally, verify that the UI update mechanism is functioning as expected and that there are no discrepancies in the settings that could prevent the UI from reflecting changes.
📦 Environment
Docker
📌 Version
v1.40.3
💻 Operating System
Other Linux
🌐 Browser
Chrome, Firefox
🐛 Bug Description
Summary:
The mode switch between "Document Mode" and "Conversation Mode" within the "Just Chat" assistant is not functioning correctly in the database version of LobeChat. The UI does not reflect changes when toggling between these modes, and the behavior of the agent remains consistent regardless of the selected mode. This issue does not occur in the client-side database mode.
Environment:
Additional Notes:
.env
file is correctly configured as all basic functions are usable.Relevant Configurations:
Here's the provided
.env
configuration:Here's the provided
docker-compose.yml
:Video
Screencast.From.2024-12-26.22-32-24.mp4
📷 Recurrence Steps
🚦 Expected Behavior
When switching between "Document Mode" and "Conversation Mode," the chat UI should visibly indicate the selected mode, and the agent should behave differently depending on the selected mode.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: