{"version":"2.1.328","anchor":"self-hosted-runner-passes-claude-code-thinking-resumption-an","canonical_anchor":"self-hosted-runner-passes-claude-code-thinking-resumption-an","heading":"Self-hosted runners pass two more environment variables to sessions","tier":"notice","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/self-hosted-runner-passes-claude-code-thinking-resumption-an","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Self-hosted runners pass two more environment variables to sessions\n\nSelf-hosted runners now set CLAUDE_CODE_HOST_OWNED_CONFIG_DIR and forward CLAUDE_CODE_THINKING_RESUMPTION to the sessions they start\n\n**Unclear.** What either variable changes about how a session behaves is not known.\n\n**What**\n\nA self-hosted runner is a machine you run yourself that starts Claude Code sessions. Environment variables are named settings passed to a program when it starts. The runner now passes two more to the sessions it starts:\n\n- `CLAUDE_CODE_HOST_OWNED_CONFIG_DIR`, set to the same folder as `CLAUDE_CONFIG_DIR`.\n\n- `CLAUDE_CODE_THINKING_RESUMPTION`, copied from the session's own environment variables when it is set there.\n\nThe session setup script also now gets `CLAUDE_CODE_HOST_OWNED_CONFIG_DIR`, and `SELF_HOSTED_RUNNER_REPOSITORY_FOLDER` is now cleared from that script's environment.\n\n**Why**\n\nThese give self-hosted sessions new settings for resuming Claude's thinking and for which side owns the configuration folder.\n\n- Area: Self-Hosted Runner\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}