Description
When creating a session, Aegis generates a hooks file with StopFailure as a hook type, which Claude Code does not recognize. This causes Claude Code to fail with a settings error and prevents the session from starting properly.
Error
Settings Error
/tmp/aegis-hooks/hooks-493c7850-b383-4a4e-9a57-69b7fcc70825.json
└ hooks
└ StopFailure: Invalid key in record
Environment
- Aegis version: 2.2.2 (via
npx aegis-bridge)
- Claude Code version: 2.1.63
- OS: Raspberry Pi OS (Debian 12) on arm64
- Node: v22.19.0
Steps to Reproduce
- Run
npx aegis-bridge
- Create a session:
curl -X POST http://127.0.0.1:9100/v1/sessions -H "Content-Type: application/json" -d '{"name": "test-session", "workDir": "/home/openclaw/.openclaw/workspace", "prompt": "Create a hello.txt file"}'
- Check the pane output - Claude Code shows the settings error
Generated Hooks File
{
"hooks": {
"StopFailure": [
{
"hooks": [
{
"type": "http",
"url": "http://127.0.0.1:9100/v1/hooks/StopFailure?sessionId=..."
}
]
}
],
...
}
}
Suggested Fix
Remove or rename StopFailure to a valid Claude Code hook type. Check the Claude Code documentation for the list of supported hook types.
Additional Notes
Other hook types in the generated file may also be invalid - worth validating the full list against Claude Code's supported hooks.
Description
When creating a session, Aegis generates a hooks file with
StopFailureas a hook type, which Claude Code does not recognize. This causes Claude Code to fail with a settings error and prevents the session from starting properly.Error
Environment
npx aegis-bridge)Steps to Reproduce
npx aegis-bridgeGenerated Hooks File
{ "hooks": { "StopFailure": [ { "hooks": [ { "type": "http", "url": "http://127.0.0.1:9100/v1/hooks/StopFailure?sessionId=..." } ] } ], ... } }Suggested Fix
Remove or rename
StopFailureto a valid Claude Code hook type. Check the Claude Code documentation for the list of supported hook types.Additional Notes
Other hook types in the generated file may also be invalid - worth validating the full list against Claude Code's supported hooks.