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

未关闭 适合新手
#1,244 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
79/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli, tooling

调研方向

阅读 cli/src/contexts/tools/domain/profiles/codex/profile.ts,并将其安装功能与 cli/src/contexts/tools/domain/profiles/codex/build.ts 进行比较,后者已不支持命令。更新 Codex 配置,并调整所列命令、内容和配置单元测试中的映射预期。完成标准:安装不再宣称或写入命令功能,检测使用 Codex 创建的路径,并且 Codex 配置测试通过。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
481
派生
45
平均合并
1 天 13 小时
30 天内合并 PR
91

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ai-driven-dev/framework 的其他 Issue

查看 ai-driven-dev/framework 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。