Skip to content

agent_ui: Insert images at cursor position#48779

Merged
yeskunall merged 1 commit intomainfrom
fix-issue-48731-fe3aa75836d141e2
Feb 9, 2026
Merged

agent_ui: Insert images at cursor position#48779
yeskunall merged 1 commit intomainfrom
fix-issue-48731-fe3aa75836d141e2

Conversation

@yeskunall
Copy link
Member

@yeskunall yeskunall commented Feb 9, 2026

With #47768, all image pills automatically got snapped to the end of the prompt message. This behavior is unexpected as other pills (@symbol, @thread et al) respect the cursor position.

Closes #48731.

  • Tests or screenshots needed?
  • Code Reviewed
  • Manual QA

Release Notes:

  • Insert images at cursor position in the Agent Panel

With #47768, all image pills automatically got
snapped to the end of the prompt message. This
behavior is unexpected as other pills (`@symbol`,
`@thread` et al) respect the cursor position.
@yeskunall yeskunall requested a review from danilo-leal February 9, 2026 11:39
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 9, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 9, 2026
Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍

@yeskunall yeskunall merged commit a41bec8 into main Feb 9, 2026
36 checks passed
@yeskunall yeskunall deleted the fix-issue-48731-fe3aa75836d141e2 branch February 9, 2026 14:10
melocene pushed a commit to melocene/zed that referenced this pull request Feb 16, 2026
With zed-industries#47768, all image pills automatically got snapped to the end of the
prompt message. This behavior is unexpected as other pills (`@symbol`,
`@thread` et al) respect the cursor position.

Closes zed-industries#48731.

- [ ] Tests or screenshots needed?
- [x] Code Reviewed
- [x] Manual QA

Release Notes:

- Insert images at cursor position in the Agent Panel
naaiyy added a commit to Glass-HQ/Glass that referenced this pull request Feb 16, 2026
Key changes:
- Side-by-side diff UX improvements (zed-industries#48821) - major diff view polish
- Display map refactoring - large cleanup of display_map.rs (~1000 line reduction)
- Split editor growth (zed-industries#48753) - significant expansion of split.rs
- Multi-char folds fix (zed-industries#48721)
- New multi workspace (zed-industries#47795, then reverted zed-industries#48776)
- Default view mode setting for SplittableEditor (zed-industries#48440)
- macOS drag-drop fix: reset external_files_dragged (zed-industries#48727)
- Windows: OS caption/buttons for custom titlebar (zed-industries#48330)
- Windows timer resolution guard (zed-industries#48379)
- Bedrock Claude Opus 4.6 model (zed-industries#48525)
- MCP servers: fix disabled servers disappearing after restart (zed-industries#47758)
- Shell command parser extracted to shared crate (zed-industries#48660)
- Format-on-save for streaming edit file tool (zed-industries#48663)
- Agent: insert images at cursor position (zed-industries#48779)
- Project panel: improved file/folder creation in folded paths (zed-industries#46750)
- Folding ranges panic fix (zed-industries#48809)
- REPL: shutdown all kernels on app quit (zed-industries#48760)
- Extension CI improvements
- Security updates: time v0.3.47, git2 v0.20.4

Conflict resolution:
- collab (Cargo.toml, extensions API, db, tests): deleted
- GPUI (8 files): deleted from Glass (handled in Obsydian-HQ/gpui)
- Cargo.lock: took upstream

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants