chatgpt-shell
chatgpt-shell copied to clipboard
Streaming text appears below the visible Emacs window
After git pull I could see many improvements you made, thank you. Now I am observing that streaming text often goes below the visible Emacs window, and then I need to scroll down to see it, while before the scrolling was automatic, if I remember well.
Ah yes, this was intended as it enables moving the point or scrolling elsewhere while response is in progress. It should, however, jump to the end of the reponse when finished. Is that what you're observing?
In my case it does jump to the end of the response when chatgpt is done. I am getting used to that since the realtime scrolling in other emacs buffers spoiled me. there is this urge to scroll immediately and also the possibility to think nothing happened the AI is hanging/frozen. Not sure what the nicest way would be.
I prefer to see text being written in Emacs during the time it is being written, and not something being written and invisible in Emacs just to appear later. Use cases may vary. Text I am getting from ChatGPT is long.
Could a reposition of the gpt prompt when starting to reply to the top of the buffer be a compromise? … but maybe that’s disorienting (layout shift)
The behaviour I'd like to eventually adopt is similar to eshell's... if point is at end of the buffer automatically scroll on new text arrival. Otherwise keep location. This should appeal to both camps. Not had time to look into adding this.
if point is at end of the buffer automatically scroll on new text arrival. Otherwise keep location. This should appeal to both camps. Not had time to look into adding this.
This is now implemented.
Hey @xenodium,
It should, however, jump to the end of the reponse when finished
Sorry to comment on a closed issue. But. Is it possible to disable this behavior?
For some context:
When using chatgpt-shell for programming, LLM responses are usually long. I scroll up to the prompt I just sent (which prevents the automatic scrolling while the response is being streamed) and start reading the response from the beginning. But then, when the response finishes being streamed, the window scrolls to the end, and I lose my train of thought reading the response from the beginning.
Hi @mpereira
Sorry to comment on a closed issue. But. Is it possible to disable this behavior?
Sure. Mind filing a feature request to make this behaviour configurable? PR's welcome too.
the window scrolls to the end, and I lose my train of thought reading the response from the beginning.
Have you tried the compose UX? These days, I'm using it primarily (via M-x chatgpt-shell-prompt-compose / I bound to C-c C-e), rarely falling back to the shells.
Sure. Mind filing a feature request to make this behaviour configurable?
Feature request created: https://github.com/xenodium/chatgpt-shell/issues/279.