Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

The copy and paste feature is not working in the shell. It produces two instances of the copy

Aperta
#623 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
cli, frontend

Direzione di ricerca

Start by reading ShellTerminal.tsx:395-398 and useTerminalInput.ts:381-395, then trace how createPasteHandler() and xterm.js onData() handle paste events. Reproduce the Ctrl/Cmd+V duplication and inspect the existing test setup. Done means paste appears once on Windows/Linux and Mac without breaking other keyboard input, with a regression test added.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Problem

When pasting text into the ShellTerminal using Ctrl/Cmd+V, the pasted content appears twice instead of once.

Steps to Reproduce

  1. Open the application
  2. Navigate to the ShellTerminal component
  3. Copy some text (e.g., echo "test")
  4. Paste it using Ctrl+V (Windows/Linux) or Cmd+V (Mac)
  5. Expected: Text appears once: echo "test"
  6. Actual: Text appears twice: echo "test"echo "test" or similar duplication

Technical Context

  • Location: ShellTerminal.tsx:395-398 and useTerminalInput.ts:381-395
  • Suspected cause: Duplicate event handling - both custom createPasteHandler() and xterm.js onData() event fire for paste operations
  • Affected users: All users who copy/paste into the terminal

Acceptance Criteria

  • Pasted content appears exactly once in the terminal
  • Paste works correctly with Ctrl+V (Windows/Linux) and Cmd+V (Mac)
  • No regression in other keyboard input handling
  • Test added to prevent regression
Lingua principale
TypeScript
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jcollard/LuaInTheWeb

Tutte le issue di jcollard/LuaInTheWeb

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.