Updated on 2026-07-29 GMT+08:00

Chat History

Chat history is CodeArts Agent's memory of past interactions, recording the chats between the user and the AI, including previous questions, answers, and context.

Constraints

Table 1 Constraints

Category

Description

Function

Chat history is displayed by project. Do not modify project names arbitrarily, as doing so may render historical records unviewable.

Storage mode

Local storage.

In the opencode.db file in the %USERPROFILE%/.codeartsdoer/codearts-data directory.

Managing Historical Chats

  1. Log in to CodeArts Agent IDE as instructed in Quick Start.
  2. On the chat panel of the CodeArts Agent, click to view recent chat records.

    If the chat panel of CodeArts Agent is not displayed, click (Expand AI Sidebar) in the upper right corner of the top menu bar to open it.

  3. You can view the latest 10 chat records and perform the following operations.

    Table 2 Managing historical chats

    Operation

    Instruction

    Viewing all historical chats

    All is displayed only when the number of historical chats is no less than 10.

    In the lower left corner of the recent chat area, click All to view the historical chats of the current project and global chats (these chats do not belong to any project and are usually generated in earlier versions).

    Viewing a historical chat

    Click a chat record in the list to open it again on the chat panel.

    NOTE:

    If you need to review chats, search for content, share information, or organize data, you can view the chat history to access the complete information.

    Editing a historical chat

    Hover over next to a chat and choose Edit to change the chat name.

    Sharing a historical chat

    Sharing chat history is primarily applicable to scenarios such as saving and sharing chat content. For example, if your chat contains important information, you can export it for local backup to prevent data loss.

    Only chats in the completed state can be shared.

    • Method 1: Export a chat as a Markdown file.
      1. Hover the cursor over next to the chat to be exported and choose Share.
      2. Select the content to be exported.

        You can select the check boxes to export partial chat content or choose Select All to export all chat content.

      3. Click Export Markdown File and select a local directory for saving the chat content.

        CodeArts Agent will export the chat content in Markdown format to the local PC. The file name is in the format of CodeArts Agent YYYY-MM-DD.md.

    • Method 2: Export a chat as an image.

      If the number of characters to be exported exceeds 10,000, they cannot be exported as an image.

      1. Hover the cursor over next to the chat to be exported and choose Share.
      2. Select the content to be exported.

        You can select the check boxes to export partial chat content or choose Select All to export all chat content.

      3. Click Generate Image. The image preview page is displayed.
      4. Click Download and select a local directory for saving the chat content.

        CodeArts Agent will export the chat content as an image to the local PC. The image name is in the format of CodeArts Agent YYYY-MM-DD.png.

        You can also copy the image to tools such as Word and PowerPoint.

    Deleting chats one by one

    When there are few chat records, deleting them individually is not only more intuitive and flexible but also allows for the precise removal of specific content.

    1. Hover the cursor over next to the chat you want to delete and select Delete.
    2. In the displayed dialog box, click OK.
      CAUTION:

      Deleted chats cannot be recovered. Exercise caution when performing this operation.

    Batch deleting chats

    Deleting many chats one by one manually is inefficient; you can also batch delete chats using the following steps: For example, if a large number of temporary chats were generated while debugging or testing the agent, you can use the batch delete feature to clear these unneeded records with one click.

    In the agent mode, if there is a chat in progress, batch deletion will not allow the removal of chats that are in intelligent Q&A mode.

    1. In the lower left corner of the recent chat page, click All.
    2. Click next to the search box.
    3. In the chat list, select the records to be deleted and click Delete.

      To delete all records, scroll the list to the earliest record, choose Selected on the top, and click Delete.

    4. In the displayed dialog box, click OK.
      CAUTION:

      Deleted chats cannot be recovered. Exercise caution when performing this operation.

Related Documents

Modifying a project name will render the chat history of that project unviewable in CodeArts Agent IDE. If you need to restore your chat history, follow the instructions in What Should I Do If I Cannot View Chat History in the Original Project?