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: Cody chat buttons are visible in Cody views only #5106

Closed abeatrix closed 1 month ago

abeatrix commented 1 month ago

CLOSE https://linear.app/sourcegraph/issue/CODY-3141/new-chat-and-chat-history-icons-appearing-in-various-places-in-vs-code

Fixed an issue where buttons to start a new Cody chat and show Chat History were visible in non-Cody views.

Also removed the cody.hasChatHistory when clause since those are no longer being set and is invokable via the chat UI instead of sidebar tree views.

Test plan

Log into Cody as PLG users and open Chat and a new chat in Editor to verify the History button and New Chat button only shows up in the Editor Chat Panel:

Screenshot 2024-08-05 at 6 22 58 AM

Verify the same thing with Enterprise users:

Screenshot 2024-08-05 at 6 22 21 AM

Open other extension panels and verify those buttons are not showing up in non-Cody panels:

image

Changelog

Fixed an issue where buttons to start a new Cody chat and show Chat History were visible in non-Cody views.