Skip to content

The loom-session and loom-status skills find the Codex plugin under the loom marketplace only - #372

Merged
zlareb1 merged 5 commits into
mainfrom
fix/codex-skills-plugin-root
Nov 7, 2026
Merged

zlareb1 merged 5 commits into
mainfrom
fix/codex-skills-plugin-root

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in a release)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

Under Codex, the loom-session and loom-status skills use the installed loom plugin's own copy even when another marketplace holds an older copy of loom, and loom doctor --client warns when only another marketplace's copy is installed.

Why

Under Codex (no CLAUDE_PLUGIN_ROOT) the skills found the plugin root with ls -d ~/.codex/plugins/cache/*/loom/*/ | sort -V | tail -1. The glob spans every marketplace and sort -V compares the marketplace name first, so with cache/loom/loom/0.9.30/ and an older cache/zz-old/loom/0.8.0/ installed it picked zz-old/loom/0.8.0/ and ran that copy's brief helper, node launcher and status checks (an old copy may have no bin/loom-node at all). The plugin's .mcp.json helper already reads cache/loom/loom/* (versions only), as do two doctor checks; the doctor's client:codex:plugin check globbed every marketplace, so a cache holding only another marketplace's copy passed it. It now reads the loom marketplace's copy, through one helper (_codex_plugin_cache) the doctor's three reads share.

The claude-code-plugin skills now read ~/.codex/plugins/cache/loom/loom/*/; the Codex copies are regenerated by scripts.codegen.agent_plugin_sync.

Scope and risk

Two skill files, their synced Codex copies, server/cli/doctor_client.py (with tests/unit/test_doctor_client_checks.py) and docs/features/integrations/codex.md (the cache path a deployment's marketplace must keep). Both plugin manifests move to 1.2.14 (1.2.13 is on main; 1.2.11 and 1.2.12 are used by open pull requests).

Compatibility, rollout and rollback

  • Wire: none. Plugin version 1.2.14.
  • Rollback: revert.

Tests

  • tests/unit/test_codex_plugin.py::test_skills_find_the_codex_plugin_root_under_the_loom_marketplace: every plugin-cache glob in the plugin's SKILL.md files (the Codex copies are held identical by test_codex_copies_are_current) starts with cache/loom/loom/*/. Fails on main, passes here; the file's other 17 tests (sync and one-version checks) pass.
  • tests/unit/test_doctor_client_checks.py: with only cache/zz-old/loom/0.8.0/, client:codex:plugin warns (it passed on main); with cache/loom/loom/0.9.38/ it passes. Both files: 44 passed.
  • The fixed LR= line, run against a scratch tree holding loom/loom/0.9.30, loom/loom/0.9.4 and zz-old/loom/0.8.0, picks loom/loom/0.9.30/.
  • claude plugin eval integrations/claude-code-plugin --runs 3 --threshold 1.0 (the rule's run for a skill change): every loom-memory case fails on this branch, in both arms, because every call to the suite's loom mocks returns an error, so no write reaches the graders. A one-run baseline on main's plugin fails the same way (scores 0.17 to 0.29, every mock call an error). The suite is broken independently of this change, which touches neither loom-memory nor the mocks; it is recorded for its own fix. The skills this PR changes have no eval case.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand.
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version.
  • The frontend builds and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 5 commits November 7, 2026 13:11
…he loom marketplace only

Under Codex the skills located the plugin root with
`ls -d ~/.codex/plugins/cache/*/loom/*/ | sort -V | tail -1`. The glob
spans every marketplace and `sort -V` compares the marketplace name
first, so with `cache/loom/loom/0.9.30/` and an older
`cache/zz-old/loom/0.8.0/` installed it picked `zz-old/loom/0.8.0/` and
ran that copy's brief helper and status checks.

The skills now read `~/.codex/plugins/cache/loom/loom/*/`, the versions
of this marketplace's copy, as the plugin's .mcp.json helper and the
doctor already do. The Codex copies are regenerated by
scripts.codegen.agent_plugin_sync and both manifests move to 1.2.14.

Tests: test_skills_find_the_codex_plugin_root_under_the_loom_marketplace
in tests/unit/test_codex_plugin.py asserts every plugin-cache glob in
both plugins' SKILL.md files starts with cache/loom/loom/*/; it failed
on the old text and passes now, with the rest of the file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…tplace name a deployment keeps

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… the skills do

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…already gives

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 50036ca into main Nov 7, 2026
38 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 12, 2026
3 tasks done
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.

1 participant