{"version":"2.1.315","anchor":"silent-peer-admission-for-the-background-socket-is-now-set-f","canonical_anchor":"silent-peer-admission-for-the-background-socket-is-now-set-f","heading":"Background session socket waits for new connections to speak before letting them in","tier":"use","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/silent-peer-admission-for-the-background-socket-is-now-set-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### Background session socket waits for new connections to speak before letting them in\n\nA background session's socket can now hold new connections until they send something, so a silent stray connection cannot kick off the attached viewer\n\n**Unclear.** It is not settled which program's environment receives this variable, or what the remote switch falls back to when the server sends nothing.\n\n**What**\n\nA background session is a Claude Code session that keeps running while you are not watching it, and you attach to it through a local socket (a connection point on your machine). Before, every new connection to that socket replaced the current one at once, so a stray connection could kick out the client you had attached.\n\n- New connections now stay unadmitted until they send a first line.\n\n- Unadmitted connections that send nothing are closed after a timeout, set by `CLAUDE_BG_SILENT_PEER_TIMEOUT_MS`.\n\n- The old let-in-at-once behaviour applies when `CLAUDE_BG_SOCK_ADMIT_SILENT_PEERS` is \"1\", or when there is no auth token and no other condition holds.\n\n- A new helper sets `CLAUDE_BG_SOCK_ADMIT_SILENT_PEERS` to \"1\" in the environment it is given, and deletes it instead when the remote switch `bot_protected_tengu_merry_bear` is true. Which environment it is applied to was not found.\n\nNothing has been read about the `tengu_merry_bear` switch yet.\n\n**Why**\n\nWhen the new rule is in effect, a probe or a connection that never speaks can no longer throw your attached view off a background session. Whether it is in effect depends on that variable, which the new helper sets to \"1\" unless the remote switch is true.\n\n- Area: Sessions\n- Names: `CLAUDE_BG_SOCK_ADMIT_SILENT_PEERS`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}