How Do I Handle Chat History Loss?
Symptom
In CodeArts Agent IDE or Visual Studio Code, if the CodeArts Agent extension version is earlier than 26.4.1, upgrading or forcibly closing the extension immediately after the AI model finishes answering a question may result in the loss of chat history.
Cause Analysis
In CodeArts Agent versions earlier than 26.4.1, the logic for updating chat history is to delete all historical chat records and then write all historical chat records. If CodeArts Agent is forcibly closed or upgraded during the update of chat history, the chat history may be lost. Furthermore, the more turns a chat has, the longer it takes to write, increasing the risk of data loss.
Solution
This issue occurs only in CodeArts Agent versions earlier than 26.4.1. To resolve this issue, upgrade CodeArts Agent to version 26.4.1 or later.
Before upgrading CodeArts Agent versions earlier than 26.4.1, pay attention to the following:
- Wait for one more minute after the AI model completes the answer to ensure that the chat history is successfully saved.
- Back up the folders in the local directories below. If historical chat records are lost, you can also submit a service ticket to get help from Huawei Cloud customer service.
CodeArts Agent IDE:
%USERPROFILE%/AppData/Roaming/codearts-agent/User/chat_sessions
Visual Studio Code:
%USERPROFILE%/AppData/Roaming/Code/User/chat_sessions
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot