feat(web): add Copy Thread ID to the sidebar and chat header thread context menu - #5574
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 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. |
008a37b to
6f9b1b0
Compare
Dismissing prior approval to re-evaluate 6f9b1b0
5b63f1c to
fb6d745
Compare
Dismissing prior approval to re-evaluate fb6d745
f29d461 to
3756745
Compare
Brings in 7 upstream commits, including two that touch the same code as the pinned-reorder work: Copy Thread ID in the thread context menu (pingdotgg#5574) and shift+click new-thread-in-project (pingdotgg#5994). Merged clean, no conflicts. Also picks up the hourly past-24h usage view (pingdotgg#6170), the GitLab self-hosted remote routing fix (pingdotgg#6061), mobile composer stabilisation (pingdotgg#5986), the App Store release version guard (pingdotgg#6177), and the typography font-size default restore (pingdotgg#6172). pnpm-workspace.yaml, pnpm-lock.yaml and four patches/ files changed, so this needs a fresh install before it builds.
## What's Changed * feat: add ability to create a new thread in the current project with shift+click and show shortcut in tooltip by @UtkarshUsername in pingdotgg/t3code#5994 * feat(web): add Copy Thread ID to the sidebar and chat header thread context menu by @UtkarshUsername in pingdotgg/t3code#5574 * fix(mobile): stabilize thread composer and interactions by @juliusmarminge in pingdotgg/t3code#5986 * Add hourly past-24-hour usage view by @juliusmarminge in pingdotgg/t3code#6170 * fix(mobile): guard App Store release versions by @juliusmarminge in pingdotgg/t3code#6177 * fix(web): restore typography font sizes to defaults by @StiensWout in pingdotgg/t3code#6172 **Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260811.1067...v0.0.34-nightly.20260811.1068 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260811.1068
What Changed
Adds the 'Copy Thread ID' action to Sidebar V2's and chat header's thread context menus.
Why
The original sidebar already had it. It is helpful in diagnosing issues with threads.
UI Changes
Before:

After:

Checklist
Note
Low Risk
Clipboard-only UI with no server or auth changes; behavior mirrors existing copy-path/copy-branch actions.
Overview
Adds Copy thread ID to the shared per-thread action menu (
buildThreadActionMenuItems), so it appears in Sidebar V2 right-click menus and the chat header thread menu alongside copy path/branch.Choosing the action copies
thread.idviauseCopyToClipboardin bothSidebar.tsxanduseThreadActionMenu, with success toasts showing the ID and error toasts on failure. Menu tests expect the new item even when lifecycle capabilities are disabled.Reviewed by Cursor Bugbot for commit 9f979db. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add 'Copy Thread ID' action to thread context menus in Sidebar V2 and chat header
Adds a new 'Copy Thread ID' menu item to
buildThreadActionMenuItemsunconditionally, making it appear in all per-thread action menus. Both the Sidebar and useThreadActionMenu hook handle thecopy-thread-idaction by writing the thread ID to the clipboard and showing a success or error toast.Macroscope summarized 9f979db.