fix(persistence): bootstrap core file on first pty binding

This commit is contained in:
Neil
2026-08-23 20:11:14 -07:00
parent 8837751ad8
commit e9eb5880f7
@@ -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 {