fix(ide): apply package commit to existing runtime and record actual installed revision

This commit is contained in:
yilsem committed 2026-09-05 15:52:44 +03:00
1 parent 8f38fd53e4
commit aa498f4cbb
7 files changed
+15 -11

No files matched your search

@@ -1,5 +1,6 @@
export interface BootstrapMarkerLike {
pinnedCommit?: unknown
packageCommit?: unknown
schemaVersion?: unknown
}
@@ -12,7 +13,7 @@ export function needsPackagedRuntimeUpgrade(
): boolean {
return Boolean(packaged && stamp?.source !== 'fallback' &&
/^[0-9a-f]{40}$/i.test(stamp?.commit || '') && !/^0+$/.test(stamp?.commit || '') &&
hasValidBootstrapMarker(marker, 1) && marker?.pinnedCommit !== stamp?.commit)
hasValidBootstrapMarker(marker, 1) && (marker?.packageCommit || marker?.pinnedCommit) !== stamp?.commit)
}
export interface ActiveRuntimeState {