Skip to content

Add recent activity ordering for sidebar projects #1614

Description

@ryanbbrown

Problem

Threads move to the top when they receive recent activity, but project sections only support manual drag order. Active work can therefore remain buried lower in the sidebar.

Proposed behavior

Add a browser-local Section order choice for project mode:

  • Drag order, which remains the default.
  • Recent activity, which moves a project when activity moves one of its threads.
  • Treat the projectless Threads section like a project when ordering by recent activity.
  • Keep pinned content first. Pinned thread activity must not move its source project.
  • Preserve the saved manual order when switching between the two modes.

Implementation

I would like to implement this feature. I already have the implementation complete on my fork at bb/sort-projects-by-modified-date-thr_er6qt4d3kh, including tests and an independent review panel cycle.

I am waiting to open the pull request until this proposal receives sign-off, as required by CONTRIBUTING.md.

AGENT GENERATED: by GPT-5

Activity

  1. added
    ui
    on Aug 18, 2026
  2. hxy91819 commented on Sep 9, 2026

    @hxy91819

    Independent validation note: I rebased the implementation onto the official desktop-v0.42.1 baseline and reran the app typecheck, lint, and build; 15 focused tests for activity ordering, project ordering, and display options; and changed-file secret/privacy checks. All passed, with no new secret findings. The patch remains browser-side, keeps Drag order as the default, and makes Recent activity opt-in. I think this is a valuable, low-risk UX improvement and support maintainer sign-off so @ryanbbrown can open the intended PR.

  3. hxy91819 commented on Sep 10, 2026

    @hxy91819

    Refinement and implementation update

    I implemented and validated a refinement of the original proposal on hxy91819/bb@feature/recent-project-activity-main, commit 8e97b5048.

    The key adjustment is that project-level Recent activity should mean recently user-initiated work, not every thread lifecycle update. The existing thread sort should remain dynamic, but project sections should move only after an accepted user work request, then stay stable through completion, failure, stop, reconnect, automatic retry, child-thread lifecycle changes, title edits, and attention updates.

    The implementation uses a versioned, browser-local project promotion sequence. Pinned content remains first; promoted projects sort by the most recent accepted user action; unpromoted projects fall back to saved drag order. It deliberately adds no database migration, server or daemon protocol field, Plugin SDK surface, or cross-device synchronization.

    Covered user actions are new threads with a prompt, normal sends, queue creation/send, and accepted pending-interaction answers. Empty-thread creation and rejected requests do not promote a project. There is no browser-side sdk.threads.retry or separate resume entry point; CLI retry is intentionally excluded because project order is browser-local.

    Validation on the locally aggregated implementation:

    • pnpm exec turbo run test --filter=@bb/app --only -- --run src/components/sidebar/projectActivityOrder.test.ts src/components/sidebar/ProjectList.project-order.test.tsx src/components/sidebar/sidebarCollapsedAtoms.migration.test.ts src/hooks/mutations/thread-runtime-mutations.test.tsx src/hooks/mutations/thread-interaction-mutations.test.tsx — 5 files, 23 tests passed.
    • pnpm exec turbo run build --filter=@bb/app — passed.

    No screenshot is attached because the change is a temporal ordering behavior; the focused tests capture the observable order transitions and persistence rules.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions