Keep history entries untouched by unfinished globe picks and restore each visited entry's layers

A picked engine now lives in the switch until it runs; only then is the
address written, so a pick superseded by Back or one that fails rewrites no
entry. An engine-changing history visit holds the outgoing share link, which
neither restores nor writes the visited entry, and the running engine takes
the address back once the switch settles, restoring any entry visited while
it was held or not yet listening. Handed-off layers keep running where the
incoming address agrees with the outgoing one and follow a visited entry
where it differs. A failed recovery keeps the error on the loading screen
with an engine picker for a retry, and a failing reveal of the new globe no
longer blocks the cover removal or later requests.
This commit is contained in:
German Khokhlov committed 2026-11-03 15:24:20 +04:00
1 parent 9cc34e324f
commit a066a2d1ca
10 files changed
+539 -113

No files matched your search

+20
View File
@@ -434,6 +434,26 @@ html:not([lang='en']):not(:lang(zh)):not(:lang(ja))
animation: pulse 2s ease-in-out infinite;
}
/* After a failed globe switch: start an engine again without a reload. */
.engine-switch-retry {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 16px;
}
.engine-switch-retry button {
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 1px;
padding: 6px 12px;
color: var(--text-primary);
background: transparent;
border: 1px solid var(--text-dim);
border-radius: 4px;
cursor: pointer;
}
@keyframes pulse {
0%,
100% {