mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 12:01:13 +00:00
Unsaved logs kept up to 500×1M chars of terminalData in React state while only 50 survive a restart. After add/update/toggle, drop terminalData from the oldest unsaved entries beyond MAX_PERSISTED_UNSAVED_TERMINAL_DATA_ENTRIES. List metadata stays; replay beyond 50 matches restart behaviour. When the side-store write fails (QuotaExceeded once it nears ~50 MB), keep the same capped merged map in memory instead of accumulating every log's replay buffer in connectionLogTerminalDataRef. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>