@Augus221Codex CLI code-mode-host 无法调用修复 中发帖

问题现象
Codex CLI 重新安装后,工具执行层和并行子代理无法正常读取仓库,典型报错包括:
failed to spawn code-mode host /opt/homebrew/bin/codex-code-mode-host: No such file or directory (os error 2)

后续曾临时创建过错误链接:
/opt/homebrew/bin/codex-code-mode-host -> /opt/homebrew/bin/codex

该错误链接会把 codex-code-mode-host 当作 Codex TUI 主程序启动,进一步导致:
code-mode host stderr: Error: stdin is not a terminal
code-mode host exited during handshake

结论:这不是模...