{"version":"2.1.328","anchor":"runner-spawn-hook-failures-sanitized-last-error-user-messa","canonical_anchor":"runner-spawn-hook-failures-sanitized-last-error-user-messa","heading":"Runner hook failures report a short summary instead of the hook's errors","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/runner-spawn-hook-failures-sanitized-last-error-user-messa","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Runner hook failures report a short summary instead of the hook's errors\n\nWhen a spawn hook fails, the runner records a short summary like 'timed out' instead of the hook's error output, and can relay its user message\n\n**What**\n\nOn a self-hosted runner, the spawn hook is the script that starts a session. When it fails, the runner's recorded last error used to include the end of the hook's error output. It now holds a fixed summary such as \"timed out\", and points you to the orchestrator's log for detail.\n\nOther changes:\n\n- The hook's user message is sent back to the session's user when the session is declined, unless the hook timed out or was ended by a signal.\n\n- The runner now counts sessions it gave up on, and how long sessions waited in the queue, grouped by reason.\n\n- An error while setting up the hook now makes the runner exit with code 2.\n\n**Why**\n\nThe hook's raw error output no longer ends up in the runner's health information, and users can see a message the hook chose to give them. Scripts that watch the runner's exit code can now pick out hook setup errors by code 2.\n\n- Area: Self-Hosted Runner\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: org\n- Heads-up: no"}