Claude Code Hook "Stop" 在 Alma 中打开新消息时会意外触发

我使用 Claude Code ACP,在 ~/.claude/settings.json 中配置了一个 Hook,让 Claude Code 在任务完成后播放提示音(如下)。

在 Claude Code 中的: 这个 Hook 工作正常,只在任务完成时播放声音。
在 Alma 中的问题:每当我打开一个新的message thread,几秒钟后就会自动播放这个声音,即使我什么都没做。

"hooks": {
  "Stop": [
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "afplay /System/Library/Sounds/Glass.aiff"
        }
      ]
    }
  ]
}
```

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🐛

Bug Reports

Date

2 months ago

Author

Kyle Qihua Huang

Subscribe to post

Get notified by email when there are changes.