Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(media-use): explain the codex alias-vs-PATH gotcha in the unavailable message (#2042)
Miguel Ángel80271863d345
diff --git a/skills-manifest.json b/skills-manifest.jsonindex 06ce153374..3c2a3a4260 100644--- a/skills-manifest.json+++ b/skills-manifest.json@@ -46,7 +46,7 @@"files": 10},"media-use": {- "hash": "ffd883ca5d722a3b",+ "hash": "b982d0f7c710bf23","files": 101},"motion-graphics": {diff --git a/skills/media-use/scripts/lib/codex-provider.mjs b/skills/media-use/scripts/lib/codex-provider.mjsindex cf26a6163f..f64fc36282 100644--- a/skills/media-use/scripts/lib/codex-provider.mjs+++ b/skills/media-use/scripts/lib/codex-provider.mjs@@ -62,7 +62,10 @@ function codexUnavailableReason() {const which = process.platform === "win32" ? "where" : "which";execFileSync(which, ["codex"], { stdio: ["ignore", "ignore", "ignore"], timeout: 5000 });} catch {- return "codex CLI not on PATH";+ // A shell alias (e.g. `codex → /Applications/Codex.app/...`) is NOT enough:+ // aliases live only in the interactive shell, so a spawned subprocess's PATH+ // lookup can't see them. Symlink the real binary onto PATH.+ return 'codex CLI not reachable on PATH (a shell alias won\'t work — spawned processes can\'t see aliases; symlink the real binary onto PATH, e.g. ln -s "$(readlink -f "$(command -v codex)")" ~/.local/bin/codex)';}// Auth marker: presence of the credentials file, NOT `codex login status`.// That command prints "Logged in using ChatGPT" only to a human stream