{"version":"2.1.326","anchor":"gateway-lost-handling-in-bg-sessions-and-host-policy-env","canonical_anchor":"gateway-lost-handling-in-bg-sessions-and-host-policy-env","heading":"Background sessions record losing their gateway connection","tier":"internal","area":"Sessions","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/gateway-lost-handling-in-bg-sessions-and-host-policy-env","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Background sessions record losing their gateway connection\n\nBackground sessions now keep track of a lost gateway connection, and gateway-routed sessions start with an extra setting\n\n**Unclear.** It is not clear what the new environment variable is or what changes for users in gateway-routed or host-managed setups.\n\n**What**\n\nBackground sessions, ones that keep running without you watching, changed in three ways:\n\n- They now record when their gateway connection is lost, including when it is lost while a request is being sent.\n\n- A session started with gateway routing gets an extra environment variable.\n\n- Whether a host policy is in force is now always worked out. Before, it was only marked as in force when a check passed.\n\n**Why**\n\nThis affects setups that route Claude Code through a gateway or have it managed by the host.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}