Added a delete button to the chat history tab that allows users to remove individual chats from their history
Updated the ChatsController to handle deleting a single chat by ID
IMPORTANT: The clearHistory method signature has changed to accept an optional chatID parameter instead of tree-item, as we no longer use tree-view for chat history.
Test plan
In the sidebar chat, open the history tab
verify there is a trash icon next to each individual chat
clicking on the trash icon would remove the chat
clicking on the chat history item would open the chat from history
Changelog
Chat: Added ability to remove individual chats from chat history in the sidebar.
CLOSE https://linear.app/sourcegraph/issue/CODY-3059/give-user-the-ability-to-delete-individual-chats-instead-of-just
IMPORTANT: The clearHistory method signature has changed to accept an optional chatID parameter instead of tree-item, as we no longer use tree-view for chat history.
Test plan
Changelog
Chat: Added ability to remove individual chats from chat history in the sidebar.