{"version":"2.1.336","anchor":"background-pty-host-claude-bg-reload-network-rules","canonical_anchor":"background-pty-host-claude-bg-reload-network-rules","heading":"Background sessions gain switches to reload network rules","tier":"use","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/background-pty-host-claude-bg-reload-network-rules","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Background sessions gain switches to reload network rules\n\nTwo new environment variables, CLAUDE_BG_RELOAD_NETWORK_RULES and CLAUDE_CODE_RELOAD_LOCAL_NETWORK_RULES, trigger a network-rules reload for background sessions\n\n**Unclear.** It is not clear what reloading network rules does for a background session.\n\n**What**\n\nA background session is a Claude Code session that keeps running without a terminal window open. A separate helper program, the background PTY host, gives each one a stand-in terminal. This release adds two environment variables about reloading network rules. An environment variable is a named value handed to a program when it starts.\n\n- `CLAUDE_BG_RELOAD_NETWORK_RULES` is read by the background PTY host. It accepts the values `1` or `wait`, is only read when `CLAUDE_BG_TCC_DISCLAIMED` is also set, and is cleared once it has been read.\n\n- `CLAUDE_CODE_RELOAD_LOCAL_NETWORK_RULES` is read by a check that, when the variable is not set, falls back to a version check combined with a server-controlled switch called `tengu_streamed_pond`.\n\n- That check is used in two places: next to a `CLAUDE_BG_TCC_DISCLAIMED` check, and when Claude Code runs as a service started directly by the system (`n === \"service\" && process.ppid === 1`).\n\n- Both variables are added to the list of variables Claude Code passes on to the programs it starts.\n\nThe code that performs the reload was not read, so what the reload actually does is unconfirmed.\n\n**Why**\n\nThese switches belong to the machinery that restarts background sessions, and Claude Code seems to set them itself rather than expecting you to. Nothing has been read yet about the `tengu_streamed_pond` switch, so it is not known whether the server-controlled path is active for anyone.\n\n- Area: Sessions\n- Names: `CLAUDE_BG_RELOAD_NETWORK_RULES`, `CLAUDE_BG_TCC_DISCLAIMED`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}