{"name":"CLAUDE_RUNNER_SPAWN_REASON","slug":"claude-runner-spawn-reason","family":"setting","title":"Settings keys","noun":"settings key","description":"Self-hosted runners now set `CLAUDE_RUNNER_SPAWN_REASON`, and the `--cloud` remote backend choice needs one more condition","description_source":"entry","described_by":{"version":"2.1.318","anchor":"cloud-sessions-and-spawn-reason-in-the-runner"},"presence":{"first_seen":"2.1.319","removed_in":"2.1.321","in_current_build":false,"newest_mined":"2.1.330","builds":1,"mined_builds":169,"first_cited":{"version":"2.1.318","released_at":"2026-11-03 21:55:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.328","anchor":"self-hosted-orchestrator-metrics-queue-wait-by-reason-and-s","heading":"Self-hosted orchestrator reports queue wait by start reason and abandoned sessions","line":"Two new metrics show how long sessions wait in the queue for each start reason, and how many sessions were given up and why","released_at":"2026-11-18 23:09:39","reason":"found in this entry's text"},{"version":"2.1.318","anchor":"cloud-sessions-and-spawn-reason-in-the-runner","heading":"Self-hosted runners now pass on why a session was started","line":"Self-hosted runners now set `CLAUDE_RUNNER_SPAWN_REASON`, and the `--cloud` remote backend choice needs one more condition","released_at":"2026-11-03 21:55:17","reason":"found in this entry's text"}],"entries_total":2,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"self-hosted-environments-configuration","title":"Customize sessions in self-hosted environments","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"CLAUDE_RUNNER_ACCOUNT_EMAIL","slug":"claude-runner-account-email","description":null},{"name":"CLAUDE_RUNNER_ACCOUNT_ID","slug":"claude-runner-account-id","description":null},{"name":"CLAUDE_RUNNER_API_BASE_URL","slug":"claude-runner-api-base-url","description":"Code-signing now also recognizes lifecycle-hook processes, not just spawned sessions"},{"name":"CLAUDE_RUNNER_ATTEMPT","slug":"claude-runner-attempt","description":null},{"name":"CLAUDE_RUNNER_CLIENT_PLATFORM","slug":"claude-runner-client-platform","description":null},{"name":"CLAUDE_RUNNER_CORRELATION_ID","slug":"claude-runner-correlation-id","description":null},{"name":"CLAUDE_RUNNER_DEBUG_LOG_PATH","slug":"claude-runner-debug-log-path","description":"The cloud session runner stops sending its debug log to the server on exit; copy it yourself from `CLAUDE_RUNNER_DEBUG_LOG_PATH` if needed"},{"name":"CLAUDE_RUNNER_EXIT_REASON","slug":"claude-runner-exit-reason","description":null},{"name":"CLAUDE_RUNNER_ORDER_ID","slug":"claude-runner-order-id","description":null},{"name":"CLAUDE_RUNNER_ORDER_SERVER_TIME","slug":"claude-runner-order-server-time","description":null}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/claude-runner-spawn-reason","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}