環境変数

CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK

ターミナルに入力中やフォーカスがある状態でも、PushNotificationツールによるデスクトップ通知を強制的に送信するには1を設定します。

使い方・用途

  • デフォルトでは、最近のキーボード操作やフォーカスが検知されると通知がスキップされますが、このチェックを無効化します
  • ローカルの判定のみを無効化するため、サーバー側でのモバイルプッシュ抑制ロジックには影響しません
  • Claude Code v2.1.193以降で利用可能です
英語原文(公式ドキュメントより)

Set to 1 to send the PushNotification tool's desktop notification even while you are typing in or focused on the terminal. By default the tool skips both the desktop notification and the mobile push when it detects recent keyboard activity or terminal focus. This variable disables only that local check, so the server can still suppress the mobile push when it detects that you are active. Requires Claude Code v2.1.193 or later