Add configurable sidebar thread preview count#1856
Add configurable sidebar thread preview count#1856Marve10s wants to merge 11 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
Moderate risk because it changes the persisted
ClientSettingsschema and uses the new value to control sidebar rendering, which could affect settings decode/default behavior and UI interactions.Overview
Adds a new persisted client setting,
sidebarThreadPreviewCount(default6, clamped2–10), to control how many threads are shown for a collapsed project in the sidebar.Updates the web sidebar to replace the hardcoded preview limit with this setting and adds a compact
-/ numeric input /+control in the sidebar options menu to adjust and persist the value. Also updates restore-defaults messaging and persistence-related tests to include the new field.Reviewed by Cursor Bugbot for commit deaf4f1. 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 deaf4f1.