bug: agentop uninstall leaves Codex routed to the stopped proxy

Đang mở Phù hợp với người mới
#1,881 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, go
Lĩnh vực
cli

Hướng nghiên cứu

Đọc cmd/agentop/cmd_uninstall.go quanh planUninstall và luồng vô hiệu hóa Codex trong cmd/agentop/cmd_codex.go; kiểm tra cách các bước unroute hiện có xử lý needsCortexDir và việc khởi động lại daemon. Cập nhật văn bản hướng dẫn sử dụng uninstall và docs/laptop-service.md như mô tả. Hoàn tất khi uninstall xóa các cài đặt proxy Codex, khởi động lại daemon của nó ở chế độ vô hiệu hóa và cả hai tài liệu đều nhắc đến Codex.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
26
Fork
46
Merge trung bình
9 giờ 55 phút
Pull request đã merge (30 ngày)
257

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rossoctl/cortex

Tất cả issue của rossoctl/cortex

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.