{"name":"SELF_HOSTED_RUNNER_SESSION_STOP_GRACE_MS","slug":"self-hosted-runner-session-stop-grace-ms","family":"env","title":"Environment variables","noun":"environment variable","description":"Milliseconds the self-hosted runner waits for the Claude process to exit cleanly after a session ends before force-killing it; it also feeds the shutdown budget the runner prints at startup. Default `5000`; unset, empty, non-numeric, `0` or negative uses the default, and values are capped at `2147483647`. `--session-stop-grace-sec <seconds>` sets it to the seconds times `1000`.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.224","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":74,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[{"source":"claude-code","path":"self-hosted-environments-reference","title":"Self-hosted environments reference","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"SELF_HOSTED_RUNNER_SESSION_IDLE_MS","slug":"self-hosted-runner-session-idle-ms","description":"A self-hosted runner now refuses a code review session another worker has already taken, and its `--startup-timeout-min` help was reworded"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/self-hosted-runner-session-stop-grace-ms","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}