jesseduffield / jesseduffield/lazygit

[bug] osc 8 flooding

Open
#4,421 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**

Too many osc8 requested to the terminal.

Using a neovim terminal (v0.10.0+) to reproduce (this command launch a lazygit in nvim terminal, and nvim will echo all terminal request in error level):
```bash
mkdir /tmp/tmp; cd /tmp/tmp; git init
nvim -u NONE +"au TermRequest * echoerr v:termrequest" +"term ./lazygit -ucf /dev/null"
# this way can check this without attach tui
# nvim --headless -u NONE +"au TermRequest * echoerr v:termrequest" +"term ./lazygit -ucf /dev/null"
```
Then hit enter and enter again and again, you will see endless `^[]8;;`:

![Image](https://github.com/user-attachments/assets/1f752504-f39f-4f26-be5a-3f8825c3b705)

I bisected and found this problem didn't exist before this: https://github.com/jesseduffield/lazygit/commit/524bf83a4a681408c3fb57818f6968cab632e0ae.

**Expected behavior**
There shouldn't be too many OSC 8 request.

**Additional context**
* neovim 0.10.0+

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.