t3code icon indicating copy to clipboard operation
t3code copied to clipboard

feat(web): add Copy Thread ID to Sidebar V2 thread context menu

Open UtkarshUsername opened this issue 3 months ago • 2 comments

What Changed

Adds the 'Copy Thread ID' action to Sidebar V2's thread context menu.

Why

The original sidebar already had it. It is helpful in diagnosing issues with threads.

UI Changes

Before: image

After: image

Checklist

  • [x] This PR is small and focused
  • [x] I explained what changed and why
  • [x] I included before/after screenshots for any UI changes

[!NOTE] Low Risk UI-only clipboard copy with existing toast patterns; no auth, data, or server behavior changes.

Overview Adds Copy thread ID to the shared thread action menu so Sidebar V2 and the chat header match the legacy sidebar for support/debugging.

The new copy-thread-id item is defined in buildThreadActionMenuItems (with the other copy actions, before delete). SidebarV2 and useThreadActionMenu wire it through useCopyToClipboard and show success/error toasts with the ID in the description. Unit tests expect the item even when lifecycle capabilities are off.

Reviewed by Cursor Bugbot for commit f51734e07cfcd5af910a7da802b3c7f0999f8c4b. Bugbot is set up for automated code reviews on this repo. Configure here.

[!NOTE]

Add 'Copy Thread ID' option to thread context menus in SidebarV2 and chat header

Adds a copy-thread-id action to buildThreadActionMenuItems in threadActionMenu.logic.ts, placing it after existing copy actions and before the delete action. Both SidebarV2.tsx and useThreadActionMenu.ts handle the new action by copying the thread ID to the clipboard and showing a success or error toast.

Macroscope summarized f51734e.

UtkarshUsername avatar Aug 07 '26 06:08 UtkarshUsername

[!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: 236fd938-00a8-42e8-a316-6f9fb9d26bdc

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.

coderabbitai[bot] avatar Aug 07 '26 06:08 coderabbitai[bot]

Approvability

Verdict: Approved fb6d745

Simple additive feature that adds a 'Copy Thread ID' context menu option. Follows existing copy-path pattern exactly, uses existing infrastructure (useCopyToClipboard, toastManager), and includes updated tests. No runtime behavior changes beyond the new menu action.

You can customize Macroscope's approvability policy. Learn more.

macroscopeapp[bot] avatar Aug 07 '26 06:08 macroscopeapp[bot]