[PR #8560] fix(tui): Center the initially selected session in the session_list (resolves #8558) #12792

Closed
opened 2026-02-16 18:17:41 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8560

State: closed
Merged: Yes


What does this PR do?

This PR attempts to ensure that the initially selected session when the session_list is opened is always within the viewport when opening the session list by trying to center it within the viewport.

Resolves #8558

Before (after following the procedure described in the issue)

Screenshot 2026-01-14 at 6 40 43 PM

After

Screenshot 2026-01-14 at 6 41 35 PM

How did you verify your code works?

A/B testing and running all tests in the project to ensure that no failures were introduced.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8560 **State:** closed **Merged:** Yes --- ### What does this PR do? This PR attempts to ensure that the initially selected session when the `session_list` is opened is always within the viewport when opening the session list by trying to center it within the viewport. Resolves #8558 #### Before (after following the procedure described in the issue) <img width="601" height="597" alt="Screenshot 2026-01-14 at 6 40 43 PM" src="https://github.com/user-attachments/assets/9b721585-1e26-4d59-ac65-6be46d65206d" /> #### After <img width="583" height="585" alt="Screenshot 2026-01-14 at 6 41 35 PM" src="https://github.com/user-attachments/assets/4dd578d8-4b27-437b-8d2d-839fbd92ee79" /> ### How did you verify your code works? A/B testing and running all tests in the project to ensure that no failures were introduced.
yindo added the pull-request label 2026-02-16 18:17:41 -05:00
yindo closed this issue 2026-02-16 18:17:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12792