You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Changing the sidebar project filter collapses an expanded Settled shelf back to 10 threads #34291
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open the sidebar and expand the Settled shelf. It shows 10 settled threads.
Click "Show 25 more" once or more, so the shelf shows more than 10.
Change the project filter in the sidebar (add, remove or clear a project).
Expected behavior
The Settled shelf keeps the number of threads I expanded it to, now for the filtered projects.
Actual behavior
The Settled shelf goes back to 10 threads. To see the older threads again I have to click "Show 25 more" again after every filter change.
Cause
settledTail in apps/web/src/components/Sidebar.tsx stores the count with the projectScopeKey it was set for. When the project filter changes, projectScopeKey changes and the count resets to SETTLED_TAIL_INITIAL_COUNT (10):
Looking at a fix for this. The reset comes from settledTail in Sidebar.tsx being keyed to projectScopeKey, which has been the case since sidebar v2 (#5672), so I want to check the intended behavior before opening a PR.
Would you take a change that keeps the expanded count when the project filter changes (one count for the shelf, dropping the scope key)? Or is the reset intended, for example to keep the rendered list short after switching filters?
If keeping it is fine, the change is small: drop the scope key from that state, plus a sidebar test and before/after captures.
As a user — I expected the count to stay when I change the filter. I expand the shelf to look for an older thread, then use the filter to find narrow down. and the reset undoes the expansion. One count for the shelf works for me. I'll leave it to the maintainers to say whether the reset was intended.
Activity
Karthik-beta commentedon Nov 11, 2026
Looking at a fix for this. The reset comes from
settledTailinSidebar.tsxbeing keyed toprojectScopeKey, which has been the case since sidebar v2 (#5672), so I want to check the intended behavior before opening a PR.Would you take a change that keeps the expanded count when the project filter changes (one count for the shelf, dropping the scope key)? Or is the reset intended, for example to keep the rendered list short after switching filters?
If keeping it is fine, the change is small: drop the scope key from that state, plus a sidebar test and before/after captures.
lewis-zh commentedon Nov 11, 2026
As a user — I expected the count to stay when I change the filter. I expand the shelf to look for an older thread, then use the filter to find narrow down. and the reset undoes the expansion. One count for the shelf works for me. I'll leave it to the maintainers to say whether the reset was intended.