feat(web): regenerate selected thread titles - #4814
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 Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
ApprovabilityVerdict: Needs human review This PR adds a new user-facing feature: bulk regeneration of thread titles via a new context menu action in the sidebar. While the implementation is well-scoped with proper tests and clean logic, new capabilities that introduce user-facing behavior warrant human review. You can customize Macroscope's approvability policy. Learn more. |
Selecting multiple threads in Sidebar V2 still requires opening each thread menu individually to regenerate its title.
This adds a bulk Regenerate titles action to the existing multi-select context menu. It queues only supported threads that are not already regenerating, keeps the actionable count honest, and preserves the selection if a request fails so the remaining threads can be retried.
Tested with focused sidebar and thread-selection tests, targeted lint, and the web typecheck.
Made with GPT-5.6-sol in T3 Code via the Codex harness.
Note
Low Risk
UI-only extension reusing the existing single-thread
regenerateTitlemetadata path; no auth or data-model changes.Overview
Adds Regenerate titles to Sidebar V2’s multi-select context menu so users can queue title regeneration without opening each thread’s menu.
Selection is filtered to threads whose environment exposes
threadTitleRegeneration, and the label counts only threads that are not already regenerating (viaisThreadTitleRegenerationPending). When every supported thread is in flight, the item shows Regenerating… (N) and is disabled; if none support the feature, the action is omitted. Choosing the action callsupdateThreadMetadatawithregenerateTitle: truesequentially; on failure it toasts and keeps the selection so remaining threads can be retried; on full success it clears selection.Menu item shape and labels live in a new
buildBulkTitleRegenerationContextMenuItemhelper inSidebar.logic.ts, covered by unit tests.Reviewed by Cursor Bugbot for commit 654eb2b. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add bulk thread title regeneration action to sidebar multi-select context menu
threadTitleRegenerationcapability flag.updateThreadMetadatawithregenerateTitle: truefor each eligible thread, shows an error toast on failure, and clears the selection on success.buildBulkTitleRegenerationContextMenuItemin Sidebar.logic.ts to compute the menu item definition fromsupportedCountandactionableCount.Macroscope summarized 654eb2b.