fix(session): add pruning to SessionEntry reason type

The CompactionResult type includes "pruning" as a reason but SessionEntry
did not, causing type errors when writing compaction entries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiang Bohan 2026-02-05 16:01:10 +08:00
parent a7f1c56e09
commit d2827ae948

View file

@ -23,5 +23,5 @@ export type SessionEntry =
tokensKept?: number | undefined;
/** 摘要模式生成的摘要 */
summary?: string | undefined;
reason?: "count" | "tokens" | "summary" | undefined;
reason?: "count" | "tokens" | "summary" | "pruning" | undefined;
};