fix(codex): forward lifecycle hooks without allow decision

This commit is contained in:
weishu
2026-08-05 23:04:10 +08:00
parent e532ff259b
commit 97c7412434
4 changed files with 54 additions and 5 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ describe('codexMcpConfig', () => {
expect(args[0]).toBe('-c');
expect(args[1]).toContain('hooks.SessionStart=[');
expect(args[1]).toContain('type = "command"');
expect(args[1]).toContain('hook-forwarder --port 4312 --token secret-token');
expect(args[1]).toContain('hook-forwarder --flavor codex --port 4312 --token secret-token');
expect(args[2]).toBe('-c');
expect(args[3]).toContain('hooks.PreToolUse=[');
expect(args[3]).toContain('matcher = "*"');