Skip to content

feat(apps): choose installers and manage CLI copies by channel - #9781

Open
iSanae233 wants to merge 1 commit into
farion1231:mainfrom
iSanae233:feat/apps-install-commands
Open

iSanae233 wants to merge 1 commit into
farion1231:mainfrom
iSanae233:feat/apps-install-commands

Conversation

@iSanae233

@iSanae233 iSanae233 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Human Note / 本人说明

为 CC Switch 的应用提供来自官方的安装命令,和官网直达的下载 App 链接或说明
支持搜索需要安装的应用,默认按字母 A-Z 排序

Summary / 概述

Install opens a searchable Install Commands dialog focused on the selected app. It shows commands for the current platform, an official site link, and channel-specific documentation where available.

  • Keep the catalog available for installed apps and show the detected channels above the commands. Support Copy on every command and Install for supported curl and Homebrew methods on macOS and Linux. Windows and WSL use copyable commands.
  • Include Claude Desktop and WorkBuddy. WorkBuddy and MiniMax Code have separate China and international site links. The Apps list defaults to alphabetical order, honors saved drag order, and offers Sort by name in the list header.
  • Show each detected installation's source and version separately. Users can enable or disable a CLI copy in CC Switch, choose or clear a default, and open the install path and uninstall controls in Manage. Desktop installations that manage their own updates show their version and source. Codex's bundled CLI is available as a choice or fallback when verified.
  • Show all eligible targets in batch update confirmation. Continue with verified targets if another tool's preflight fails, check Node requirements for each npm copy, and show each version update once. Recheck the selected launcher and command before executing a confirmed update.
  • Keep OpenCode 1 and 2 on their matching package channels, with separate uninstall commands and platform-specific manual update guidance. WSL automatic updates require a verified npm launcher.

Related Issue / 关联 Issue

Screenshots / 截图

修改前
BetterShot_2026-11-20-18-02-02339

修改后

BetterShot_2026-11-22-21-00-24397 BetterShot_2026-11-22-21-00-31398 BetterShot_2026-11-22-21-00-41399
BetterShot_2026-11-22-21-01-17400.1.mp4

Validation / 验证

  • On 8178e490, 150 focused frontend tests and 210 Rust command tests passed. Coverage includes the install catalog, source selection and fallback, mixed-channel batch confirmation, partial preflight failure, and per-copy Node requirements.
  • Codex Security completed the scan of the local changes applied in 8178e490 with 0 reportable findings.
  • Built the macOS arm64 QA app from 8178e490 for manual testing and screenshot updates. Automated installation and upgrade checks use fixtures, including Windows and WSL cases.

Checklist / 检查清单

  • pnpm typecheck passes / 通过 TypeScript 类型检查
  • pnpm format:check passes / 通过代码格式检查
  • cargo clippy passes (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)
  • Updated i18n files if user-facing text changed / 如修改了用户可见文本,已更新国际化文件

@github-actions github-actions Bot added frontend Frontend (React/TypeScript) backend Backend (Rust/Tauri) i18n Internationalization (zh/en/ja) labels Nov 20, 2026
@iSanae233
iSanae233 force-pushed the feat/apps-install-commands branch 5 times, most recently from 7b7f6d4 to c38099e Compare November 22, 2026 09:36
@github-actions github-actions Bot added the dependencies Dependency updates label Nov 22, 2026
@iSanae233
iSanae233 force-pushed the feat/apps-install-commands branch from c38099e to 8178e49 Compare November 22, 2026 12:45
@iSanae233 iSanae233 changed the title feat(apps): let users choose how to install applications feat(apps): choose installers and manage CLI copies by channel Nov 22, 2026
@iSanae233
iSanae233 force-pushed the feat/apps-install-commands branch from 8178e49 to 2857329 Compare November 22, 2026 13:51
@funkpopo

Copy link
Copy Markdown
Collaborator

Nice UI design

但这个变动我暂时不会批准,优先基于 npm 安装有助于统一管理,对于其它安装方式我们需要调研一段时间后再决定

@iSanae233

Copy link
Copy Markdown
Contributor Author

感谢 @funkpopo 的 Review。

对于独立 CLI 优先走 npm 会更便于统一管理。
但对已经从官网下载桌面版的用户,我希望 CC Switch 能识别这个安装,显示来源和版本,让桌面 App 自行管理更新。

我在 macOS 上复测了 v4.0.39:官方 ChatGPT 桌面版已安装,内置 Codex CLI 也能读到版本,但 Apps 页仍显示「未安装」,并提示通过 npm 安装。这部分和 #8468 的想法一致。

官方(v4.0.39)显示
BetterShot_2026-11-22-23-48-47405

该 PR 的显示
BetterShot_2026-11-22-23-49-26406

你觉得可以先单独做官方桌面版的安装状态和版本展示吗?现有 npm 安装流程可以保留,其他渠道的应用内安装、升级和卸载等调研后再讨论。

@funkpopo

Copy link
Copy Markdown
Collaborator

@iSanae233 Cool, 可以优先做应用桌面端接入的兼容,但暂时不要涉及安装,可以参考已有的 open PR #9893 来提交单个应用的兼容,因为还需要考虑到用量统计等场景,而不是仅限于安装和版本显示

请暂时不要关闭这个 PR,我们后续或许会直接合并关于您对于 UI 的改动,和官方安装命令的引入

@iSanae233
iSanae233 force-pushed the feat/apps-install-commands branch 2 times, most recently from abe22fe to 3a448a4 Compare November 23, 2026 17:18
Offer a searchable, platform-specific install catalog with official
sites, channel documentation and commands. Show detected channels
alongside the catalog and keep direct install for supported methods.

Display installed versions by channel, with per-copy selection and
uninstall. Keep desktop updates in the official app, and let users
clear an unavailable CLI default even when only one copy remains.

Preview all targets before confirming a mixed batch upgrade. Keep
healthy targets when a tool's preflight fails, check Node requirements
for each npm copy, and avoid duplicate update notices.

Show the chosen copy's full path during uninstall confirmation and
list the sources and versions that remain afterward. Keep plugin
preflight and execution aligned on the CLI preference and desktop
fallback.

Co-Authored-By: GPT-6.2 Sol
@iSanae233
iSanae233 force-pushed the feat/apps-install-commands branch from 3a448a4 to e662eb6 Compare November 23, 2026 17:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend (Rust/Tauri) dependencies Dependency updates frontend Frontend (React/TypeScript) i18n Internationalization (zh/en/ja)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants