lovcode
lovcode copied to clipboard
无法启动 Claude Code terminal
无法启动 Claude Code terminal
已修复,将在 v0.24.1 发布。
问题原因:PTY 使用非登录 shell 启动,导致用户的 PATH 环境变量(包含 claude 命令路径)未被加载。
修复内容:
- PTY 使用
-ilc参数启动 login shell,确保加载~/.zshrc/~/.bashrc中的环境变量 - 命令退出后自动回退到默认 shell
- 默认 shell 从 bash 改为 zsh(macOS 默认)
请更新到 v0.24.1 后测试。