MoonshotAI / MoonshotAI/kimi-cli

hook "Notification" never work

Open
#2,281 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What version of Kimi Code CLI is running?

1.44

Which open platform/subscription were you using?

windows cli

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

文档中的 "Notification" hook并未生效

需要审批时发送桌面通知

[[hooks]]
event = "Notification"

What steps can reproduce the bug?

add a hook:

所有通知事件(权限审批、后台任务完成等)

[[hooks]]
event = "Notification"
command = "powershell -ExecutionPolicy Bypass -File "C:\Users\feng yi\.kimi\hooks\win-notify.ps1""
timeout = 10

需要审批时发送桌面通知

[[hooks]]
event = "Notification"
matcher = "permission_prompt"
command = "osascript -e 'display notification "Kimi needs attention" with title "Kimi CLI"'"

What is the expected behavior?

trigger notification when need permission

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Windows CLI using the documented Notification hook configuration and the PowerShell command. Start by tracing how the CLI reads the hooks configuration and handles the permission_prompt event; done means a permission request triggers the configured desktop notification.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.