fix(functions): init executionResponse before sync createExecution

Match the domain proxy path in general.php so soft-failed executor
errors still return a structured execution instead of reading an
undefined \$executionResponse (which can surface as an empty HTTP 500).

Co-authored-by: Chirag Aggarwal <chiragaggarwal5k@gmail.com>
This commit is contained in:
Cursor AgentandChirag Aggarwal committed 2026-07-30 03:38:31 +00:00
1 parent f4bcada1d6
commit e818a61958
1 file changed
+5
@@ -408,6 +408,11 @@ class Create extends Base
]);
/** Execute function */
$executionResponse = [
'headers' => [],
'body' => '',
];
try {
$version = $function->getAttribute('version', 'v2');
$command = $runtime['startCommand'];