Troubleshoot common hook execution issues and learn best practices for reliable automation.
Hooks fail for several reasons:
The API returns hook output in the response:
``json``
{
"exit_code": 1,
"output": "Error: 3 tests failed...",
"duration_ms": 5432
}
Use this output to diagnose the issue.
Test your hooks manually before relying on them:
``bash``
export TASK_IDENTIFIER="W1"
export TASK_TITLE="Test Task"
bash -c 'source .stride.md && echo $TASK_IDENTIFIER'
You've completed all the steps in this guide.