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(install): preserve custom prompt hooks

wellkilo430213558e56
diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js
index a7fcde289..f500a0a92 100644
--- a/tests/scripts/install-apply.test.js
+++ b/tests/scripts/install-apply.test.js
@@ -910,10 +910,14 @@ function runTests() {
assert.strictEqual(settings.includeCoAuthoredBy, false, 'Claude co-author attribution should be disabled by default');
assert.deepStrictEqual(settings.env, { MY_VAR: '1' }, 'existing env should be preserved');
assert.deepStrictEqual(
- settings.hooks.UserPromptSubmit,
- [{ matcher: '*', hooks: [{ type: 'command', command: 'echo custom-submit' }] }],
+ settings.hooks.UserPromptSubmit[0],
+ { matcher: '*', hooks: [{ type: 'command', command: 'echo custom-submit' }] },
'unrelated existing hooks should be preserved'
);
+ assert.ok(
+ settings.hooks.UserPromptSubmit.some(entry => entry.id === 'prompt:hookify-runtime'),
+ 'managed Hookify prompt runtime should be registered alongside user hooks'
+ );
assert.deepStrictEqual(
settings.hooks.PreToolUse[0],
{ matcher: 'Write', hooks: [{ type: 'command', command: 'echo custom-pretool' }] },