feat(web): add Copy Thread ID to Sidebar V2 thread context menu
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:
After:
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-iditem is defined inbuildThreadActionMenuItems(with the other copy actions, before delete). SidebarV2 anduseThreadActionMenuwire it throughuseCopyToClipboardand 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-idaction tobuildThreadActionMenuItemsin 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.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
236fd938-00a8-42e8-a316-6f9fb9d26bdcYou can disable this status message by setting the
reviews.review_statustofalsein 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.
Comment @coderabbitai help to get the list of available commands.
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.