Skip to content

Lazygit is 'suspended' when running a custom command #4320

Open
@karunsiri

Description

@karunsiri

Describe the bug
When I run any custom command, lazygit will be suspended with the last bit of output being

Press enter to return to lazyget

If I run lazy git from other program, for example, neovim, lazygit will just hangs permanently (because of the suspension, I think)

The custom command is git pull --all. Full output.

+ /bin/zsh -i -c git pull --all; exit $?

Already up to date.

Press enter to return to lazygitzsh: suspended (tty input)  lazygit

To Reproduce
Steps to reproduce the behavior:

  1. Open lazygit
  2. Run custom command
    git fetch --all
  3. lazygit is suspended to background

Expected behavior
Lazygit is not suspended and I am brought back to the tty.

Screenshots

Image

Version info:
Lazygit: commit=101bbb0ac56a1cf594301f45bda22c551f1aa870, build date=2025-02-22T11:33:02Z, build source=binaryRelease, version=0.47.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)
git: git version 2.39.5 (Apple Git-154)

Additional context
If I run fg after lazygit is suspended, I'm brought back the lazygit instance and can quit the program with a shortcut q.

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