Files
Netcatty/application
Cursor Agentand陈大猫 8af458c8e0 perf(vault): align in-memory connection-log terminalData with the 50-entry persist cap
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>
2026-10-22 06:42:28 +00:00
..