Skip to content

fix(chat): Hide copy button in non-chat mode #7895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 14, 2025
Merged

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented May 9, 2025

This commit hides the copy button in the assistant message cell when not in chat mode. The copy button is only relevant when the assistant is responding to a chat-based query. This change ensures that the copy button is not displayed when the assistant is used for other purposes, such as edit or search or agent.

Test plan

Use non chat mode and confirm the copy button is not showing up

This commit hides the copy button in the assistant message cell when not in chat mode.
The copy button is only relevant when the assistant is responding to a chat-based query.
This change ensures that the copy button is not displayed when the assistant is used for other purposes, such as edit or search or agent.
@abeatrix abeatrix requested review from julialeex and a team May 9, 2025 17:56
@abeatrix abeatrix enabled auto-merge (squash) May 9, 2025 18:04
@abeatrix abeatrix marked this pull request as draft May 13, 2025 05:16
auto-merge was automatically disabled May 13, 2025 05:16

Pull request was converted to draft

@abeatrix abeatrix marked this pull request as ready for review May 14, 2025 19:26
Copy link

‼️ Hey @sourcegraph/cody-security, please review this PR carefully as it introduces the usage of an unsafe_ function or abuses PromptString.

@abeatrix abeatrix merged commit d5209d1 into main May 14, 2025
18 of 21 checks passed
@abeatrix abeatrix deleted the bee/hide-copy-btn branch May 14, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants