Repository navigation
fix(cli): 支持发现当前 ChatGPT 桌面端内置 Codex - #828
Merged
Merged
Conversation
|
🚀 Released in v3.14.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
codex可执行文件时,优先发现当前ChatGPT.app在系统级和用户级 Applications 目录中的内置二进制Codex.app的兼容路径,并更新 app-server 启动失败提示原因
当前 ChatGPT 桌面端会捆绑独立的 Codex 二进制;当
codex不在 PATH 上时,原有回退只识别旧Codex.app,导致 setup 可用性检查和 worker 启动无法发现当前安装。影响面
resolveCommand路径,setup 可用性检查和 worker 启动会复用同一解析结果process.platform === 'darwin' && cmd === 'codex'时生效;Linux 和其它 CLI 不受影响cliPathOverride的优先级保持不变;PTY/Tmux、话题/群会话、adopt/restore 和 sandbox 路径均无行为变化验证
npm exec --yes [email protected] -- pnpm run build:通过./node_modules/.bin/vitest run --project unit test/resolve-command-shell-parse.test.ts test/cli-availability.test.ts:2 个测试文件、17 个用例全部通过