diff --git a/openless-all/app/src/pages/settings/CodingAgentSection.tsx b/openless-all/app/src/pages/settings/CodingAgentSection.tsx index 6950f832..feaf892d 100644 --- a/openless-all/app/src/pages/settings/CodingAgentSection.tsx +++ b/openless-all/app/src/pages/settings/CodingAgentSection.tsx @@ -1,10 +1,9 @@ -// 高级 → Less Computer 配置:启用开关、按住说话快捷键、Claude / OpenCode、模型 / 权限模式 / 工作目录。 +// 高级 → Less Computer 配置:启用开关、后端(Claude / OpenCode)、模型 / 权限模式 / 工作目录。 +// 「按住说话键」在 通用 → 快捷键 里配置(见 ShortcutsSection),这里不再重复。 // 配置经 UserPreferences 持久化;启用后 coordinator 才注册热键。 import { useTranslation } from 'react-i18next' -import { ShortcutRecorder } from '../../components/ShortcutRecorder' import { detectOS } from '../../components/WindowChrome' -import { defaultLessComputerShortcut } from '../../lib/hotkey' import type { CodingAgentPermissionMode, CodingAgentProviderId } from '../../lib/types' import { useHotkeySettings } from '../../state/HotkeySettingsContext' import { Card } from '../_atoms' @@ -48,28 +47,7 @@ export function CodingAgentSection() { {enabled && ( <> - - {prefs.codingAgentVoiceHotkey ? ( - { - await savePrefs({ ...prefs, codingAgentVoiceHotkey: binding }) - }} - onDisable={async () => { - await savePrefs({ ...prefs, codingAgentVoiceHotkey: null }) - }} - /> - ) : ( - - )} - - + {/* 「按住说话键」配置已挪到 通用 → 快捷键,避免和这里重复。本区只留后端/模型等高级项。 */}