bug: agentop uninstall leaves Codex routed to the stopped proxy

オープン 初心者向け
#1,881 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, go
領域
cli

調査の方向性

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 の本文から書いたものです。

説明

bug laptop

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)

  1. agentop configure codex enable. This writes HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy and SSL_CERT_FILE to ~/.codex/.env (codexWanted, cmd/agentop/cmd_codex.go:219-241).
  2. agentop uninstall --yes.
  3. ~/.codex/.env still 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分
マージ済み PR(30日)
257

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rossoctl/cortex のほかの issue

rossoctl/cortex の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。