Skip to content

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

Merged
shivamhwp merged 7 commits into
pingdotgg:mainfrom
UtkarshUsername:feat/web/sidebar-v2-copy-thread-id
Aug 11, 2026
Merged

feat(web): add Copy Thread ID to the sidebar and chat header thread context menu#5574
shivamhwp merged 7 commits into
pingdotgg:mainfrom
UtkarshUsername:feat/web/sidebar-v2-copy-thread-id

Conversation

@UtkarshUsername

@UtkarshUsername UtkarshUsername commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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 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 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.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 7, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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]
macroscopeapp Bot previously approved these changes Aug 7, 2026
@UtkarshUsername
UtkarshUsername force-pushed the feat/web/sidebar-v2-copy-thread-id branch from 008a37b to 6f9b1b0 Compare August 7, 2026 11:30
@macroscopeapp
macroscopeapp Bot dismissed their stale review August 7, 2026 11:30

Dismissing prior approval to re-evaluate 6f9b1b0

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Aug 7, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Aug 7, 2026
@UtkarshUsername UtkarshUsername changed the title feat(web): add Copy Thread ID to Sidebar V2 thread context menu feat(web): add Copy Thread ID to Sidebar V2 and chat header thread context menu Aug 7, 2026
@UtkarshUsername
UtkarshUsername force-pushed the feat/web/sidebar-v2-copy-thread-id branch from 5b63f1c to fb6d745 Compare August 9, 2026 11:56
@macroscopeapp
macroscopeapp Bot dismissed their stale review August 9, 2026 11:57

Dismissing prior approval to re-evaluate fb6d745

@UtkarshUsername UtkarshUsername changed the title feat(web): add Copy Thread ID to Sidebar V2 and chat header thread context menu feat(web): add Copy Thread ID to the sidebar and chat header thread context menu Aug 10, 2026
@UtkarshUsername
UtkarshUsername force-pushed the feat/web/sidebar-v2-copy-thread-id branch from f29d461 to 3756745 Compare August 10, 2026 12:38
@shivamhwp
shivamhwp merged commit 65b005f into pingdotgg:main Aug 11, 2026
16 checks passed
xiaogwu pushed a commit to xiaogwu/t3code that referenced this pull request Aug 11, 2026
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.
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 11, 2026
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants