What
On 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.
Other changes:
- 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.
- The runner now counts sessions it gave up on, and how long sessions waited in the queue, grouped by reason.
- An error while setting up the hook now makes the runner exit with code 2.
Why
The 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.