From e9eb5880f786cb5b10bf21aeafb7f05ef37b4483 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 23 Aug 2026 20:11:14 -0700 Subject: [PATCH] fix(persistence): bootstrap core file on first pty binding --- src/main/persistence/loading-store/store.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/persistence/loading-store/store.ts b/src/main/persistence/loading-store/store.ts index 48be6a6e083..b69db49bef4 100644 --- a/src/main/persistence/loading-store/store.ts +++ b/src/main/persistence/loading-store/store.ts @@ -3601,6 +3601,9 @@ export class Store { this.markWorkspaceSessionPartitionDirty(resolvedHostId, 'pty-binding') try { this.workspaceSessionSidecars.flushSync('pty-binding') + if (!existsSync(this.dataFile)) { + this.flushOrThrow() + } } catch (err) { restoreSession() try { @@ -3655,6 +3658,9 @@ export class Store { this.markWorkspaceSessionPartitionDirty(resolvedHostId, 'pty-binding') try { this.workspaceSessionSidecars.flushSync('pty-binding') + if (!existsSync(this.dataFile)) { + this.flushOrThrow() + } } catch (err) { restoreSession() try {