From f86ae46e7879d0a5281c2bfb5d1224f47d77deed Mon Sep 17 00:00:00 2001
From: aeoform <2790848120@qq.com>
Date: Wed, 19 Aug 2026 12:00:11 +0800
Subject: [PATCH] =?UTF-8?q?fix(linux):=20=E5=B1=8F=E8=94=BD=20Less=20Compu?=
=?UTF-8?q?ter=20/=20Claude=20=E6=8E=A7=E5=88=B6=E5=8F=B0=E5=85=A5?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Less Computer 功能仅 macOS 开放(后端只在 macOS 注册热键/创建窗口),
Linux 设置页不再渲染 CodingAgentSection 和 ClaudeConsoleSection,
避免用户看到无法使用的功能。
- CodingAgentSection: 原仅隐藏 Windows,现同时隐藏 Linux
- tabs.tsx AdvancedTab: os !== 'win' 改为 os === 'mac'
---
openless-all/app/src/pages/settings/CodingAgentSection.tsx | 4 +++-
openless-all/app/src/pages/settings/tabs.tsx | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/openless-all/app/src/pages/settings/CodingAgentSection.tsx b/openless-all/app/src/pages/settings/CodingAgentSection.tsx
index 0ddeb61a8..9ed075644 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 362b01e86..4c0fb0519 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 && }
>