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

Copilot chat hangs #28

Open
dov opened this issue Sep 17, 2024 · 5 comments
Open

Copilot chat hangs #28

dov opened this issue Sep 17, 2024 · 5 comments

Comments

@dov
Copy link

dov commented Sep 17, 2024

Every now and then copilot-chat hangs on me. When this happens, when I press enter, I will never get an answer. Unfortunately, I don't have a reproducible scenario.

I have looked for a emacs buffer that may contain a clue what happened, and the only buffer that matches "chat" that may contain something is copilot-chat-curl-stderr which contains:

Process copilot-chat-curl stderr finished

When this happens, the only way back into chat that I have found is to restart Emacs. After restarting emacs and rerunning (copilot-chat-shell-maker-display) , I'm back to into the chat again. Is there a less disruptive way of restarting the chat?

I'm running commit 3516109 from master.

@kassick
Copy link
Contributor

kassick commented Sep 17, 2024

Could you try with bafdb51 ?

I had the same issue -- in the end it was caused by the API returning an error payload that was not handled / displayed to the user (in my case, I was reaching the token limit). @chep has recently merged a change I've proposed to handle this situation.

If the API is returning some error code, latest version will help you to see what's happening ;)

Alternatively, you can update copilot-chat--curl-make-process to add -vvv to the curl options to get more info in stderr and/or debug-on-entry/edebug copilot-chat--curl-analyze-response to see what (if any) data is being returned by the API.

@chep
Copy link
Owner

chep commented Sep 17, 2024

It's not the answer you expect but for your information, you can use copilot-chat-display even with shell-maker as frontend.

@chep
Copy link
Owner

chep commented Sep 17, 2024

Did you try killing the buffer and calling copilot-chat-reset ? It is strange to have to restart emacs.

@dov
Copy link
Author

dov commented Sep 17, 2024

Did you try killing the buffer and calling copilot-chat-reset ? It is strange to have to restart emacs.

Thanks! This was the immediate command that I was looking for! :-) Now I can at least restart the chat shell when I get stuck!

I'll try the other remedies as well.

@chep
Copy link
Owner

chep commented Sep 17, 2024

Are you using last revision as @kassick said ?

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

3 participants