xenodium / chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, Gemini, Ollama) + editing integrations
https://lmno.lol/alvaro
GNU General Public License v3.0
862 stars 77 forks source link

Closing the chatgpt-shell compose window while answer is streaming in 'hangs' Emacs until finished and produces many errors #187

Closed DivineDominion closed 10 months ago

DivineDominion commented 10 months ago

When a long answer comes in but you close the compose window with q, Emacs complains and refuses input until the answer is finished:

error in process filter: Selecting deleted buffer [258 times]
error in process sentinel: Selecting deleted buffer [2 times]
xenodium commented 10 months ago

Eeeek. That's rough. Sorry. Thanks for filing. Lemme look into it...

DivineDominion commented 10 months ago

Can confirm it sort of works, thank you!

Guess when I hit q in this answer, though :)

2024-01-13 11-05-48 Emacs - chatgpt 4-1106-previewGeneral

The streaming of answers arguably should not stop to the main buffer?

xenodium commented 10 months ago

The streaming of answers arguably should not stop to the main buffer?

good point. the shell now continues to stream after killing the compose buffer as of 3bf5464.