github / github/copilot-cli

Mouse scroll not working in MobaXterm/PuTTY SSH sessions (alt-screen mode)

Abierto
#2,841 1 comentario 0 reacciones 0 asignados Ver en GitHub
area:input-keyboard area:platform-linux area:terminal-rendering
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

## Environment
- **Copilot CLI version**: 1.0.32
- **Terminal**: MobaXterm (SSH session to Linux host)
- **TERM**: xterm-color
- **OS**: RHEL/CentOS (remote host)

## Problem

Mouse scroll does not work for browsing conversation history in the Copilot CLI session when connected via MobaXterm (SSH). The terminal supports mouse events correctly — scroll and paste work fine in the normal bash shell. The issue is specific to the Copilot CLI's alt-screen TUI.

## Current behavior

| Config setting | Scroll | Paste |
|---|---|---|
| `"mouse": true` | ❌ Not working | ❌ Broken (corrupted text) |
| `"mouse": false` | ❌ Not working | ✅ Works |

Only PgUp/PgDn keys work for scrolling conversation history.

## Expected behavior

With `"mouse": true`, mouse wheel scroll should navigate the conversation history within the CLI's alt-screen buffer, similar to how it works in other TUI applications (e.g., less, vim).

## Notes

- The changelog for v1.0.14 mentions "Pasted text is no longer corrupted when mouse support is active" — this fix does not appear to work with MobaXterm/PuTTY terminals.
- The terminal correctly supports SGR mouse encoding (`\e[?1006h` succeeds).
- Normal terminal scrollback works fine outside the Copilot CLI session.
- This was reportedly working ~1 month ago (around v1.0.7 timeframe) before a subsequent update broke it.

## Workaround

Keep `"mouse": false` in `~/.copilot/config.json` and use PgUp/PgDn for scrolling.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el problema en una sesión SSH de MobaXterm o PuTTY en un host Linux con TERM=xterm-color, probando tanto la configuración del ratón como la TUI en alt-screen. Empieza rastreando el manejo de eventos del ratón y compara el comportamiento con el periodo de v1.0.7 y con la corrección del pegado de v1.0.14. Se considera terminado cuando el desplazamiento con el ratón navega por el historial de la conversación sin corromper el texto pegado, mientras PgUp/PgDn sigue funcionando.

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

Evaluación

Stack tecnológico
linux, shell
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.