MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isCompactionReason

Function isCompactionReason

apps/kimi-web/src/api/daemon/client.ts:235–237  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

233 * still means "cached messages are stale" and goes through onResync.
234 */
235function isCompactionReason(reason: string): boolean {
236 return reason === 'auto_compact' || reason === 'manual_compact';
237}
238
239// ---------------------------------------------------------------------------
240// DaemonKimiWebApi

Callers 1

connectEventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected