CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.52k stars 71 forks source link

Low internet network will crash nvim (WSL2 Ubuntu) #262

Closed chuongxxx closed 5 months ago

chuongxxx commented 5 months ago

I'm using Lazyvim on WSL2 Ubuntu, and Copilot occasionally causes Neovim to freeze while generating the answer. The issue might be due to lag in my internet connection or WSL2. Please advise!

deathbeam commented 5 months ago

If your connection is super slow then i can see it as authentication is synchronous so when it tries to get new token (when it expires) it blocks. I can try to make it async and that should solve it