Skip to content

[VSCode Extension] Plan mode file path not clickable in chat webview #2317

@vlad-at-work

Description

@vlad-at-work

What version of Kimi Code CLI is running?

moonshot-ai.kimi-code@0.5.10

Which open platform/subscription were you using?

Kimi Coding Plan

Which model were you using?

kimi-for-coding

What platform is your computer?

Darwin 23.0.0 arm64 arm

What issue are you seeing?

Bug description

In Plan mode, when Kimi writes a plan file (e.g. ~/.kimi/plans/<name>.md), the VS Code extension chat webview renders the absolute path as plain text in the tool-use card. Clicking the path does nothing — it does not open the file in the editor, nor does it expand/render the markdown inline. The user must manually copy the path and run code <path> in a terminal to read the plan.

This breaks the core loop of Plan mode, which requires the user to read, review, and approve the plan before exiting Plan mode.

Environment

  • Extension: moonshot-ai.kimi-code
  • OS: macOS (also reproducible on Windows/Linux per community reports)
  • CLI/server version: latest stable

Actual behavior

Nothing happens. The path is non-interactive plain text. The file content shown in the OUT diff view is often truncated or insufficient for review. The user must copy the absolute path and open it externally.

Related issues

Suggested fix

Use VS Code webview message passing (postMessage) or a vscode://file/ URI so that clicking the path triggers vscode.open with the correct file:// URI. Alternatively, render the full plan markdown directly in the chat bubble, similar to how Codex handles plans.

What steps can reproduce the bug?

Steps to reproduce

  1. Start a new task in VS Code with the Kimi Code extension.
  2. Switch to Plan mode.
  3. Ask Kimi to create a plan (e.g. "Plan a refactor of the auth module").
  4. Wait for Kimi to generate the plan. It will emit a WriteFile call targeting ~/.kimi/plans/<slug>.md.
  5. In the chat webview, click on the rendered file path under the IN/OUT card.

What is the expected behavior?

Expected behavior

Clicking the file path should open the plan file in a VS Code editor tab (or at minimum expand the file content inline in the chat), so the user can read the full plan without leaving the IDE.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions