Skip to content

Commit

Permalink
fix: Hide switch intent button for Cody Pro users
Browse files Browse the repository at this point in the history
The switch intent button is now hidden for Cody Pro users while remaining visible for non-Pro users when the experimental one box feature is enabled. This change helps streamline the interface for Pro users.

## Test plan

Manual testing to verify:
- Switch intent button is hidden for Cody Pro users
- Switch intent button remains visible for non-Pro users when experimental one box is enabled
  • Loading branch information
PriNova committed Feb 7, 2025
1 parent a7f12f7 commit 9b205fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/webviews/chat/Transcript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ const TranscriptInteraction: FC<TranscriptInteractionProps> = memo(props => {
intent={manuallySelectedIntent || intentResults?.intent}
manuallySelectIntent={setManuallySelectedIntent}
/>
{experimentalOneBoxEnabled && (
{experimentalOneBoxEnabled && !userInfo.isCodyProUser && (
<SwitchIntent
intent={humanMessage.intent}
manuallySelected={!!humanMessage.manuallySelectedIntent}
Expand Down

0 comments on commit 9b205fb

Please sign in to comment.