CLAUDE_CODE_BG_TASKS_REPORT_RUNNING=0 を設定)英語原文を表示英語原文を閉じる
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING=0 to restore the old behavior)関連ドキュメント
0 を設定すると、バックグラウンド作業が実行中でも、非対話セッションがターン終了のたびにホストへアイドル状態を報告するようになる。デフォルトでは、バックグラウンドエージェントやワークフロー実行などのバックグラウンド作業が生きている間は、セッションはターン終了後も実行中ステータスを報告し続ける。これにより、リモートセッションリストのようなステータスを監視するホストが、作業中に Claude が入力待ちであると告知してしまうのを防ぐ。開発サーバーなどのバックグラウンドシェルコマンドは実行中ステータスを保持しない。実行中ステータスのデフォルト動作と 0 でのオプトアウトには Claude Code v2.1.269 以降が必要で、それ以前のバージョンでは 1 を設定して実行中ステータスを保持する。
Set to 0 to make a non-interactive session report an idle status to its host at every turn end, even while background work is still running. By default, the session keeps reporting a running status past turn end while background work such as a background agent or a workflow run is still live. This keeps a host that watches the status, such as a remote session list, from announcing that Claude is waiting for your input mid-work. Background shell commands, such as a dev server, don't hold the running status. The running-status default and the 0 opt-out require Claude Code v2.1.269 or later; on earlier versions, set 1 to hold the running status
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING=0 を設定)CLAUDE_CODE_BG_TASKS_REPORT_RUNNING=0 to restore the old behavior)関連ドキュメント