mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 05:08:38 +00:00
fix(session): prevent silent overflow on parent thread forks (#26912)
Lands #26912 from @markshields-tl with configurable session.parentForkMaxTokens and docs/tests/changelog updates. Co-authored-by: Mark Shields <239231357+markshields-tl@users.noreply.github.com>
This commit is contained in:
@@ -112,6 +112,12 @@ export type SessionConfig = {
|
||||
store?: string;
|
||||
typingIntervalSeconds?: number;
|
||||
typingMode?: TypingMode;
|
||||
/**
|
||||
* Max parent transcript token count allowed for thread/session forking.
|
||||
* If parent totalTokens is above this value, OpenClaw skips parent fork and
|
||||
* starts a fresh thread session instead. Set to 0 to disable this guard.
|
||||
*/
|
||||
parentForkMaxTokens?: number;
|
||||
mainKey?: string;
|
||||
sendPolicy?: SessionSendPolicyConfig;
|
||||
agentToAgent?: {
|
||||
|
||||
Reference in New Issue
Block a user