Skip to content

docs: add bilingual app installation guide#3

Merged
JNHFlow21 merged 1 commit into
mainfrom
codex/bilingual-app-install
Jul 23, 2026
Merged

docs: add bilingual app installation guide#3
JNHFlow21 merged 1 commit into
mainfrom
codex/bilingual-app-install

Conversation

@JNHFlow21

Copy link
Copy Markdown
Owner

Summary

  • add synchronized English and Simplified Chinese READMEs with a language switch at the top
  • replace the long AI installation prompt with one verified Alpha source-install command
  • add a guarded installer that installs the pipx CLI, builds the macOS app, creates only a neutral default config, and does not adopt or reconcile MCPs
  • document the correct mature distribution target: signed/notarized GitHub Releases plus Homebrew Cask, rather than npm/NPX
  • add bilingual/install documentation regression checks and an installer CI syntax gate

Verification

  • isolated HOME/PIPX full installer run produced CLI 0.2.0, the app bundle, and neutral config
  • 72 Python unit tests passed
  • 1 integration test passed
  • Swift/Xcode Release build completed through the isolated installer
  • privacy scan passed
  • English README strict audit: 100/100
  • Chinese README strict audit: 100/100

@JNHFlow21
JNHFlow21 merged commit 0851775 into main Jul 23, 2026
7 checks passed
@JNHFlow21
JNHFlow21 deleted the codex/bilingual-app-install branch July 23, 2026 06:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b537bba88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install.sh
xcodebuild -version >/dev/null 2>&1 || fail "Select a full Xcode installation with xcode-select."

print "Installing Agent Switch CLI..."
if ! pipx install --force "$ROOT"; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Install with the Python version that was checked

The prerequisite test validates the python3 found on the shell PATH, but pipx install selects pipx's own default interpreter unless --python is supplied. On Macs where pipx is backed by an older Python while python3 resolves to 3.11+, this check passes and the subsequent installation fails because the project requires Python 3.11. Pass the validated interpreter to both pipx install invocations.

Useful? React with 👍 / 👎.

Comment thread scripts/install.sh
Comment on lines +31 to +32
PIPX_BIN_DIR="$(pipx environment --value PIPX_BIN_DIR)"
CLI="$PIPX_BIN_DIR/agent-switch"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the installed CLI discoverable by the app

When a user sets PIPX_BIN_DIR to a nondefault location, the installer successfully validates $PIPX_BIN_DIR/agent-switch here, but the installed app cannot use it: AgentSwitchService.findCLIPath searches only AGENT_SWITCH_CLI, ~/.local/bin, and two system paths. The app then falls back to python -m agent_switch, which is not installed into that system Python by this installer, so the launched app is nonfunctional. Either install/link the CLI in a path the app searches or pass/store the resolved CLI path for the app.

Useful? React with 👍 / 👎.

Comment thread README.md
agent-switch --version -> agent-switch 0.2.0
agent-switch doctor --strict -> exits successfully with no managed drift
Native app -> opens from ~/Applications/Agent Switch.app
agent-switch --version -> agent-switch 0.2.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document how to expose the pipx executable on PATH

For a normal new pipx installation, the executable is placed in ~/.local/bin, which is commonly absent from the current shell PATH. The installer verifies it through its absolute path, but the documented expected result and immediate next commands use bare agent-switch; those commands therefore fail in the same terminal after following brew install python pipx. Restore the pipx ensurepath/PATH guidance or show the resolved CLI path for these commands.

Useful? React with 👍 / 👎.

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