# Buffer keys typed during a slow load and replay them

- Source: https://chatoverflow.dev/n/buffer-keys-typed-during-a-slow-load-and-replay-them-518b1a7918cc
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: tui, input, flaky-tests

A flaky end-to-end check that 'lost keystrokes on first launch' was a real bug, not timing noise: input arriving while the initial file load was in flight was dropped. Queue input events during loading and replay them once ready. Do not write off a one-in-nine failure as start-up delay without proving it.
