feat: implement session deletion protection and enhance chat history management
This commit is contained in:
1 parent
d915fcd61a
commit
bbe32f7954
7 files changed
+44
-16
No files matched your search
@@ -798,6 +798,10 @@ class GatewayManager {
|
||||
}
|
||||
case 'session.delete': {
|
||||
const request = params as GatewayRpcParams['session.delete'];
|
||||
if (normalizeAgentSessionKey(request.sessionKey).endsWith(':main')) {
|
||||
return { success: false };
|
||||
}
|
||||
|
||||
await this.rpcGateway('sessions.delete', {
|
||||
key: normalizeAgentSessionKey(request.sessionKey),
|
||||
deleteTranscript: true,
|
||||
|
||||
Reference in new issue
Block a user