mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
fix: 调小 snapshots 的范围
This commit is contained in:
@@ -51,7 +51,9 @@ export type FileHistoryState = {
|
||||
snapshotSequence: number
|
||||
}
|
||||
|
||||
const MAX_SNAPSHOTS = 100
|
||||
// Disabled: file checkpointing causes unbounded memory growth (100 snapshots × full file backups).
|
||||
// See heap snapshot analysis — re-enable only after switching to incremental diffs.
|
||||
const MAX_SNAPSHOTS = 20
|
||||
export type DiffStats =
|
||||
| {
|
||||
filesChanged?: string[]
|
||||
|
||||
Reference in New Issue
Block a user