lovcode icon indicating copy to clipboard operation
lovcode copied to clipboard

无法启动 Claude Code terminal

Open Zane-SI opened this issue 11 months ago • 1 comments

无法启动 Claude Code terminal

Image

Zane-SI avatar Jan 06 '26 04:01 Zane-SI

已修复,将在 v0.24.1 发布。

问题原因:PTY 使用非登录 shell 启动,导致用户的 PATH 环境变量(包含 claude 命令路径)未被加载。

修复内容:

  • PTY 使用 -ilc 参数启动 login shell,确保加载 ~/.zshrc / ~/.bashrc 中的环境变量
  • 命令退出后自动回退到默认 shell
  • 默认 shell 从 bash 改为 zsh(macOS 默认)

请更新到 v0.24.1 后测试。

MarkShawn2020 avatar Jan 07 '26 07:01 MarkShawn2020