* historyCompacted reasons caused by compaction itself. These do NOT trigger a * snapshot reload: the client keeps the visible scrollback and renders a * divider marker instead. Every other reason (delta_gap, history_rewrite, …) * still means "cached messages are stale" and goes through onResync.
(reason: string)
| 233 | * still means "cached messages are stale" and goes through onResync. |
| 234 | */ |
| 235 | function isCompactionReason(reason: string): boolean { |
| 236 | return reason === 'auto_compact' || reason === 'manual_compact'; |
| 237 | } |
| 238 | |
| 239 | // --------------------------------------------------------------------------- |
| 240 | // DaemonKimiWebApi |