diff --git a/.codex-plugin/README.md b/.codex-plugin/README.md index bc20d72ef..64ade090e 100644 --- a/.codex-plugin/README.md +++ b/.codex-plugin/README.md @@ -154,11 +154,12 @@ history or native plugin caches. Older pre-manifest installs are cleaned conservatively and unverifiable files are retained with warnings. After install, `codex plugin list` is only a registration check. From an ECC -checkout, run the cache check to verify that the installed manifest can resolve -its referenced skills, MCP config, and assets: +checkout, set `ECC_PLUGIN_CACHE` to the active root identified above, then run +the cache check to verify that the installed manifest can resolve its referenced +skills, MCP config, and assets: ```bash -node scripts/codex/check-plugin-cache.js +node scripts/codex/check-plugin-cache.js --plugin-dir "$ECC_PLUGIN_CACHE" ``` The installed plugin registers under the short slug `ecc` so tool and command names diff --git a/scripts/codex/check-plugin-cache.js b/scripts/codex/check-plugin-cache.js index 699d1abd4..0f77bca6c 100644 --- a/scripts/codex/check-plugin-cache.js +++ b/scripts/codex/check-plugin-cache.js @@ -231,7 +231,7 @@ function checkCache(options) { } else { log('Follow the requested plugin marketplace instructions to refresh and re-add that native plugin.'); } - log('Restart Codex, confirm the active plugin root with codex plugin list --json, and re-run this checker against that root.'); + log('Restart Codex, confirm the active plugin root with codex plugin list --json, and re-run this checker with --plugin-dir ACTIVE_ROOT (or --version ACTIVE_VERSION).'); log('See .codex-plugin/README.md for native cache recovery and runtime dependency instructions.'); return 1; } diff --git a/tests/scripts/codex-hooks.test.js b/tests/scripts/codex-hooks.test.js index d09aebc85..8b92c2d07 100644 --- a/tests/scripts/codex-hooks.test.js +++ b/tests/scripts/codex-hooks.test.js @@ -664,6 +664,8 @@ if ( assert.match(result.stdout, /codex plugin add ecc@ecc/); assert.match(result.stdout, /same CODEX_HOME/); assert.match(result.stdout, /active plugin root/); + assert.match(result.stdout, /--plugin-dir ACTIVE_ROOT/); + assert.match(result.stdout, /--version ACTIVE_VERSION/); assert.doesNotMatch(result.stdout, /npm install|sync-ecc-to-codex\.sh/); } finally { cleanup(homeDir);