Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-line code completions for the inline assistant seem to write tokens & lines of code in reverse order #25788

Open
kurtbuilds opened this issue Feb 27, 2025 · 0 comments

Comments

@kurtbuilds
Copy link
Contributor

Summary

This is easiest to show with a screenshot:

Image

I'm working on an application that has a notion of "dispute" objects, and "messages" that comprise back and forth on the dispute.

I asked the inline assistant this prompt:

create a serde struct that contains a dispute and a message, and then have this function return that struct

and the code is spit out is reasonable, except that it seemed to spit out the tokens and lines in reverse order. This is what happens visually as well: as LLM output is received, the tokens are appended at the start of the previous tokens instead of the end.


This doesn't always happen, so something about the index or data structure/file positions for the file is somehow getting corrupted, where the insertion happens as described. As a comparison, opening a random other file in the codebase, and using the same prompt gives more sane results:

Image

Zed Version and System Specs

Zed: v0.175.6 (Zed)
OS: macOS 15.3.1
Memory: 128 GiB
Architecture: aarch64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant