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

Offen Anfängerfreundlich
#1,244 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
79/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
cli, tooling

Rechercherichtung

Lies cli/src/contexts/tools/domain/profiles/codex/profile.ts und vergleiche dessen Installationsfunktionen mit cli/src/contexts/tools/domain/profiles/codex/build.ts, wo Befehle bereits nicht unterstützt werden. Aktualisiere das Codex-Profil und passe die Mapping-Erwartungen in den aufgeführten Unit-Tests für Befehle, Inhalte und Profile an. Fertig ist die Arbeit, wenn die Installation keine Befehlsfunktion mehr ankündigt oder schreibt, die Erkennung einen von Codex erstellten Pfad verwendet und die Codex-Profiltests bestehen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
481
Forks
45
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
91

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ai-driven-dev/framework

Alle Issues in ai-driven-dev/framework

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.