From fab534f9247ebe0565dc01ebf64f5fed19d890d9 Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Sat, 29 Aug 2026 14:15:16 -0400 Subject: [PATCH] test(hooks): keep matcher mirrors in sync --- hooks/codex-hooks.json | 2 +- tests/hooks/posttooluse-dispatcher.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/codex-hooks.json b/hooks/codex-hooks.json index efcdcee91..551f7a4b4 100644 --- a/hooks/codex-hooks.json +++ b/hooks/codex-hooks.json @@ -3,7 +3,7 @@ "hooks": { "SessionStart": [ { - "matcher": "*", + "matcher": ".*", "hooks": [ { "type": "command", diff --git a/tests/hooks/posttooluse-dispatcher.test.js b/tests/hooks/posttooluse-dispatcher.test.js index 0900117d4..0ce83581e 100644 --- a/tests/hooks/posttooluse-dispatcher.test.js +++ b/tests/hooks/posttooluse-dispatcher.test.js @@ -82,7 +82,7 @@ function runTests() { entries.map(entry => entry.id), ['post:dispatcher:sync', 'post:dispatcher:async'] ); - assert.ok(entries.every(entry => entry.matcher === '*')); + assert.ok(entries.every(entry => entry.matcher === '.*')); assert.strictEqual(entries[0].hooks[0].async, undefined); assert.strictEqual(entries[1].hooks[0].async, true); assert.ok(entries[0].hooks[0].command.includes('posttooluse-dispatcher.js'));