Skip to content

Fix delay in Copilot completion#46885

Merged
osiewicz merged 2 commits intozed-industries:mainfrom
hicder:hicder/copilot
Jan 15, 2026
Merged

Fix delay in Copilot completion#46885
osiewicz merged 2 commits intozed-industries:mainfrom
hicder:hicder/copilot

Conversation

@hicder
Copy link
Contributor

@hicder hicder commented Jan 15, 2026

This PR fixes an issue when copilot takes 3s to complete. Right now, in copilot edit prediction, we issue requests to both the Next Edit Suggestion (NES) and the regular copilot inline completion endpoints. Whichever come back first will be shown. However, there is a bug where even if inline completion (which is usually much faster) comes back, we still wait for NES (which takes about 3s).

This should address #46389 and #46880

Release notes:

  • Improved responsiveness of Copilot inline completions.

@cla-bot
Copy link

cla-bot bot commented Jan 15, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @hicder on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Jan 15, 2026
@hicder
Copy link
Contributor Author

hicder commented Jan 15, 2026

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Jan 15, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @hicder on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Jan 15, 2026

The cla-bot has been summoned, and re-checked this pull request!

@hicder
Copy link
Contributor Author

hicder commented Jan 15, 2026

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 15, 2026
@cla-bot
Copy link

cla-bot bot commented Jan 15, 2026

The cla-bot has been summoned, and re-checked this pull request!

@zed-industries-bot
Copy link
Contributor

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A
Messages
📖

This PR includes links to the following GitHub Issues: #46389, #46880
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against f01200b

@maxdeviant maxdeviant changed the title Fix delay in copilot completion Fix delay in Copilot completion Jan 15, 2026
@osiewicz osiewicz merged commit 4a2d1e3 into zed-industries:main Jan 15, 2026
33 checks passed
@osiewicz
Copy link
Member

Thank you!

@osiewicz
Copy link
Member

/cherry-pick preview

github-actions bot pushed a commit that referenced this pull request Jan 15, 2026
This PR fixes an issue when copilot takes 3s to complete. Right now, in
copilot edit prediction, we issue requests to both the Next Edit
Suggestion (NES) and the regular copilot inline completion endpoints.
Whichever come back first will be shown. However, there is a bug where
even if inline completion (which is usually much faster) comes back, we
still wait for NES (which takes about 3s).

This should address #46389
and #46880

Release notes:
- Improved responsiveness of Copilot inline completions.
zed-zippy bot added a commit that referenced this pull request Jan 15, 2026
…6895)

Cherry-pick of #46885 to preview

----
This PR fixes an issue when copilot takes 3s to complete. Right now, in
copilot edit prediction, we issue requests to both the Next Edit
Suggestion (NES) and the regular copilot inline completion endpoints.
Whichever come back first will be shown. However, there is a bug where
even if inline completion (which is usually much faster) comes back, we
still wait for NES (which takes about 3s).

This should address #46389
and #46880

Release notes:
- Improved responsiveness of Copilot inline completions.

Co-authored-by: Hieu Pham <hicder@users.noreply.github.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 first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants