Skip to content

TUI: option to keep the scroll position when a prompt is submitted #53186

Closed as not planned

Description

@Nowaker

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Submitting a prompt in a session always scrolls the transcript to the bottom (toBottom() from the session prompt's onSubmit). If you had scrolled up to read earlier output, that position is lost the moment anything is submitted.

This is most disruptive when prompts are not typed by the person reading: tools that drive the TUI (multiplexers, orchestrators, scripts typing into the composer) submit follow-up prompts while you are reading further up, and every one of them yanks the view back down.

Proposal: an opt-in TUI setting, keep_scroll_on_submit in tui.json (default false, so current behavior is unchanged), plus a runtime toggle (/keep-scroll in the command palette, persisted like /timestamps). When on, submitting leaves the viewport where it is. A viewport already at the bottom keeps following new output via the existing sticky scroll, so nothing changes for users who are not scrolled up.

Steps to see the current behavior:

  1. Get a session transcript taller than the terminal.
  2. Scroll up a few pages (PageUp).
  3. Submit any prompt.
  4. The view jumps to the bottom.

OpenCode version: dev @ 907b3bc

Activity

  1. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The feature request title must start with [FEATURE]:.

    Please edit this issue to address the above within 72 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window.

    Feel free to open a new issue that follows our issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions