MoonshotAI / MoonshotAI/kimi-cli

[Feature Request] Send VS Code notification (showInformationMessage) when approval is required in VS Code Extension

Open
#2,040 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

What feature would you like to see?
Problem

When using Kimi Code CLI via the VS Code Extension, the approval dialog appears inside the Kimi webview panel. However, if VS Code is minimized or hidden behind other applications, users do not notice that an approval is pending. This causes the workflow to stall until the user manually checks the Kimi panel.

Proposed Solution

When a ToolCall requires user approval (i.e., yoloMode is disabled), please trigger a standard VS Code notification using vscode.window.showInformationMessage() or similar API. For example:

"Kimi: Approval required. Please check the Kimi Code panel."
[Open Kimi]

Clicking "Open Kimi" should focus the Kimi webview panel (kimi.webview.focus).

Benefits
  • Users can immediately notice approval requests even when VS Code is not focused.
  • Reduces workflow interruption caused by missed approvals.
  • Keeps the existing approval dialog in the webview; the notification acts only as a non-intrusive alert.
Current Workaround
  • Enable kimi.yoloMode, which auto-approves all tool calls but reduces security/control.
  • Manually check the Kimi panel frequently.
Environment
  • OS: Windows 11
  • VS Code: latest stable
  • Kimi Code Extension: v0.5.7

Thank you for considering this improvement!

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

Start by tracing the VS Code Extension's ToolCall approval flow where yoloMode is checked, then review the vscode.window.showInformationMessage and kimi.webview.focus APIs. Done means a notification appears for pending approval when yoloMode is disabled, and its Open Kimi action focuses the webview without replacing the existing dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.