fix(street-level): a new sequence load drops the last one's error; framing survives a detached navigation

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-08 16:21:13 +04:00
1 parent bd57cf5f43
commit 4682757e71
4 files changed
+15 -2

No files matched your search

+2 -1
View File
@@ -44,7 +44,8 @@ export function createCameraFraming({ state }) {
function frame(ticket) {
const { position, bearing, altitude } = state.street;
if (!ticket || !position || !state.viewer) return;
if (ticket.generation !== null && !navigation.reassert(ticket.generation))
// Detached (shell teardown) since the ticket was issued: nothing to frame for.
if (ticket.generation !== null && !navigation?.reassert(ticket.generation))
return;
const ground = groundHeightAt(position.lon, position.lat, altitude);
// Owned before the call: starting it cancels the previous flight (ours