👆 fix: Web Search and Code Interpreter Toggle Cursor Hover Behavior (#11614)

This commit is contained in:
Dustin Healy 2026-02-04 13:57:25 +01:00 committed by GitHub
parent 6274268411
commit 2cef9368ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -14,6 +14,7 @@ import type { AgentForm } from '~/common';
import { useLocalize, useCodeApiKeyForm } from '~/hooks'; import { useLocalize, useCodeApiKeyForm } from '~/hooks';
import ApiKeyDialog from './ApiKeyDialog'; import ApiKeyDialog from './ApiKeyDialog';
import { ESide } from '~/common'; import { ESide } from '~/common';
import { cn } from '~/utils';
export default function Action({ authType = '', isToolAuthenticated = false }) { export default function Action({ authType = '', isToolAuthenticated = false }) {
const localize = useLocalize(); const localize = useLocalize();
@ -73,7 +74,10 @@ export default function Action({ authType = '', isToolAuthenticated = false }) {
<label <label
id="execute-code-label" id="execute-code-label"
htmlFor="execute-code-checkbox" htmlFor="execute-code-checkbox"
className="form-check-label text-token-text-primary cursor-pointer" className={cn(
'form-check-label text-token-text-primary',
(runCodeIsEnabled || isToolAuthenticated) && 'cursor-pointer',
)}
> >
{localize('com_ui_run_code')} {localize('com_ui_run_code')}
</label> </label>

View file

@ -14,6 +14,7 @@ import type { AgentForm } from '~/common';
import { useLocalize, useSearchApiKeyForm } from '~/hooks'; import { useLocalize, useSearchApiKeyForm } from '~/hooks';
import ApiKeyDialog from './ApiKeyDialog'; import ApiKeyDialog from './ApiKeyDialog';
import { ESide } from '~/common'; import { ESide } from '~/common';
import { cn } from '~/utils';
export default function Action({ export default function Action({
authTypes = [], authTypes = [],
@ -81,7 +82,10 @@ export default function Action({
<label <label
id="web-search-label" id="web-search-label"
htmlFor="web-search-checkbox" htmlFor="web-search-checkbox"
className="form-check-label text-token-text-primary cursor-pointer" className={cn(
'form-check-label text-token-text-primary',
(webSearchIsEnabled || isToolAuthenticated) && 'cursor-pointer',
)}
> >
{localize('com_ui_web_search')} {localize('com_ui_web_search')}
</label> </label>