fix(cli): codex profile maps commands to .codex/commands, which Codex never reads

Đang mở Phù hợp với người mới
#1,244 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
79/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ệ
typescript
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Đọc cli/src/contexts/tools/domain/profiles/codex/profile.ts và so sánh các khả năng cài đặt của tệp này với cli/src/contexts/tools/domain/profiles/codex/build.ts, nơi các lệnh vốn đã không được hỗ trợ. Cập nhật hồ sơ Codex và điều chỉnh các kỳ vọng ánh xạ trong những bài kiểm thử đơn vị về lệnh, nội dung và hồ sơ được liệt kê. Hoàn tất khi quá trình cài đặt không còn quảng bá hoặc ghi khả năng lệnh, việc phát hiện sử dụng đường dẫn do Codex tạo và các bài kiểm thử hồ sơ Codex đều đạt.

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

Mô tả

Description

The Codex install profile declares a commands capability that writes to .codex/commands/aidd/<phase>/<name>.codex.md, and uses .codex/commands as its signalDir. Codex CLI reads no project command directory: custom prompts live only in ~/.codex/prompts/, and they are deprecated in favour of skills (docs).

The build side already agrees: cli/src/contexts/tools/domain/profiles/codex/build.ts sets commands: { supported: false } in both build modes. The two layers contradict each other.

Affected file(s)
  • cli/src/contexts/tools/domain/profiles/codex/profile.ts (commands: new CommandsCapability(...), the .codex/commands/aidd/$2/$3 mapping, signalDir)
  • cli/tests/contexts/tools/domain/profiles/codex/{commands,content,profile}.unit.test.ts, which pin that mapping
Expected behaviour

Codex has no commands capability on install, like Antigravity. Detection relies on a path Codex actually creates (.codex/, AGENTS.md is not a signal).

Observed behaviour

Any command a plugin ships would be installed into .codex/commands/, where Codex never loads it. No plugin ships a command today (find plugins -path "*/commands/*" -name "*.md" returns 0), so this is dead code now and a silent no-op later.

AI tool

Codex CLI

Additional context

Found while rebuilding 07-command-generate (#1243), whose writer refuses codex for the same reason.

Ngôn ngữ chính
TypeScript
Star
481
Fork
45
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
91

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 ai-driven-dev/framework

Tất cả issue của ai-driven-dev/framework

Issue tương tự

Thêm issue về TypeScript

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.