zed icon indicating copy to clipboard operation
zed copied to clipboard

Agent Panel: Zed crashes when attempting to include selection and then adding additional text

Open damoonrashidi opened this issue 7 months ago • 0 comments

Summary

When using the agent panel zed crashed if you include the selection and attempt to add any text to the prompt input after the included selection. The crash does not happen when pressing the + button above the input and picking the Selection option, it only happens when typing @ in the agent panel prompt input.

Description

Steps to trigger the problem:

  1. Select some text in any buffer
  2. Navigate to the Agent Panel
  3. Type @selection and select the Selection autocomplete option.
  4. Type any character
  5. See that zed panics.

Actual Behavior: Zed crashes Expected Behavior: The character should be inserted into the agent panel prompt input.

Screen recording

https://github.com/user-attachments/assets/b155e23f-6db6-4c54-9e4b-a32d1e47c7ee

Zed Version and System Specs

Zed: v0.188.2 (Zed Preview) OS: macOS 15.5.0 Memory: 24 GiB Architecture: aarch64

damoonrashidi avatar May 26 '25 09:05 damoonrashidi