fix(web): offer Reload history after a burst in a session opened empty (#814)

- _historyReloadActionEligible() no longer reads _paneHistoryLines: it is
  recorded at the last load, so a session first opened empty kept 0 after
  the burst that opens the gap, and the action never appeared (found by the
  live #814 recipe).
- A pane with no tmux history is still retired by the downgrade refusal,
  which dismisses the action until the next mux-full-history replay.
This commit is contained in:
Hadrien Kerlero committed 2026-11-22 02:44:23 +01:00
1 parent 9ef47aca6c
commit b4d729a054
4 files changed
+14 -6

No files matched your search

+3 -1
View File
@@ -1053,7 +1053,9 @@ describe('manual history banner action', () => {
{ opts: { bottom: true }, visible: false },
{ opts: { marked: false }, visible: false },
{ opts: { inFlight: true }, visible: false },
{ opts: { paneHistoryLines: 0 }, visible: false },
// Recorded at the session's first load: a pane opened empty keeps 0 after the
// burst that opens the gap, so a stale 0 must not hide the action (#814).
{ opts: { paneHistoryLines: 0 }, visible: true },
{ opts: { paneHistoryLines: 5 }, visible: true },
{ opts: { loadingBuffer: true }, visible: false },
{ opts: { tiles: true }, visible: false },