fix(cli): disable idle refresh_interval in non-fullscreen mode to prevent auto-scroll - #48321
Closed
vanthinh6886 wants to merge 1 commit into
Closed
fix(cli): disable idle refresh_interval in non-fullscreen mode to prevent auto-scroll#48321vanthinh6886 wants to merge 1 commit into
vanthinh6886 wants to merge 1 commit into
Conversation
…vent auto-scroll After commit 6724daa, the classic CLI uses refresh_interval=1.0 to keep the status bar clock ticking during idle. In non-fullscreen mode (full_screen=False), this periodic redraw sends ANSI output to the terminal once per second. Terminal emulators with "auto-scroll on output" enabled (Xshell, iTerm2, Windows Terminal, etc.) interpret this output as new content and snap the viewport to the bottom — even when the user has manually scrolled up to read conversation history. Fix: set refresh_interval=0 in non-fullscreen mode. The status bar clock will freeze after the turn completes, but any user input (key press, paste) triggers a full repaint that refreshes it. Fixes NousResearch#48309
Collaborator
Contributor
Contributor
Ari4ka
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After commit 6724daa, the classic CLI uses refresh_interval=1.0 to keep the status bar clock ticking during idle. In non-fullscreen mode, this periodic redraw sends ANSI output to the terminal once per second.
Terminal emulators with auto-scroll on output (Xshell, iTerm2, Windows Terminal) interpret this as new content and snap the viewport to the bottom.
Fix
Set refresh_interval=0 in non-fullscreen mode. The clock freezes after turn completes but any user input triggers a full repaint.
Changes
Fixes #48309