如果说你的手机连接电脑codex的时候 遇到了下面这种一直离线的问题,输入下面这段提示词到你的电脑codex新对话里面,相信我 %99 会解决好这个问题,因为我一直捣鼓一小时才搞好这个头疼问题:
1.检查 Codex 版本和远程控制状态 查看Codex App 是否在运行,查看 codex --version,查看是否存在~/.codex/packages/ standalone/current/codex,并运行 codex remote-control start --json 看具体报错。 2.如果报错类似 managed standalone Codex install not found,请安装官方standalone: curl-fsSL
chatgpt.com sh 3.如果网络需要代理,不要只依赖系统代理。请检查 系统代理端口,比如127.0.0.1:7890。如果直接访问 chatgpt.com 超时,请显式用 HTTP_PROXY、 HTTPS_PROXY、ALL_PROXY 启动 remote-control。 4.安装完成后,停止并重新启动远程控制服务: codex remote-control stop --json codex remote-control start --json 5.最后确认输出里 status 是 connected, remoteControlEnabled 是 true, managedCodexPath 指向~/.codex/packages/standalone/current/codex, appServerVersion 是新版。 如果还是connecting 或offline,请查看~/.codex/ app-server-daemon/app-server.stderr.log,重点找 websocket timeout, connection refused, proxy、 chatgpt.com 相关错误,并继续修复到 connected 为止