bug: agentop uninstall leaves Codex routed to the stopped proxy
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 cmd/agentop/cmd_uninstall.go 中 planUninstall 附近的代码,以及 cmd/agentop/cmd_codex.go 中 Codex 禁用流程;检查现有的 unroute 步骤如何处理 needsCortexDir 和 daemon 重启。按描述更新 uninstall 用法文本和 docs/laptop-service.md。完成标准是:uninstall 删除 Codex 代理设置,在禁用模式下重启其 daemon,并且两份文档都提到 Codex。
由索引模型根据 Issue 内容生成。
描述
Problem
agentop uninstall does not remove the Cortex settings from Codex. After uninstall, Codex still sends every request to localhost:47600, and each request fails with "connection refused".
Reproduction (main at 676557d35, by reading the code)
agentop configure codex enable. This writesHTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxyandSSL_CERT_FILEto~/.codex/.env(codexWanted,cmd/agentop/cmd_codex.go:219-241).agentop uninstall --yes.~/.codex/.envstill has all five keys.
With --purge, uninstall also deletes ~/.cortex, which includes the CA file that SSL_CERT_FILE names. cortexDirNeededBy does not see the Codex keys.
Cause
planUninstall (cmd/agentop/cmd_uninstall.go:359-366) has steps for Claude Code, OpenCode, Bob, the Bob and Pi shells, the Pi extension and the service. It has no Codex step. No line in cmd_uninstall.go names Codex. The usage text (cmd_uninstall.go:27) and docs/laptop-service.md:1142 also do not name Codex.
docs/agents/codex.md:100 says that Codex stops working when Cortex stops while Codex is still routed.
Fix
Add a planUnrouteCodex step that calls the existing planCodexDisable and applyCodexDisable, then restarts the Codex daemon as disable does. Make it set needsCortexDir as the other unroute steps do. Add Codex to the usage text and to docs/laptop-service.md.
Impact if not fixed
Codex stops working after every uninstall, until the user edits ~/.codex/.env by hand.
- 主要语言
- Go
- 星标
- 26
- 派生
- 46
- 平均合并
- 9 小时 55 分钟
- 30 天内合并 PR
- 257
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rossoctl/cortex 的其他 Issue
-
bug laptop
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
feat: Do not count a removed session's cost again when an import brings it back可能已有人在做 @huang195 今天认领。 未关闭enhancement
rossoctl/cortex#1885 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug: The JWT bypass matches a cleaned path but forwards the raw path, so /mcp/../healthz skips validation可能已有人在做 @evaline-ju 今天认领。 未关闭bug
rossoctl/cortex#1884 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 78/100
维护者通常 1 天内回复
-
bug laptop
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
Containerpak/cpak#93 ·
-
bug triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
router-for-me/CLIProxyAPI#7607 ·
维护者通常 1 天内回复
-
enhancement ui/ux
难度 2/5 1-3 小时 新手友好度 82/100
myNameArnav/lex#52 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100