{"version":"2.1.336","anchor":"settings-user-env-block-is-frozen-on-self-hosted-runners","canonical_anchor":"settings-user-env-block-is-frozen-on-self-hosted-runners","heading":"Sessions on self-hosted runners ignore later edits to the user settings env block","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/settings-user-env-block-is-frozen-on-self-hosted-runners","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Sessions on self-hosted runners ignore later edits to the user settings env block\n\nOn a self-hosted runner, a session keeps the user settings env block it read at startup and logs a warning instead of applying later changes\n\n**What**\n\nThe `env` block in your user settings sets environment variables (named values that programs read) for Claude Code. A session running on a self-hosted runner, a machine you supply to run Claude Code jobs, now keeps the `env` block it read when it started. If the file changes later, the change is not applied and a warning is logged starting \"Not applying a change to the env block of\". The warning explains that the session's own commands can write this file.\n\nRelated changes:\n\n- Unreadable user settings: a user settings file that cannot be read is now handled.\n\n- Untrusted folders: the warning shown for a folder you have not trusted now says its values are not read.\n\n- Managed settings: settings set by an organization's admin now show lock notices for bypass-permissions mode and auto mode.\n\n**Why**\n\nIt stops a session from changing its own environment by editing the settings file while it runs. If you edit the `env` block during a runner session, start a new session to pick the change up.\n\n- Area: Self-Hosted Runner\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: yes"}