[BUG] Link click-to-copy sets clipboard as application/octet-stream, breaking paste in browsers (missing wl-copy --type on Wayland)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- linux, lua, neovim
- Área
- desktop-dev, tooling
Línea de trabajo
Comienza por el controlador de copia de enlaces que se usa cuando se copia una URL desde :ClaudeCode y comprueba si invoca directamente a wl-copy o si usa vim.fn.setreg("+", url). Verifica la corrección con wl-paste -l y Firefox o Chromium; estará terminado cuando el portapapeles exponga text/plain y la URL se pueda pegar en aplicaciones GUI de Wayland.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Clicking a link in the Claude terminal (opened via :ClaudeCode) copies it to
the clipboard with a notification confirming success, but the copied content
cannot be pasted into Firefox or Chromium on Wayland. Pasting into terminal
tools (wl-paste) works fine — only GUI applications using the standard
wl_data_device_manager protocol fail to read it.
Environment
- OS: Kicksecure (Debian 13/trixie)
- Compositor: labwc 0.8.3 (wlroots-based)
- Terminal: kitty 0.41.1
- Terminal provider: snacks (
terminal.provider = "snacks") wl-clipboardinstalled and confirmed working correctly for manual
wl-copy --type text/plaincalls
Steps to reproduce
- Open
:ClaudeCode, get Claude to output a URL - Double-click the link to copy it (plugin shows a "copied" notification)
- Try to paste (
Ctrl+V) into Firefox's address bar, or Chromium's - Nothing pastes; the field remains empty or unchanged
Diagnosis
Running wl-paste -l immediately after step 2 shows only:
application/octet-stream
By contrast:
-
wl-copy --type text/plain "url"followed bywl-paste -lcorrectly
showstext/plain,text/plain;charset=utf-8,UTF8_STRING, etc., and
pastes into Firefox/Chromium without issue. -
A manual OSC 52 sequence sent directly to kitty (
printf '\033]52;c;...')
is also correctly typed astext/plainby kitty itself — so kitty's own
OSC 52 → Wayland clipboard bridge is not at fault. -
Plain
echo "text" | wl-copy(no--type) also produces
application/octet-streamon this system, matching wl-clipboard's
documented limitation:wl-clipboard is not always able to detect that a MIME type is textual,
which may break pasting into clients that expect textual formats, not
application/something. The workaround […] is to specify the desired
MIME type explicitly, such aswl-copy --type text/plain.
— wl-copy(1) manpage, BUGS section
This strongly suggests the link-copy code path shells out to wl-copy
without an explicit --type, hitting this known/documented wl-clipboard
limitation, rather than going through Neovim's own clipboard provider
(vim.fn.setreg("+", url)), which I confirmed produces correctly-typed
text/plain clipboard content on the same system (tested via "+yy on a
normal buffer, checked with wl-paste -l).
Suggested fix
If the link-copy handler invokes wl-copy directly, adding --type text/plain (as documented as the standard workaround for this exact
wl-clipboard limitation) should resolve it. Alternatively, routing the copy
through Neovim's vim.fn.setreg("+", url) instead of a raw external
wl-copy call would also sidestep the issue, since that path is confirmed
to type the content correctly on this system.
Happy to test a fix if useful — this was fully reproducible and isolated
step by step (system Wayland clipboard, kitty's native OSC 52 handling, and
Neovim's own clipboard provider were all individually verified to work
correctly, narrowing the issue down to this specific code path).
- Lenguaje dominante
- Lua
- Estrellas
- 3.1k
- Forks
- 217
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de coder/claudecode.nvim
-
bug needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
coder/claudecode.nvim#314 ·
-
Is this plugin abondonned? Abiertoneeds-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
coder/claudecode.nvim#319 · 1 reacción ·
-
[BUG] 框选文本一直抱错误信息 Abiertobug needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
coder/claudecode.nvim#316 · 1 comentario ·
-
needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
coder/claudecode.nvim#309 ·
-
needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
coder/claudecode.nvim#306 ·
Todos los issues de coder/claudecode.nvim
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
HenrikBengtsson/CBI-software#134 ·
-
Nmap
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
secondlife/slua#96 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100