mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix(codex): forward lifecycle hooks without allow decision
This commit is contained in:
@@ -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 = "*"');
|
||||
|
||||
@@ -105,6 +105,8 @@ function sessionFlagsHookStateKey(stateName: string): string {
|
||||
export function buildCodexHookConfigArgs(port: number, token: string): string[] {
|
||||
const { command, args } = getHappyCliCommand([
|
||||
'hook-forwarder',
|
||||
'--flavor',
|
||||
'codex',
|
||||
'--port',
|
||||
String(port),
|
||||
'--token',
|
||||
|
||||
Reference in New Issue
Block a user