CLAUDE_CODE_DISABLE_BG_STABLE_PATH

環境変数

ネイティブインストーラーを使用した macOS 環境で、1 に設定すると各バックグラウンドセッションのホストプロセスを ~/.local/share/claude/ClaudeCode.app ではなくインストール済みバイナリから実行する。この場合、フォルダアクセスなどの権限を macOS が再度確認するようになり、更新のたびに確認が繰り返されることがある。シェルではなく、ユーザー設定・管理設定ファイル・MDM ポリシーのいずれかの env ブロックに設定すること。ClaudeCode.app を削除したい場合は自分で削除する。Claude Code v2.1.295 以降が必要である。

英語原文

On macOS with the native installer, set to 1 to run each background session's host process from the installed binary, not ~/.local/share/claude/ClaudeCode.app. macOS may then ask again for permissions such as folder access, including after each update. Set it in the env block of user settings, a managed settings file, or an MDM policy, not your shell. To remove ClaudeCode.app, delete it yourself. Requires Claude Code v2.1.295 or later