Skip to content

Comments

Fix welcome sessions list scrolling and archived session flicker#296637

Merged
daviddossett merged 1 commit intomainfrom
daviddossett/fix-welcome-sessions-archived
Feb 20, 2026
Merged

Fix welcome sessions list scrolling and archived session flicker#296637
daviddossett merged 1 commit intomainfrom
daviddossett/fix-welcome-sessions-archived

Conversation

@daviddossett
Copy link
Collaborator

Problem

The welcome view sessions list allows scrolling even when there are only 1-2 items, and archived sessions flicker in when scrolling.

Root Cause

The container height in layoutSessionsControl() is calculated based on non-archived sessions, but the AgentSessionsFilter doesn't exclude archived sessions from the tree data source (it only does so when groupResults is set to Capped, which the welcome view doesn't use). This mismatch means the tree renders more items than the container is sized for, causing unwanted scrolling and archived session flicker.

Fix

Add overrideExclude to the filter options to exclude archived sessions from the tree data, matching the height calculation.

Add overrideExclude to the AgentSessionsFilter in the welcome view to
exclude archived sessions from the tree data source, matching the height
calculation in layoutSessionsControl which already filters them out.
Copilot AI review requested due to automatic review settings February 20, 2026 21:55
@daviddossett daviddossett marked this pull request as ready for review February 20, 2026 21:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a UI bug in the welcome view where the sessions list allows unwanted scrolling and archived sessions flicker when scrolling. The root cause is a mismatch between the height calculation (which excludes archived sessions) and the filter data (which doesn't exclude them by default). The fix adds an overrideExclude callback to the filter to ensure archived sessions are excluded from the tree data, matching the height calculation logic.

Changes:

  • Add overrideExclude option to AgentSessionsFilter to exclude archived sessions in the welcome view

@daviddossett daviddossett enabled auto-merge (squash) February 20, 2026 21:59
@daviddossett daviddossett merged commit 95a14d7 into main Feb 20, 2026
23 checks passed
@daviddossett daviddossett deleted the daviddossett/fix-welcome-sessions-archived branch February 20, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants