MoonshotAI / MoonshotAI/kimi-code

[Web UI] A single Ctrl+V image paste creates two attachment chips (clipboard.png + image.png)

Open
#3,298 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Environment

  • kimi-code Web UI (local server), 0.38.0, Windows 11, Edge

Repro

  1. Copy a screenshot to the clipboard (Win+Shift+S).
  2. In the Web UI input box, press Ctrl+V once.

Expected

One attachment chip.

Actual

Two chips appear for what is the same image: clipboard.png and image.png. It looks like two handlers (paste event + clipboard poll?) both pick up the same clipboard content.

Reproducible every time (observed 2026-08-27).

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 at the Web UI input box's paste handling and reproduce the issue with a screenshot copied via Win+Shift+S. Trace the paste event and any clipboard polling that create attachments; done means one Ctrl+V produces one attachment chip instead of both clipboard.png and image.png.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.