tui: Shift+P becomes lowercase p in embedded Lazygit

Abierto
#65,345 1 comentario 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli

Línea de trabajo

Start from the embedded-terminal input path in the TypeScript TUI: find where PTY input bytes from Ctrl+X then t are translated before reaching lazygit, and compare against the raw reader that already received 70 50 correctly. Reproduce with the scripted PTY (TERM=xterm-256color, literal bytes 70 50) and with TCELL_KEYBOARD_PROTOCOL=legacy lazygit as the working control. Done means p then Shift+P lands as pP in the commit-message field without the legacy env var.

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

Descripción

area/tui platform/linux status/repro-simulated type/bug version/v2
Description

In OpenCode’s embedded terminal, Lazygit receives Shift+P as lowercase p. On the main screen this triggers Pull instead of Push. In the commit-message field, typing p and then Shift+P inserts pp instead of pP.

Plugins

None in the isolated reproduction (--standalone with fresh XDG directories).

OpenCode version

2.3.2

Steps to reproduce
  1. Open OpenCode in a Git repo with at least one staged change. Use an existing session and press Ctrl+X, then t, to open the embedded terminal.
  2. Run lazygit (reproduced with 0.66.3).
  3. In the Files panel, press c to open the commit-message field.
  4. Type p, then Shift+P. The field contains pp; it should contain pP. Press Esc to cancel without committing. No remote is required for this test.
Screenshot

In an isolated PTY, sending literal bytes 70 50 (pP) produced pp in Lazygit inside OpenCode and pP in Lazygit directly. A raw input reader inside OpenCode also received 70 50 correctly. Launching Lazygit inside OpenCode with TCELL_KEYBOARD_PROTOCOL=legacy lazygit preserved pP for the same input. This suggests a keyboard-protocol compatibility issue; the exact layer that drops the uppercase character is unconfirmed.

Operating System

Linux 6.18.64, x86_64; zsh on the host.

Terminal

Ghostty/tmux on the report machine. The isolated reproduction also worked in a scripted PTY with TERM=xterm-256color, outside the live Ghostty/tmux session.

Lenguaje dominante
TypeScript
Estrellas
227k
Forks
30.7k
Merge medio
3 h 57 min
PR fusionados (30 d)
484

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.