{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "timeout 10 php -r '\n$_SERVER[\"REQUEST_URI\"] = \"\/chat\/test123\/message\/stream\";\n$_SERVER[\"REQUEST_METHOD\"] = \"POST\";\n$_POST = [\"message\" => \"test\", \"model\" => \"ollama:gemma3:4b-it-qat\", \"collections\" => [\"documents\"], \"context_limit\" => \"3\"];\nob_start();\nrequire \"public\/index.php\";\n$output = ob_get_clean();\necho \"OUTPUT LENGTH: \" . strlen($output) . \"\\n\";\necho \"FIRST 2000 chars:\\n\";\necho substr($output, 0, 2000);\n'",
"description": "Test SSE stream via PHP CLI"
}
}
{
"tool_response": {
"stdout": "event: error\ndata: {\"error\":\"Session nicht gefunden.\"}\n\nOUTPUT LENGTH: 0\nFIRST 2000 chars:",
"stderr": "",
"interrupted": false,
"isImage": false
}
}