CLAUDE_CODE_FORCE_SESSION_PERSISTENCE
1 に設定すると、この claude が別の Claude Code セッション内から起動された場合でも、トランスクリプトの永続化、プロンプト履歴、claude agents への登録を強制する。継承された CLAUDE_CODE_CHILD_SESSION の値により、本来トップレベルのセッションがネストしたセッションと誤判定される場合に使う。例えば screen セッションや、Claude Code の Bash ツールで最初に起動されたバックグラウンドランチャーが発生源となりうる。v2.1.178 からは、tmux のケースを自動検出して継承されたマーカーを無視するため、tmux ではこの変数は不要になった。v2.1.169 以前でも機能するが、上書き対象のネストセッション検出が削除された v2.1.170 と v2.1.171 では効果がない
Set to 1 to force transcript persistence, prompt history, and claude agents registration even when this claude was launched from inside another Claude Code session. Use when an inherited CLAUDE_CODE_CHILD_SESSION value, for example from a screen session or a background launcher first started by Claude Code's Bash tool, causes a genuine top-level session to be misclassified as nested. As of v2.1.178, Claude Code detects the tmux case automatically and ignores the inherited marker, so tmux no longer needs this variable. Also honored on v2.1.169 and earlier; has no effect on v2.1.170 and v2.1.171, where the nested-session detection it overrides was removed
まだ変更履歴との関連付けはありません