Release the shell from a candidate engine that fails after it attached

The shell's scene part detaches it too, so a candidate failing in a later part (a layer's drawing, Cockpit clouds) leaves the shell free for the working engine instead of refusing every later attach. StyleManager.attachScene releases what it built when it throws, and one detach runs at a time. The controls phase awaits its parts, and a failed attachment no longer forces handoff off for the parts it releases. scripts/qa-app-once.mjs now also rolls back from a Navara candidate whose layer attachment fails.
This commit is contained in:
German Khokhlov committed 2026-11-03 19:45:34 +04:00
1 parent 58c8a481ed
commit d86047fe8f
12 files changed
+229 -76

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ test('universal notice lifecycle clears on dispose and uses the one top-center l
assert.match(dispose, /this\._feedback\.clearLoadingStatus\(\);/);
// The globe-bound parts, share restoration included, go with the scene.
assert.match(dispose, /await this\.detachScene\(/);
const detachStart = ui.indexOf(' async detachScene({');
const detachStart = ui.indexOf(' async _detachScene({');
const detach = ui.slice(detachStart, ui.indexOf('\n }\n', detachStart));
assert.match(detach, /this\._shareRestoration\.destroy\(\)/);
assert.match(ShareRestoration.prototype.destroy.toString(), /this\._shareTrackingNoticeGeneration \+= 1;/);