zed
zed copied to clipboard
Agent Panel: Zed crashes when attempting to include selection and then adding additional text
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:
- Select some text in any buffer
- Navigate to the Agent Panel
- Type
@selectionand select theSelectionautocomplete option. - Type any character
- 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