Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(session): add pruning to SessionEntry reason type

Jiang Bohand2827ae9482b
diff --git a/src/agent/session/types.ts b/src/agent/session/types.ts
index 72c810ab9e..2d31190299 100644
--- a/src/agent/session/types.ts
+++ b/src/agent/session/types.ts
@@ -23,5 +23,5 @@ export type SessionEntry =
tokensKept?: number | undefined;
/** 摘要模式生成的摘要 */
summary?: string | undefined;
- reason?: "count" | "tokens" | "summary" | undefined;
+ reason?: "count" | "tokens" | "summary" | "pruning" | undefined;
};