Skip to content

feat(sidebar): auto-move active threads to top on user activity - #67

Merged
aaf1007 merged 1 commit into
mainfrom
loopy/implement-issue-55
Nov 29, 2026
Merged

aaf1007 merged 1 commit into
mainfrom
loopy/implement-issue-55

Conversation

@aaf1007

@aaf1007 aaf1007 commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Projects in the sidebar float to the top on recent user activity (sidebarProjectSortOrder, default updated_at), but active threads inside each project stayed in creation/manual order so threads being actively worked on could sit below stale ones.

This wires the existing sidebarThreadSortOrder setting (extended with "manual", keeping default "updated_at") into shared active-thread sorting across web, desktop, and mobile:

  • Added sortActiveThreads in packages/client-runtime/src/state/threadSort.ts supporting updated_at, created_at, and manual. In updated_at mode, threads sort by latestUserAuthoredMessageAt (falling back to createdAt) and unsettledAt, ignoring streaming updatedAt ticks and agent-authored messages so lists do not jitter while streaming.
  • Kept pinned threads above auto-ordered threads and left project ordering behavior (updated_at, created_at, manual) unchanged.
  • Updated the web/desktop sidebar (Sidebar.tsx, Sidebar.logic.ts) so active threads follow sidebarThreadSortOrder in the Projects layout and when the Working section is off in the Inbox layout; dragging an active thread to reorder materializes fresh keys from the displayed order and switches sidebarThreadSortOrder to "manual", while cross-section drags (unpin/unsettle/wake) keep auto-ordering.
  • Updated the mobile Home screen, tablet sidebar, and arrangement sheet (threadListV2.ts, useThreadListV2.ts, HomeScreen.tsx, ThreadNavigationSidebar.tsx, ThreadArrangementSheet.tsx) to honor sidebarThreadSortOrder when the Working section is off.
  • Exposed Thread order in Settings → General on web, desktop, and mobile, updated translations across all locales, updated docs/user/thread-sidebar.md, and added unit and browser tests.

Closes #55

Implemented with Gemini 4 Neon (High) via the Antigravity harness.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 50 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 741235a and 5cb6d6e.

Files selected for processing: 41

  • apps/mobile/src/features/home/HomeScreen.tsx
  • apps/mobile/src/features/settings/ThreadSettingsSections.tsx
  • apps/mobile/src/features/settings/settings-search.ts
  • apps/mobile/src/features/threads/ThreadArrangementSheet.tsx
  • apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
  • apps/mobile/src/features/threads/threadListV2.test.ts
  • apps/mobile/src/features/threads/threadListV2.ts
  • apps/mobile/src/features/threads/use-thread-list-v2-shelf-preferences.ts
  • apps/mobile/src/features/threads/useThreadListV2.ts
  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json
  • apps/mobile/src/persistence/mobile-preferences.ts
  • apps/web/src/components/Sidebar.browser.test.tsx
  • apps/web/src/components/Sidebar.logic.test.ts
  • apps/web/src/components/Sidebar.logic.ts
  • apps/web/src/components/Sidebar.tsx
  • apps/web/src/components/settings/SettingsPanels.tsx
  • apps/web/src/components/settings/settingsSearch.ts
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json
  • docs/user/thread-sidebar.md
  • packages/client-runtime/src/state/threadSort.test.ts
  • packages/client-runtime/src/state/threadSort.ts
  • packages/contracts/src/settings.test.ts
  • packages/contracts/src/settings.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@aaf1007
aaf1007 merged commit bb12706 into main Nov 29, 2026
2 checks passed
@aaf1007
aaf1007 deleted the loopy/implement-issue-55 branch November 29, 2026 03:59
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.

Threads in a project should auto-move to the top on activity, like projects do

1 participant