Skip to content

[UX] oclite: Cannot scroll up — terminal scroll buffer broken #66

Description

@randomm

Problem

Users cannot scroll up in the terminal to see previous output. Mouse scroll and keyboard scroll do not work. Only the current viewport content is visible.

Root Cause

Likely caused by ANSI cursor manipulation (cursor save/restore, cursor positioning) in the oclite rendering code. These escape sequences can break the terminal's normal scroll buffer behavior.

Possible culprits:

  • cursor.save / cursor.restore sequences
  • cursor.home or absolute cursor positioning
  • Alternate screen buffer activation (unlikely but worth checking)

Expected

Normal terminal scroll behavior — users should be able to scroll up to see previous commands and responses.

Files

  • packages/opencode/src/cli/lite/index.ts — ANSI cursor sequences
  • packages/opencode/src/cli/lite/select.ts — cursor save/restore in selection UI
  • packages/opencode/src/cli/lite/bottombar.ts — cursor manipulation

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions