{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "php -r '\n\/\/ Simulate session and POST\nsession_start();\n$_SESSION[\"_csrf_token\"] = \"test123\";\n$_POST = [\n \"question\" => \"Was ist systemisches Coaching?\",\n \"answer\" => \"Systemisches Coaching ist ein Beratungsansatz...\",\n \"model\" => \"claude-sonnet-4-20250514\",\n \"_csrf_token\" => \"test123\"\n];\n$_SERVER[\"REQUEST_URI\"] = \"\/chat\/promote\";\n$_SERVER[\"REQUEST_METHOD\"] = \"POST\";\n\n\/\/ Set session before requiring index\nrequire \"public\/index.php\";\n' 2>&1",
"description": "Test promote endpoint with correct CSRF"
}
}
{
"tool_response": {
"stdout": "",
"stderr": "",
"interrupted": false,
"isImage": false
}
}