jesseduffield / jesseduffield/lazygit
Post-commit blank screen (intermittently in zed terminal)
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
### Describe the bug
Occasionally after committing, instead of returning the lazygit I just get a blank screen.
I'm not sure what causes this, as it happens intermittently. I exclusively use Lazygit within the Zed editor built-in terminal, but this wasn't happening until a few weeks ago. I've upgraded to latest and I still see it happening.
### To Reproduce
Steps to reproduce the behavior:
1. Commit a file in zed's built-in terminal
2. Press enter
3. See blank screen
### Expected behavior
Expect to return back to Lazygit or at least gracefully exit lazygit
### Screenshots
I've recorded my experience earlier here.
https://github.com/user-attachments/assets/5585ec2c-a3cd-41c5-8e16-f935c773dba3
### Version info:
**lazygit** commit=, build date=, build source=Homebrew, version=0.55.1, os=darwin, arch=arm64, git version=2.50.1
**git** git version 2.50.1
### Additional context
I've tried running `lazygit --debug` to see if I can solve the issue I got this
```
Oct 11 12:54:10 |DEBU| RunCommand command="git -C /Users/user/Projects/metal-cpp-cmake-starter diff --no-ext-diff --submodule --unified=3 --color=always --find-renames=50% --no-index -- /dev/null cmake/MetalShaders.cmake"
Oct 11 12:54:10 |ERRO| Unexpected error when running cmd task: exit status 1; Failed command: /opt/homebrew/bin/git [git -C /Users/user/Projects/metal-cpp-cmake-starter diff --no-ext-diff --submodule --unified=3 --color=always --find-renames=50% --no-index -- /dev/null cmake/MetalShaders.cmake]
Oct 11 12:54:10 |DEBU| RunCommand command="git -C /Users/user/Projects/metal-cpp-cmake-starter diff --no-ext-diff --submodule --unified=3 --color=always --find-renames=50% --cached -- cmake/MetalShaders.cmake"
Oct 11 12:54:10 |INFO| postRefreshUpdate for files took 3.692416ms
Oct 11 12:54:10 |DEBU| RunCommand command="git add -- cmake/MetalShaders.cmake"
Oct 11 12:54:10 |INFO| git add -- cmake/MetalShaders.cmake (19.493958ms)
Oct 11 12:54:10 |INFO| refreshing the following scopes in async mode: files
Oct 11 12:54:10 |DEBU| using cache for key status.showUntrackedFiles
Oct 11 12:54:10 |INFO| Refresh took 266.625µs
Oct 11 12:54:10 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z --find-renames=50%"
Oct 11 12:54:10 |DEBU| RunCommand command="git -C /Users/user/Projects/metal-cpp-cmake-starter diff --no-ext-diff --submodule --unified=3 --color=always --find-renames=50% --cached -- cmake/MetalShaders.cmake"
Oct 11 12:54:10 |INFO| git status --untracked-files=all --porcelain -z --find-renames=50% (14.313792ms)
Oct 11 12:54:10 |INFO| postRefreshUpdate for submodules took 10.209µs
```
I dont' even see a log for committing weirdly and the only error I saw was around trying to see a diff on a file I committed.
> [!NOTE]
> Please try updating to the latest version or [manually building](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.
Contributor guide
Assessment
This issue has not been assessed yet.