{"name":"CLAUDE_PTY_ORPHAN_CHECK_MS","slug":"claude-pty-orphan-check-ms","family":"env","title":"Environment variables","noun":"environment variable","description":"Interval in milliseconds of the background session PTY host's orphan watchdog (not on Windows). A tick counts when the host's parent process id has changed and no client is connected; after `30` consecutive such ticks it logs `orphan watchdog`, sends `SIGTERM` to the child process and `SIGKILL` 5 seconds later if it has not exited. Default `2000`; an unset, non-numeric or `0` value uses the default.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.154","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":135,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_PTY_HEARTBEAT_MS","slug":"claude-pty-heartbeat-ms","description":"Interval in milliseconds of the background session PTY host's client heartbeat (not on Windows). Each tick, every armed client's missed count goes up; at `3` the connection is closed, otherwise a `ping` is sent. Default `60000`; an unset, non-numeric or `0` value uses the default."},{"name":"CLAUDE_PTY_HOST_EXEC","slug":"claude-pty-host-exec","description":"Claude Code adds seven environment variable names for background sessions and terminal hosts to a list it keeps of such names"},{"name":"CLAUDE_PTY_HOST_NO_STABLE_PATH","slug":"claude-pty-host-no-stable-path","description":"On macOS, setting CLAUDE_CODE_DISABLE_BG_STABLE_PATH makes background sessions relaunch from the running program instead of the stable path"},{"name":"CLAUDE_PTY_RECORD","slug":"claude-pty-record","description":"File path for a recording of a background session's terminal output, read by the `--bg-pty-host` process. The file is opened for writing (truncated), starts with the terminal's columns and rows as two big-endian 32-bit integers, then gets one record per output chunk: microseconds since start and the chunk length (both big-endian 32-bit) followed by the raw bytes. Unset or a file that cannot be opened records nothing."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-pty-orphan-check-ms","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}