Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test(opencode): reject any namespace-scoped command agent id, not just the legacy prefix (#2477)

Gaurav Dubeyfafc832238be
diff --git a/tests/opencode-config.test.js b/tests/opencode-config.test.js
index 9b0254e7e..693ac3b9f 100644
--- a/tests/opencode-config.test.js
+++ b/tests/opencode-config.test.js
@@ -96,13 +96,14 @@ if (
const agentId = match[1].trim().replace(/^['"]|['"]$/g, '');
- // Regression guard for #2477: the Claude Code plugin namespace
- // (`everything-claude-code:`) is not a valid opencode agent scope.
- // OpenCode registers these agents unscoped in opencode.json's `agent`
- // map, so a scoped id fails to resolve ("Agent not found") and hard-
- // breaks subtask commands like /code-review on opencode.
+ // Regression guard for #2477: opencode registers these agents unscoped
+ // in opencode.json's `agent` map, so ANY namespace-scoped id
+ // (`<plugin>:<agent>` — e.g. the Claude Code `everything-claude-code:`
+ // prefix) fails to resolve ("Agent not found") and hard-breaks subtask
+ // commands like /code-review on opencode. Reject the whole scoped class,
+ // not just the one legacy prefix.
assert.ok(
- !agentId.includes('everything-claude-code:'),
+ !agentId.includes(':'),
`${entry}: command agent must be an unscoped opencode agent id, got: ${agentId}`
);