## 事象 `~/.copilot/config.json` に以下のような `hooks.notification` を設定している。 ```json "hooks": { "notification": [ { "type": "command", "bash": "cat >> /tmp/copilot_noti.log", "timeoutSec": 5 } ] }, ``` 以下は `ls -1 ~/go` の実行に対してhookが実行されたときの[[標準入力]]。 ```json { "sessionId": "f8703f59-1035-4c0c-896d-855e493f1961", "timestamp": 1775907268684, "cwd": "/Users/tadashi-aikawa/git/github.com/tadashi-aikawa/github-copilot-cli-sandbox", "hook_event_name": "Notification", "message": "Run command: ls -1 ~/go", "title": "Permission needed", "notification_type": "permission_prompt" } ``` だが、このコマンドはプロンプトでの対話的パーミッション許可を必要としていない。そのような場合は通知不要なので、通知されないでほしい。 ### 環境 | 対象 | バージョン | | ---------------------- | ------ | | [[macOS]] | 15.7.4 | | [[GitHub Copilot CLI]] | 1.0.24 | ## 原因 バグと思われる。 <div class="link-card-v2"> <div class="link-card-v2-site"> <img class="link-card-v2-site-icon" src="https://github.githubassets.com/favicons/favicon.svg" /> <span class="link-card-v2-site-name">GitHub</span> </div> <div class="link-card-v2-title"> Notification hook fires for already-approved tools in interactive mode · Issue #2586 · github/copilot-cli </div> <div class="link-card-v2-content"> Describe the bug Summary The Notification hook with notificationtype: "permissionprompt" fires for every tool ex ... </div> <img class="link-card-v2-image" src="https://opengraph.githubassets.com/023154981d39924f342abdf43dc49aa0c6621d65cfb9a8426852355fe2334483/github/copilot-cli/issues/2586" /> <a href="https://github.com/github/copilot-cli/issues/2586"></a> </div> ## 解決方法 なし。上記issueが解決される必要がある。