mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-06 05:56:19 +01:00
fix(server): prove completed history before idle sleep (#18646)
Reviewed and verified at 592bce69c6.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
367f29478d
commit
ccc63ea458
44 files changed
+4100
-112
No files matched your search
@@ -10314,6 +10314,11 @@ describe("native warm session supervision", () => {
|
||||
|
||||
it("blocks idle sleep for a released local warm session until its close checkpoint finishes", async () => {
|
||||
await closeIdleWarmNativeSessionsForRestart();
|
||||
const { reconcilePersistedRuntimeServicesOnStartup, readWorkspaceRuntimeIdleWork } = await import("../workspace-runtime.js");
|
||||
// The real server reconstructs the workspace owner before startup can
|
||||
// become quiet. This fixture has no runtime rows or desired services.
|
||||
await reconcilePersistedRuntimeServicesOnStartup(leaseDb());
|
||||
expect(readWorkspaceRuntimeIdleWork()).toBe("none");
|
||||
markIdleIngressTracked(); markIdleStartupComplete({ scheduledBackups: false });
|
||||
let finishClose!: () => void;
|
||||
const checkpoint = new Promise<void>(resolve => { finishClose = resolve; });
|
||||
|
||||
Reference in new issue
Block a user