Add configurable sidebar thread preview count#1856
Add configurable sidebar thread preview count#1856Marve10s wants to merge 9 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Why ? When working on more than 3+ projects with default thread number, I need to scroll. Instead, I'd prefer to have less threads because I don't need 6 by default while working on multiple stuff. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit afe3877. Configure here.
ApprovabilityVerdict: Approved This PR adds a user-configurable setting for sidebar thread preview count (2-10), replacing a hardcoded value. The changes are self-contained UI preferences with proper validation, affecting only display count in the sidebar with no security or runtime behavior implications beyond the intended feature. You can customize Macroscope's approvability policy. Learn more. |
Drop the blank-line removal that was left over from the dev bootstrap fix commits — not in scope for this PR.
fyi Added by accident, PR is no longer contains Vite config changes |
Resolve merge conflicts: - settings.ts: keep sidebarThreadPreviewCount with Effect.succeed() pattern - useSettings.ts: drop removed migration functions, keep upstream's reset helper - useSettings.test.ts: delete (migration tests no longer needed)
The clientPersistence test was missing the new field after merge.

What changed
2-10.-/ numeric input /+control.Notes
apps/web/vite.config.tsthat was needed to verify the app locally.Validation
bun fmtbun lintbun typecheckNote
Medium Risk
Adds a new persisted client setting and updates sidebar rendering/menu logic to use it, so regressions could affect settings deserialization or thread list visibility across web/desktop.
Overview
Adds a configurable sidebar thread preview limit. The sidebar no longer uses a hardcoded
6thread preview cap; it now reads/writes a persistedsidebarThreadPreviewCountsetting and clamps values to2–10.Updates the sidebar options menu to include a compact
-/ numeric input /+control for this value (with key handling to avoid menu shortcuts interfering), and updates the settings restore-defaults prompt to include Visible threads when changed. Tests for desktop persistence and the weblocalApibridge/storage paths are updated to include the new setting.Reviewed by Cursor Bugbot for commit 2e8255d. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add configurable sidebar thread preview count per project
sidebarThreadPreviewCountsetting (default: 6, clamped between min and max) toClientSettingsSchemain settings.ts.THREAD_PREVIEW_LIMITin Sidebar.tsx with the new user setting, so collapsed project thread lists reflect the stored preference.ProjectSortMenu) with increment/decrement buttons and a numeric input that clamps and persists changes immediately.sidebarThreadPreviewCountin the restore-defaults flow in SettingsPanels.tsx so it appears in the confirmation message when it differs from the default.Macroscope summarized 2e8255d.