zed icon indicating copy to clipboard operation
zed copied to clipboard

limit size of copilot/supermaven suggestions

Open drdozer opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

Sometimes, randomly, the supermaven code suggestions are many lines long. It hallucinates very large chunks of code covering multiple functions and impl blocks. This is really distracting. I would prefer it to limit itself to a single syntactic element, e.g. suggesting a function body when on an unimplemented function declaration, or completing the current line when in an expression. I spend a load of time simply cancelling the huge hallucinations to be able to continue typing.

Environment

Zed: v0.164.2 (Zed) OS: Linux X11 devuan 5 Memory: 62.8 GiB Architecture: x86_64 GPU: NVIDIA GeForce GTX TITAN X || NVIDIA || 535.183.01

If applicable, add mockups / screenshots to help present your vision of the feature

No response

drdozer avatar Dec 06 '24 14:12 drdozer

image

Here's an example of a totally vacuuous hallucination.

drdozer avatar Dec 06 '24 14:12 drdozer

I found getting way too aggressive and distracting with the recent updates, where it tries to suggest way too many lines and confusing me most of the time. Plus, I can't just accept the code since most of it is hallucination.

https://github.com/user-attachments/assets/453ff4ea-e624-4b54-95c7-0e362adf5b1a

chungweileong94 avatar Dec 25 '24 06:12 chungweileong94

I'm also finding it too aggressive, to the point where just leaving my cursor somewhere modifies the whole line of code, removes real code and shows the completed version. I'm struggling to use it at all now.

lougreenwood avatar Jan 04 '25 15:01 lougreenwood

Just wanted to chime in and say that this is an issue for me, as well! More often than not, I get suggestions where the first part of the suggestion is exactly what I want, but I can't accept it because it will add several large chunks of irrelevant code after it.

airjp73 avatar Jun 01 '25 14:06 airjp73

https://github.com/user-attachments/assets/6589f1b3-f674-483b-9023-085cd852460c

I’m not sure if it’s the same behavior, but sometimes it acts very aggressively, yet weakly. 😄 Like, it suggests something right in the middle of a string but only wants to add a single letter.

josser avatar Jun 04 '25 13:06 josser