{"version":"2.1.224","anchor":"self-hosted-runner-hooks-get-the-session-uuid","canonical_anchor":"self-hosted-runner-hooks-get-the-session-uuid","heading":"Self-hosted runner hooks get the session UUID","tier":"use","area":"Self-Hosted Runner","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.224\/e\/self-hosted-runner-hooks-get-the-session-uuid","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.224","markdown":"### Self-hosted runner hooks get the session UUID\n\nRunner hooks now get CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID so your scripts can key on the session.\n\n**What**\n\nCheckout hooks, post-session hooks and the remote runner environment now export `CLAUDE_RUNNER_SESSION_UUID` and `CLAUDE_CODE_REMOTE_SESSION_UUID`, so your scripts can key on the session. Neither existed in 2.1.223.\n\n**Details**\n\n- The value is derived from the session id by decoding its trailing segment into a canonical UUID; if that does not decode, the variables are left unset.\n- Only set on the self-hosted runner and remote session launch paths.\n\n**Evidence**\n\n`CLAUDE_RUNNER_SESSION_UUID`\n\n- Area: Self-Hosted Runner\n- Names: `CLAUDE_RUNNER_SESSION_UUID`, `CLAUDE_CODE_REMOTE_SESSION_UUID`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5"}