diff --git a/openless-all/app/src/pages/settings/CodingAgentSection.tsx b/openless-all/app/src/pages/settings/CodingAgentSection.tsx index 0ddeb61a..9ed07564 100644 --- a/openless-all/app/src/pages/settings/CodingAgentSection.tsx +++ b/openless-all/app/src/pages/settings/CodingAgentSection.tsx @@ -89,7 +89,9 @@ export function CodingAgentSection() { } } - if (os === 'win') return null + // Less Computer 仅 macOS 开放:后端只在 macOS 注册热键/创建窗口, + // Windows / Linux 不渲染配置入口,避免用户看到无法使用的功能。 + if (os === 'win' || os === 'linux') return null if (!prefs) { return ( diff --git a/openless-all/app/src/pages/settings/tabs.tsx b/openless-all/app/src/pages/settings/tabs.tsx index 362b01e8..4c0fb051 100644 --- a/openless-all/app/src/pages/settings/tabs.tsx +++ b/openless-all/app/src/pages/settings/tabs.tsx @@ -115,8 +115,9 @@ export function AdvancedTab() { return ( <> - {showDesktopAdvanced && os !== 'win' && } - {showDesktopAdvanced && os !== 'win' && } + {/* Less Computer / Claude 控制台仅 macOS 开放:后端只在 macOS 注册热键/创建窗口 */} + {showDesktopAdvanced && os === 'mac' && } + {showDesktopAdvanced && os === 'mac' && } {showDebugTools && }