问题现象:Codex Mac App 在远端更换账号后连接远端 remote session 时显示:Your access token could not be refreshed because you have since logged out or signed in to another account. Please sign in again. 然而此时远端ssh codex cli里的正常使用。
调试过程:让codex上网查找了相同情况的case,确认了app remote session是在远端拉起单独的codex remote server,此server与codex cli不同,端口是9234;然后发现远端codex remote server是旧账号的,并且新账号对应的codex remote server试图启动但是因为addr in use失败了。
解决方案:先关闭mac app,然后远端ssh上执行pkill -u “$USER” -f “codex.*app-server”,然后重启mac app,然后就正常使用了。
1 个帖子 - 1 位参与者