mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 00:23:29 +00:00
fix(acp): harden session lifecycle against flooding
This commit is contained in:
@@ -6,6 +6,7 @@ export type AcpSession = {
|
||||
sessionKey: string;
|
||||
cwd: string;
|
||||
createdAt: number;
|
||||
lastTouchedAt: number;
|
||||
abortController: AbortController | null;
|
||||
activeRunId: string | null;
|
||||
};
|
||||
@@ -19,6 +20,10 @@ export type AcpServerOptions = {
|
||||
requireExistingSession?: boolean;
|
||||
resetSession?: boolean;
|
||||
prefixCwd?: boolean;
|
||||
sessionCreateRateLimit?: {
|
||||
maxRequests?: number;
|
||||
windowMs?: number;
|
||||
};
|
||||
verbose?: boolean;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user