gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.48k stars 761 forks source link

Auto Scroll don't work some times #212

Closed djmMax closed 1 year ago

djmMax commented 1 year ago

Verify it's not a duplicate bug report

Verify troubleshooting guide is missing steps to solve this issue

Describe the Bug

Peek 2023-03-11 07-27

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

I am using OpenAI API Key with gpt-3.5-turbo I didn't observe that issue with Browser Auto-login yet

Additional context

No response

gencay commented 1 year ago

@djmMax thanks for reporting the issue. Fortunately, models became much faster especially with the gpt3.5 the responses are almost instant relatively. The autoscroll cannot keep up with the fast streaming results. I will work on a fix in future releases for it.

ghost commented 1 year ago

Yeah, just found the same bug, but it's just a minor annoyance, thanks a lot for the extension :)

flutterrausch commented 1 year ago

Can confirm on MacOS, but really minor.

knoll3 commented 1 year ago

I suggest the following improvements for the auto-scroll behavior:

  1. Activate the auto-scroll only when the user is at or near the bottom of the page. This will allow them to read previous text while a new answer is being generated without being interrupted by automatic scrolling.

  2. Automatically scroll to the bottom when a question is submitted, especially if the user has initiated a command from the code (e.g., ChatGPT: Optimize). This ensures that the auto-scroll feature becomes active, enabling the user to view the response without needing to manually scroll down.