mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
fix: 修复内存溢出问题,compact 时清理持久增长数据结构
- compact 时清理 contentReplacementState(seenIds/replacements) - logError() 使用 shortErrorStack 替代完整 err.stack,减少 GC 压力 - permissionDenials 每次 submitMessage 清空,防止无限增长 - SSE 缓冲区添加 1MB 上限,防止畸形数据无限累积 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -248,6 +248,7 @@ export class QueryEngine {
|
||||
} = this.config
|
||||
|
||||
this.discoveredSkillNames.clear()
|
||||
this.permissionDenials = []
|
||||
setCwd(cwd)
|
||||
const persistSession = !isSessionPersistenceDisabled()
|
||||
const startTime = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user