fix(linux): 屏蔽 Less Computer / Claude 控制台入口 - #967
Open
aeoform wants to merge 1 commit into
Open
Conversation
Less Computer 功能仅 macOS 开放(后端只在 macOS 注册热键/创建窗口), Linux 设置页不再渲染 CodingAgentSection 和 ClaudeConsoleSection, 避免用户看到无法使用的功能。 - CodingAgentSection: 原仅隐藏 Windows,现同时隐藏 Linux - tabs.tsx AdvancedTab: os !== 'win' 改为 os === 'mac'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Less Computer(语音 Agent)功能目前仅在 macOS 后端注册热键和创建窗口,Windows/Linux 不生效。为避免 Linux 用户看到无法使用的功能入口,本 PR 在设置页屏蔽相关入口。
改动
openless-all/app/src/pages/settings/CodingAgentSection.tsxos === 'win'→os === 'win' || os === 'linux'openless-all/app/src/pages/settings/tabs.tsxos !== 'win'改为os === 'mac'已有门控
#[cfg(target_os = "macos")],非 macOS 为 no-op stubTAURI_ENV_PLATFORM='linux'时LESS_COMPUTER_BUNDLED = false,面板 chunk 不进入构建产物os === 'mac'门控验证