-
Notifications
You must be signed in to change notification settings - Fork 34
feat(ui): add auto_scroll config for output window #154
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
Conversation
Introduce a new `auto_scroll` option in the output window configuration. This allows users to control whether the output window should automatically scroll to the bottom when new content is rendered. The `always_scroll_to_bottom` option still takes precedence if enabled.
|
@sudo-tee ey! thanks for this plugin, when opencode response is rendered and i move focus to that window, if i want to copy one of the last sentences, i cant because there is an auto scroll behaviour by default Ideally it should only auto scroll down once the llm responds, and not every time, the correct way to implemente it is like it is now, like in a terminal buffer, where if the cursor is at the end, the new content is appeded, and the cursor keeps at the end. However if the cursor is not at the end it means the user is reviewing something so we should not auto scroll This behaviour was a little bit more involved, so till we get to it i simply coded a configuration option to disable auto_scroll entierly which makes it at least usable if you want to copy the last part of a response |
|
Thanks for the PR, I looked at the code and I fail to see why setting the Maybe I am missing something. There might be something to fix in the autoscroll behavior though |
|
@sudo-tee you can see the problem in this video, if i want to visually select something from the output pane which is in the last lines i can't because there is an autoscroll behaviour by default Ideally the autoscroll to bottom should only be performed once the llmm responds and in case the cursor is near the end Screen.Recording.2025-12-29.at.09.38.20.mov |
|
Ok I see the issue, Does it happen every time ? This is rather strange as I often copy and paste from the pane and not experiencing this. I will have a look to see if I can reproduce it. |
|
I will merge it, but will have a look at a better solution. Thanks for the PR :) |
|
@jugarpeupv Now the output never scrolls when opening an old session. Which leads to missing some permissions request, and never seeing new content. |
Introduce a new
auto_scrolloption in the output window configuration. This allows users to control whether the output window should automatically scroll to the bottom when new content is rendered. Thealways_scroll_to_bottomoption still takes precedence if enabled.