Commit 9766d84
Align install-dispatch version check with the gate predicate (F2)
The _can_self_update() gate is major-aware (major>4 or (major==4 and
minor>=4)), but _install_zip / _install_zip_inline still keyed off
`minor >= 4` only. On a future Godot 5.0 (major=5, minor=0) the gate
would let the user in expecting the seamless runner reload, but the
minor-only check would route them to the pre-4.4 inline extract +
"Restart editor" path — the crash-prone flow the gate exists to avoid.
Route both install-dispatch checks through the same
_version_can_self_update(major, minor) predicate (already unit-tested
for 4.3/4.4/4.6/5.0) so the gate and the dispatch can't disagree.
No behavior change on 4.4-4.6; fixes the latent 5.x inconsistency.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b0080fa commit 9766d84
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
344 | 348 | | |
345 | 349 | | |
346 | 350 | | |
| |||
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
396 | | - | |
| 400 | + | |
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
| |||
0 commit comments