Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(shortcuts): copy active thread reference #8994

Mergedmaria-rcksmerged 7 commits intomain fromrefs/pull/8994/headmerged by maria-rcks View on GitHub

maria-rckscommented

Cmd/Ctrl+Shift+C now copies the active thread's linked or detected pull request URL, falling back to its thread ID, across web, desktop, iOS, and Android hardware keyboards. Clipboard success or failure is shown in a toast, while terminal focus keeps its existing copy behavior.

Verified with 128 focused tests, affected package typechecks, targeted lint and formatting, Expo native-module resolution, and a live web interaction that confirmed both the copied thread ID and toast.

Built with gpt-5.6-sol in T3 Code.


Note

Low Risk Mostly UX and clipboard/keybinding wiring with terminal-focus guards; Android may consume Ctrl+Shift+C when the shortcut is enabled on thread screens.

Overview Adds thread.copyReference (mod+shift+c, disabled when the terminal has focus) so users can copy the active thread’s linked or branch-detected PR URL, or thread ID as a fallback.

A new shared resolveThreadReferenceCopyTarget centralizes that precedence and copy/toast messaging. Web handles the binding in ChatView and exposes a matching command palette action; mobile wires Cmd/Ctrl+Shift+C through native T3KeyboardCommands (new Android Expo view/module alongside the existing iOS key commands) and HardwareKeyboardCommandProvider, with tryCopyTextWithHaptic for awaitable clipboard success and a short overlay for feedback. Thread shells now include linkedPullRequest for copy resolution on mobile.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e0877310d319f9ea6f2f7c214660e9b8ef30e3cb. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add thread.copyReference shortcut on mod+shift+c

Macroscope summarized e087731.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Both findings are in apps/web/src/components/CommandPalette.tsx; the ChatView side of the shortcut reuses the existing shared resolver and looks consistent with the surrounding toast/clipboard conventions.

      Posted via Macroscope — UI Consistency
    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR adds a new active-thread reference-copy workflow across web, iOS, and Android, including native keyboard handling, VCS lookup, clipboard behavior, and user feedback. It also introduces mod+shift+c as a product default, so the scope and default-behavior change warrant human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit aeca61cf6f2c8ccec93f79c77af4e942dcbe739b. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. apps/web/src/components/ChatView.tsx lines 4606 to 4613OutdatedResolvedby maria-rcks
    6. maria-rcks merged this2d156a8

    7. maria-rcks closed this

Sign in to join this conversation.