sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.53k stars 261 forks source link

chat: add ability to remove individual chats from history #5114

Closed abeatrix closed 1 month ago

abeatrix commented 1 month ago

CLOSE https://linear.app/sourcegraph/issue/CODY-3059/give-user-the-ability-to-delete-individual-chats-instead-of-just

image

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

  1. In the sidebar chat, open the history tab
  2. verify there is a trash icon next to each individual chat
  3. clicking on the trash icon would remove the chat
  4. clicking on the chat history item would open the chat from history

delete-chat

Changelog

Chat: Added ability to remove individual chats from chat history in the sidebar.