Skip to content

fix(linux): 屏蔽 Less Computer / Claude 控制台入口 - #967

Open
aeoform wants to merge 1 commit into
Open-Less:betafrom
aeoform:fix/less-computer-macos-only
Open

fix(linux): 屏蔽 Less Computer / Claude 控制台入口#967
aeoform wants to merge 1 commit into
Open-Less:betafrom
aeoform:fix/less-computer-macos-only

Conversation

@aeoform

@aeoform aeoform commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

背景

Less Computer(语音 Agent)功能目前仅在 macOS 后端注册热键和创建窗口,Windows/Linux 不生效。为避免 Linux 用户看到无法使用的功能入口,本 PR 在设置页屏蔽相关入口。

改动

文件 修改
openless-all/app/src/pages/settings/CodingAgentSection.tsx os === 'win'os === 'win' || os === 'linux'
openless-all/app/src/pages/settings/tabs.tsx AdvancedTab 中两个 Section 从 os !== 'win' 改为 os === 'mac'

已有门控

  • Rust 后端:窗口创建/show/hide 使用 #[cfg(target_os = "macos")],非 macOS 为 no-op stub
  • Rust 热键:非 macOS 直接 early return
  • 前端打包TAURI_ENV_PLATFORM='linux'LESS_COMPUTER_BUNDLED = false,面板 chunk 不进入构建产物
  • 快捷键设置页:语音快捷键行已用 os === 'mac' 门控

验证

  • Linux 构建产物中不包含 less-computer JS chunk
  • Rust 编译通过

Less Computer 功能仅 macOS 开放(后端只在 macOS 注册热键/创建窗口),
Linux 设置页不再渲染 CodingAgentSection 和 ClaudeConsoleSection,
避免用户看到无法使用的功能。

- CodingAgentSection: 原仅隐藏 Windows,现同时隐藏 Linux
- tabs.tsx AdvancedTab: os !== 'win' 改为 os === 'mac'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant