feat(web): add Copy Thread ID to Sidebar V2 thread context menu - #5574
feat(web): add Copy Thread ID to Sidebar V2 thread context menu#5574UtkarshUsername wants to merge 2 commits into
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: Approved 6f9b1b0 Simple additive UI feature that adds a 'Copy Thread ID' menu item to the thread context menu. The implementation follows existing patterns for similar copy operations already in the codebase, uses established hooks, and includes appropriate test updates. You can customize Macroscope's approvability policy. Learn more. |
008a37b to
6f9b1b0
Compare
Dismissing prior approval to re-evaluate 6f9b1b0
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
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 f51734e. 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.