feat(FN-2523): add safe restart restore lifecycle diagnostics
- Add ProjectEngine restore lifecycle core to perform safe restarts and surface detailed restore state transitions - Expose restore diagnostics through remote-access status types and settings/memory route context, including legacy API mapping updates - Add comprehensive regression coverage for restore lifecycle behavior in engine and dashboard headless remote-access tests - Document the restore lifecycle contract in architecture/settings docs and include a patch changeset for @runfusion/fusion
This commit is contained in:
@@ -96,6 +96,14 @@ export async function getProjectContext(
|
||||
}
|
||||
}
|
||||
|
||||
if (!projectId && options?.engine) {
|
||||
try {
|
||||
return { store: options.engine.getTaskStore(), engine: options.engine, projectId };
|
||||
} catch {
|
||||
// Fall back to scoped store resolution.
|
||||
}
|
||||
}
|
||||
|
||||
const scopedStore = await getScopedStore(req, store);
|
||||
return { store: scopedStore, engine: undefined, projectId };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user