[PR #11758] feat(app): add dynamic sidebar sorting for active projects and sessions #13926

Open
opened 2026-02-16 18:18:45 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


Summary

Closes #11759

Automatically moves projects and sessions to the top of the sidebar when Claude starts working on them. This makes it easier to track and switch between active work when managing multiple projects.

Changes

  • Server context: Added dynamicSort setting with persistence, bringToTop() function to move active project to top
  • Global sync: Track session activity via timestamps, trigger sorting when session status becomes "busy"
  • Layout: Sort sessions by activity timestamp when dynamic sorting is enabled
  • Settings UI: Added toggle in Settings → General → Desktop section
  • i18n: Included translations for all 15 supported languages

How it works

  1. When Claude starts working on a session (status → "busy"), the feature:
    • Moves the project to the top of the sidebar
    • Records a timestamp for the session
  2. Sessions within a project are sorted by their activity timestamps (most recent first)
  3. The feature can be toggled on/off in Settings → General → Desktop → "Dynamic sidebar sorting"

Screenshots

The setting appears in the new "Desktop" section under General settings.

Testing

  • Tested locally with multiple projects
  • Verified projects move to top when Claude starts working
  • Verified sessions sort correctly within projects
  • Verified setting toggle works and persists
  • TypeCheck passes
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11758 **State:** open **Merged:** No --- ## Summary Closes #11759 Automatically moves projects and sessions to the top of the sidebar when Claude starts working on them. This makes it easier to track and switch between active work when managing multiple projects. ## Changes - **Server context**: Added `dynamicSort` setting with persistence, `bringToTop()` function to move active project to top - **Global sync**: Track session activity via timestamps, trigger sorting when session status becomes "busy" - **Layout**: Sort sessions by activity timestamp when dynamic sorting is enabled - **Settings UI**: Added toggle in Settings → General → Desktop section - **i18n**: Included translations for all 15 supported languages ## How it works 1. When Claude starts working on a session (status → "busy"), the feature: - Moves the project to the top of the sidebar - Records a timestamp for the session 2. Sessions within a project are sorted by their activity timestamps (most recent first) 3. The feature can be toggled on/off in Settings → General → Desktop → "Dynamic sidebar sorting" ## Screenshots The setting appears in the new "Desktop" section under General settings. ## Testing - [x] Tested locally with multiple projects - [x] Verified projects move to top when Claude starts working - [x] Verified sessions sort correctly within projects - [x] Verified setting toggle works and persists - [x] TypeCheck passes
yindo added the pull-request label 2026-02-16 18:18:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13926