Skip to content

feat(web): regenerate selected thread titles - #4814

Merged
t3dotgg merged 1 commit into
t3code/regenerate-thread-titlefrom
t3code/bulk-regenerate-thread-titles
Jul 29, 2026
Merged

feat(web): regenerate selected thread titles#4814
t3dotgg merged 1 commit into
t3code/regenerate-thread-titlefrom
t3code/bulk-regenerate-thread-titles

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Jul 29, 2026

Copy link
Copy Markdown
Member

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 regenerateTitle metadata 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 (via isThreadTitleRegenerationPending). 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 calls updateThreadMetadata with regenerateTitle: true sequentially; 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 buildBulkTitleRegenerationContextMenuItem helper in Sidebar.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

  • Adds a "Regenerate titles" context menu item to the multi-select flow in SidebarV2.tsx, shown only when at least one selected thread supports title regeneration via the threadTitleRegeneration capability flag.
  • The item is shown as disabled ("Regenerating… (N)") when all supported threads already have a pending regeneration, and enabled ("Regenerate titles (M)") otherwise.
  • Clicking the item calls updateThreadMetadata with regenerateTitle: true for each eligible thread, shows an error toast on failure, and clears the selection on success.
  • Adds buildBulkTitleRegenerationContextMenuItem in Sidebar.logic.ts to compute the menu item definition from supportedCount and actionableCount.

Macroscope summarized 654eb2b.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a23e74d6-e16a-4fb8-aa7d-6f1c631dd3bf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Jul 29, 2026
@macroscopeapp

macroscopeapp Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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.

@t3dotgg
t3dotgg merged commit 88b3bd1 into t3code/regenerate-thread-title Jul 29, 2026
17 checks passed
@t3dotgg
t3dotgg deleted the t3code/bulk-regenerate-thread-titles branch July 29, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant