fix: an unanswered head read confirms rather than assuming the app editor is current

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-09-15 21:01:52 +02:00
co-authored by Claude Opus 5
parent 46817d8a90
commit a51ead0e21
2 changed files with 6 additions and 2 deletions
@@ -497,7 +497,9 @@
onLatest = appVersion?.version === undefined || base === appVersion?.version
} catch (e) {
console.error('Error comparing versions', e)
onLatest = true
// The head is what this compares against, so an unanswered read is not
// evidence of being current: confirm, as an unclaimable deploy does.
onLatest = false
}
}
@@ -638,7 +638,9 @@
onLatest = appVersion?.version === undefined || version === appVersion?.version
} catch (e) {
console.error('Error comparing versions', e)
onLatest = true
// The head is what this compares against, so an unanswered read is not
// evidence of being current: confirm, as an unclaimable deploy does.
onLatest = false
}
}