Skip to content

Pasting an Image in Agent Message Editor Inserts Image at End, Not at Cursor. #48731

@dastrobu

Description

@dastrobu

Reproduction steps

  1. Open the agent panel
  2. Type something
  3. Put the cursor at the start (or in the middle)
  4. Paste an image from the clipboard
paste-image.mov

Current vs. Expected behavior

Current: Image is inserted at the end.
Expected: Image is inserted at cursor position.

Zed version and system specs

Zed: v0.222.4+stable.147.b385025df963c9e8c3f74cc4dadb1c4b29b3c6f0 (Zed)
OS: macOS 26.2
Memory: 128 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

No response

Relevant Keymap

Tested with Default and Jetbrains keymap.
Tested with all custom keymap settings disabled.

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ai/agent threadFeedback for Zed's Agent Threadfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedmeta:regressionthis used to work and now doesn'tpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions