Skip to content

fix: use .codex config dir for codex platform#1160

Closed
matiasduartee wants to merge 2 commits into
Graphify-Labs:v8from
matiasduartee:fix-codex-skill-dst
Closed

fix: use .codex config dir for codex platform#1160
matiasduartee wants to merge 2 commits into
Graphify-Labs:v8from
matiasduartee:fix-codex-skill-dst

Conversation

@matiasduartee

Copy link
Copy Markdown
Contributor

Fixes an issue where the skill was incorrectly being copied to .agents\ instead of .codex\ for the codex platform. This aligns with the _install_codex_hook\ which correctly uses .codex/hooks.json.

@matiasduartee matiasduartee changed the base branch from main to v8 June 6, 2026 22:04

@safishamsi safishamsi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is correct — Codex's hook already writes to .codex/hooks.json, so the skill should also live under .codex/. The change propagates cleanly through install and uninstall because both resolve the path dynamically via _PLATFORM_CONFIG["codex"]["skill_dst"] — no hardcoded paths to update there.

However the PR is missing test updates and CI will fail. tests/test_install.py has four assertions that still reference .agents for the codex platform — all need to be updated to .codex:

  • Line 11: "codex": (".agents/skills/graphify/SKILL.md",),.codex/...
  • Line 44: assert (tmp_path / ".agents" / "skills" / "graphify" / "SKILL.md").exists().codex/...
  • Lines 90 and 93: test_install_project_codex_writes_skill_and_agents asserts the skill under .agents/

Note: the Amp and Antigravity tests that legitimately use .agents/ should NOT be changed — only the codex-specific assertions.

Add those four test fixes and this is good to merge.

@matiasduartee

Copy link
Copy Markdown
Contributor Author

Thanks for the quick review, @safishamsi

You are completely right. I've just pushed a new commit updating those four test assertions to point to .codex/.

While at it, I also noticed that the test_codex_subcommand_project_install_and_uninstall_are_project_scoped and test_uninstall_project_removes_project_skill_only tests were also asserting against the .agents path for the Codex platform, so I took the liberty of proactively updating those as well to prevent the CI from failing on them.

The CI should be green now! Let me know if anything else is needed.

safishamsi added a commit that referenced this pull request Jun 7, 2026
#1154: scope numpy>=2.0 constraint to python_version>='3.13' only.
numpy 1.26.4 ships no cp313 wheel so uv sync falls back to a source
build requiring a C compiler. The marker avoids forcing numpy 2.x on
3.10-3.12 users who have working 1.x environments.

#1160: codex platform skill now installs to .codex/skills/graphify/
instead of .agents/skills/graphify/. The hook already wrote to .codex/
so the skill destination was inconsistent. Propagates automatically
through install/uninstall (both read _PLATFORM_CONFIG dynamically).
Updated all codex-specific test assertions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@safishamsi

Copy link
Copy Markdown
Collaborator

Landed in f146be3. All codex test assertions updated (.agents → .codex). Applied via 3-way merge to avoid reverting the postgres feature that landed after your branch was cut. Thanks!

@safishamsi safishamsi closed this Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants