Skip to content

Unpredictable selection movement when the current item in the session_list is marked for deletion.  #173

@ariane-emory

Description

@ariane-emory

Description

When a session has been marked down for deletion in the session_list using Ctrl+D and is then unselected - for instance by striking the up or down arrow keys, the viewport in the session_list window unexpectedly moves to some unpredictable position (usually not including the now-selected item).

This is unintuitive and startling behaviour. If the up or down arrow keys are struck while an item is a marked for deletion, the item should be unmarked and the selection should be moved upwards or downwards in the session_list without causing the viewport to jump.

Plugins

None

OpenCode version

HEAD of dev at time of issue submission

Steps to reproduce

  1. Open the session_list and mark an item for deletion.
  2. Mark an item for deletion with control+d.
  3. Observe that the viewport jumps to a position that does not include the current selection.

Screenshot and/or share link

Initial state: item marked for deletion:

Image

After hitting 'up' key once, selected item not in viewport:

Image

After hitting 'up' key twice, viewport returned to correct position:

Image

Operating System

MacOS Sequoia latest.

Terminal

iTerm2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions