mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
fix(persistence): bootstrap core file on first pty binding
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user