refactor(agents): remove session repair type alias · openclaw/openclaw@9bc7dce
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,8 +42,6 @@ type SessionRepairFileSnapshot = {
|
42 | 42 | ctimeNs: bigint; |
43 | 43 | }; |
44 | 44 | |
45 | | -export type TrustedSessionRepairSnapshot = SessionRepairFileSnapshot; |
46 | | - |
47 | 45 | type SessionRepairCacheEntry = { |
48 | 46 | snapshot: SessionRepairFileSnapshot; |
49 | 47 | toolResultIds: Set<string>; |
@@ -595,7 +593,7 @@ async function tryIncrementalSessionRepair(params: {
|
595 | 593 | sessionFile: string; |
596 | 594 | currentSnapshot: SessionRepairFileSnapshot; |
597 | 595 | cached: SessionRepairCacheEntry; |
598 | | -trustedSnapshot: TrustedSessionRepairSnapshot | undefined; |
| 596 | +trustedSnapshot: SessionRepairFileSnapshot | undefined; |
599 | 597 | }): Promise<RepairReport | undefined> { |
600 | 598 | if (isSameSessionRepairSnapshot(params.cached.snapshot, params.currentSnapshot)) { |
601 | 599 | return { |
@@ -657,7 +655,7 @@ async function tryIncrementalSessionRepair(params: {
|
657 | 655 | /** Repair a persisted session JSONL file in place when replay-breaking corruption is found. */ |
658 | 656 | export async function repairSessionFileIfNeeded(params: { |
659 | 657 | sessionFile: string; |
660 | | -trustedSnapshot?: TrustedSessionRepairSnapshot; |
| 658 | +trustedSnapshot?: SessionRepairFileSnapshot; |
661 | 659 | debug?: (message: string) => void; |
662 | 660 | warn?: (message: string) => void; |
663 | 661 | }): Promise<RepairReport> { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。