jesseduffield.lazygit/pkg/tasks
Stefan Haller acb6e48a98 Hold a task while a view is read to its end
ReadToEnd reads the rest of a view's content on the render task's own
goroutine, and calls back once it has. Nothing held a task for that, so
lazygit counted as idle from the moment the caller returned until the
callback ran. The search prompt in the focused main view opens from such
a callback, so an integration test takes the idle report as its cue to
carry on, and presses its next key while the prompt is not open yet.

Hold the task in ReadToEnd rather than in the caller, so that every
caller is covered (see docs/dev/Busy.md).

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 15:09:52 +02:00
..
async_handler.go Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
async_handler_test.go Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
read_request_queue.go Answer every read request, whether or not a task is still serving 2026-09-05 15:09:52 +02:00
read_request_queue_test.go Answer every read request, whether or not a task is still serving 2026-09-05 15:09:52 +02:00
tasks.go Hold a task while a view is read to its end 2026-09-05 15:09:52 +02:00
tasks_test.go Answer every read request, whether or not a task is still serving 2026-09-05 15:09:52 +02:00