Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add Copy Thread ID to the sidebar and chat header thread context menu #5574

MergedUtkarshUsername(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/5574/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

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: image

After: image

Checklist

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

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.id via useCopyToClipboard in both Sidebar.tsx and useThreadActionMenu, 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](https://cursor.com/bugbot) for commit 9f979db45fa499431da8b83a73e3f5e82677cd27. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

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 buildThreadActionMenuItems unconditionally, making it appear in all per-thread action menus. Both the Sidebar and useThreadActionMenu hook handle the copy-thread-id action by writing the thread ID to the clipboard and showing a success or error toast.

Macroscope summarized 9f979db.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).

Sign in to join this conversation.