{"name":"CLAUDE_CODE_TMUX_SESSION","slug":"claude-code-tmux-session","family":"env","title":"Environment variables","noun":"environment variable","description":"When you exit a worktree session, removing the worktree no longer holds up the exit dialog and runs after the session ends","description_source":"entry","described_by":{"version":"2.1.286","anchor":"exiting-a-worktree-session-now-removes-a-clean-worktree-in-t"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.286","anchor":"exiting-a-worktree-session-now-removes-a-clean-worktree-in-t","heading":"Removing a clean worktree on exit now happens after Claude Code closes","line":"When you exit a worktree session, removing the worktree no longer holds up the exit dialog and runs after the session ends","released_at":"2026-09-30 17:14:38","reason":"found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_TMUX_PREFIX","slug":"claude-code-tmux-prefix","description":"Set by Claude Code when it launches itself in a new tmux session: the global tmux prefix read from `tmux show-options -g prefix`, default `C-b` when that fails. Read back inside that session by the `tmux session:` notice, which tells you to detach with `<prefix> d`."},{"name":"CLAUDE_CODE_TMUX_PREFIX_CONFLICTS","slug":"claude-code-tmux-prefix-conflicts","description":"Set by Claude Code when it launches itself in a new tmux session: `1` when the tmux prefix is one of `C-b`, `C-c`, `C-d`, `C-t`, `C-o`, `C-r`, `C-s`, `C-g` or `C-e`, otherwise empty. When true, the `tmux session:` notice tells you to press the prefix twice and then `d` to detach, because Claude uses that key."},{"name":"CLAUDE_CODE_TMUX_TRUECOLOR","slug":"claude-code-tmux-truecolor","description":"Any non-empty value keeps 24-bit color inside tmux. By default, when `TMUX` is set and the detected color level is truecolor, Claude Code lowers it to 256 colors."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-tmux-session","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}