Skip to content

Keybinding validation error on amend even though the keybind doesn't exist #5697

Description

@sharpchen

Describe the bug

I was aware of the new breaking change of keybinding, lazygit first refused to launch saying the <c-R> is invalid so I changed it <c-s-r> and it did enter.

$ lazygit

2026/06/12 21:03:38 The config at `/home/sharpchen/.config/lazygit/config.yml` has a validation error.
Unrecognized key '<c-R>' for keybinding 'Commits.ResetCherryPick[0]'. For permitted values see https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md

And then I found it still show the same error on amend, this error still persist even after I comment out the keybind in my config.

keybinding:
  commits:
    # resetCherryPick: <c-s-r>

To Reproduce

Steps to reproduce the behavior:

  1. add some change to a repo, stage them
  2. amend to certain commit
  3. error pops

It will create a fixup commit

Expected behavior

No error, amend as expected

Screenshots

Image

Version info:

commit=, build date=, build source=nix, version=0.62.2, os=linux, arch=amd64, git version=2.54.0

Terminal info:

Wezterm 20260117-154428-05343b38

Additional context

Add any other context about the problem here.

Note

Please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions