gemini-cli - ✅(Solved) Fix Reporte de Bug Sugerido: * Problema: Inversión de comportamiento en la tecla Backspace (Retroceso). * Detalles: En Windows (PowerShell/CMD), la tecla Backspace está ejecutando el comando edit.deleteWordLeft (borrar palabra completa) en lugar de edit.delete [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25934Fetched 2026-04-25 06:22:08
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
cross-referenced ×1labeled ×1

Fix Action

Fixed

PR fix notes

PR #25882: fix(cli): restrict ctrl+backspace detection to Windows Terminal only

Description (problem / solution / changelog)

Summary

  • PR #21447 introduced ctrl+backspace word deletion for Windows, but the condition OS === 'Windows_NT' was too broad
  • Previous implementation tried to infer Ctrl+Backspace on Windows using environment heuristics (OS, WT_SESSION)
  • This was unreliable: cmd.exe and PowerShell send \b for plain backspace, causing unintended word deletion
  • Removed ctrl=true inference entirely
  • \b is now consistently treated as a normal backspace

Details

Related Issues

Fixes #25867 #25856 #25907 #25926 #25934

How to Validate

Pre-Merge Checklist

<!-- Check all that apply before requesting review or merging. -->
  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

Changed files

  • packages/cli/src/ui/contexts/KeypressContext.test.tsx (modified, +4/-4)
  • packages/cli/src/ui/contexts/KeypressContext.tsx (modified, +1/-9)
RAW_BUFFERClick to expand / collapse

What happened?

Reporte de Bug Sugerido:

  • Problema: Inversión de comportamiento en la tecla Backspace (Retroceso).
  • Detalles: En Windows (PowerShell/CMD), la tecla Backspace está ejecutando el comando edit.deleteWordLeft (borrar palabra completa) en lugar de edit.deleteLeft (borrar carácter). El uso de Ctrl+Backspace parece no corregir el problema o estar invertido también. * Entorno: Windows 10/11, Gemini CLI v1.x.
  • Intentos de solución: Se intentó mapear explícitamente edit.deleteLeft a backspace en keybindings.json sin éxito. El problema persiste incluso tras eliminar el archivo de configuración de teclado.

What did you expect to happen?

Mapeo erroneo del uso de [Backspace], afecta la memoria muscular, afectando el rendimiento de escritura

Client information

  • CLI Version: 0.39.1
  • Git Commit: 4d73f3413
  • Session ID: 58a098dc-33d3-4480-9e62-61bcf3d53597
  • Operating System: win32 v20.5.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 187.5 MB
  • Terminal Name: Unknown
  • Terminal Background: #0c0c0c
  • Kitty Keyboard Protocol: Unsupported

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

The issue might be resolved by adjusting the keybindings configuration to correctly map the Backspace key to the edit.deleteLeft command.

Guidance

  • Verify that the keybindings.json file is correctly formatted and that the edit.deleteLeft command is properly bound to the Backspace key.
  • Try resetting the keybindings to their default settings to see if the issue persists.
  • Check if there are any other keyboard shortcuts or settings in the operating system or terminal emulator that could be interfering with the Backspace key's behavior.
  • Consider testing the Gemini CLI in a different terminal emulator or environment to isolate the issue.

Notes

The issue seems to be specific to the Windows environment and the Gemini CLI, and the provided information does not give a clear indication of the root cause. Further investigation and testing may be necessary to determine the exact solution.

Recommendation

Apply workaround: Adjust the keybindings configuration to correctly map the Backspace key to the edit.deleteLeft command, as this is the most likely cause of the issue and has been attempted by the user already.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - ✅(Solved) Fix Reporte de Bug Sugerido: * Problema: Inversión de comportamiento en la tecla Backspace (Retroceso). * Detalles: En Windows (PowerShell/CMD), la tecla Backspace está ejecutando el comando edit.deleteWordLeft (borrar palabra completa) en lugar de edit.delete [1 pull requests, 1 participants]