Release v1.6.23
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9cceaacd14
commit
26b2ef0abb
+7
-1
@@ -339,7 +339,8 @@ export function normalizeLoadedSession(raw: unknown): SessionState {
|
||||
return true;
|
||||
});
|
||||
for (const packageId of Object.keys(packagesById)) {
|
||||
if (!packageOrder.includes(packageId)) {
|
||||
if (!seenOrder.has(packageId)) {
|
||||
seenOrder.add(packageId);
|
||||
packageOrder.push(packageId);
|
||||
}
|
||||
}
|
||||
@@ -606,6 +607,11 @@ async function saveSessionPayloadAsync(paths: StoragePaths, payload: string): Pr
|
||||
}
|
||||
}
|
||||
|
||||
export function cancelPendingAsyncSaves(): void {
|
||||
asyncSaveQueued = null;
|
||||
asyncSettingsSaveQueued = null;
|
||||
}
|
||||
|
||||
export async function saveSessionAsync(paths: StoragePaths, session: SessionState): Promise<void> {
|
||||
const payload = JSON.stringify({ ...session, updatedAt: Date.now() });
|
||||
await saveSessionPayloadAsync(paths, payload);
|
||||
|
||||
Reference in New Issue
Block a user