Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Local copy writes the clipboard natively and via OSC 52 at once, racing the terminal (macOS)

Abierto Apto para principiantes
#59,052 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli

Línea de trabajo

Encuentra la escritura en el portapapeles de la TUI que usa el destino «all-available» y lee cómo el servicio del portapapeles gestiona «best-available» para las sesiones locales y remotas. Cambia el comportamiento de copia de la TUI para evitar escrituras locales simultáneas y conservar OSC 52 para SSH. El objetivo se cumple cuando las copias locales repetidas dejan de activar la advertencia de Alacritty y las copias remotas siguen usando OSC 52.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

Since upgrading from 1.18.30 to 2.1.4, copying text in the TUI often makes Alacritty show:

[WARN] Unable to store text in clipboard: NSPasteboard#writeObjects: returned false

The TUI's clipboard write uses destination: "all-available", which starts the in-process host write and emits OSC 52 at the same moment. Locally, the terminal then writes the same pasteboard concurrently, and one of the two writes is rejected. The text still lands, but the terminal shows the warning.

1.18.30 also did both, but OSC 52 went first and the native write was a spawned osascript, so the two never overlapped.

The clipboard service already has "best-available" (host first, OSC 52 only if the host write fails or the session is remote). Using that for TUI copies would keep OSC 52 for SSH, where it's needed, and avoid the double write locally.

Plugins

@tarquinen/opencode-dcp, plus two local plugins (none touch the clipboard)

OpenCode version

2.1.4 (Homebrew)

Steps to reproduce
  1. Run opencode in Alacritty on macOS (default terminal.osc52 = "OnlyCopy"), not over SSH.
  2. Select text to copy, a few times.
  3. Alacritty intermittently shows the warning above.
Operating System

macOS 27.0.1

Terminal

Alacritty 0.17.0

Lenguaje dominante
TypeScript
Estrellas
221k
Forks
29.6k
Merge medio
5 h 22 min
PR fusionados (30 d)
531

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de anomalyco/opencode

Todos los issues de anomalyco/opencode

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.