Skip to content

fix(terminal): resolve Claude launcher path on Unix#2407

Open
xpfo-go wants to merge 1 commit intofarion1231:mainfrom
xpfo-go:fix/2402-linux-claude-launcher-path
Open

fix(terminal): resolve Claude launcher path on Unix#2407
xpfo-go wants to merge 1 commit intofarion1231:mainfrom
xpfo-go:fix/2402-linux-claude-launcher-path

Conversation

@xpfo-go
Copy link
Copy Markdown
Contributor

@xpfo-go xpfo-go commented Apr 28, 2026

Summary / 概述

  • Add shared Unix CLI search paths for Claude launcher scripts so provider terminals can find claude when GUI-launched PATH is minimal.
  • Resolve an absolute claude executable from current PATH plus common install locations such as ~/.local/bin, Volta, nvm/fnm, Homebrew, and system bin directories.
  • Preserve normal shell startup after Claude exits instead of reopening bash --norc --noprofile.

Related Issue / 关联 Issue

Fixes #2402

Screenshots / 截图

Not applicable; backend terminal-launch behavior only.

Before / 修改前 After / 修改后
N/A N/A

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 / 如修改了用户可见文本,已更新国际化文件

Test Plan / 测试计划

  • pnpm typecheck && pnpm format:check && pnpm test:unit
  • cd src-tauri && cargo fmt --check && cargo clippy && cargo test
  • Local PATH smoke test: claude fails with stripped PATH and succeeds when common CLI paths are injected.
@farion1231
Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ 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".

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

Labels

None yet

2 participants