Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add terminal copy/paste shortcuts and clipboard bridge #562

ClosedMizaro(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/562/headopened View on GitHub

Solves

https://github.com/pingdotgg/t3code/issues/542

Summary

  • add explicit terminal copy/paste shortcut handling for xterm so selected text can be copied on Windows without breaking normal Ctrl+C process interrupts
  • add a desktop clipboard bridge fallback for Electron and route terminal clipboard reads/writes through a shared helper
  • improve terminal selection visibility across platforms and add focused shortcut coverage for the terminal clipboard path

Validation

  • bun run --cwd apps/web test src/terminalClipboard.test.ts
  • bun lint
  • bun typecheck

Note

Add terminal copy/paste shortcuts and route clipboard reads and writes through Electron IPC and window.desktopBridge

Introduce clipboard IPC channels in apps/desktop/src/main.ts, expose window.desktopBridge methods in apps/desktop/src/preload.ts, wire terminal key handling and clipboard flows in apps/web/src/components/ThreadTerminalDrawer.tsx, and add cross-platform shortcut detection and clipboard utilities with tests.

📍Where to Start

Start with the IPC handlers in apps/desktop/src/main.ts, then review the desktopBridge additions in apps/desktop/src/preload.ts, and finally the terminal key handling in apps/web/src/components/ThreadTerminalDrawer.tsx.

Macroscope summarized 484e7a0.
    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

      Run ID: 7525993c-1b70-4684-85ae-97208df788e9

      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
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Post copyable unit tests in a comment

      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 and usage tips.
    2. I verifed it is working on my machine after the code changes.

    3. closing this for now because it does not follow our contribution guidelines: https://github.com/pingdotgg/t3code/blob/main/CONTRIBUTING.md

      for ui changes, please include clear before/after screenshots, and a short video if the change depends on motion or interaction details.

      feel free to update the pr with that context and reopen it.

    4. maria-rcks closed this

    5. closing this for now because it does not follow our contribution guidelines: https://github.com/pingdotgg/t3code/blob/main/CONTRIBUTING.md

      for ui changes, please include clear before/after screenshots, and a short video if the change depends on motion or interaction details.

      feel free to update the pr with that context and reopen it.

      I will

Sign in to join this conversation.