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

@@ -177,3 +177,12 @@ test('a refused claim (cockpit) does not frame the photo', () => {
framing.frame(framing.begin());
assert.equal(flights.length, 0);
});
test('a photo that loads after the navigation was detached does not frame', () => {
const { framing, state, flights } = setup({ sampled: 160 });
framing.attachNavigation(navigationFor(state));
const ticket = framing.begin();
framing.attachNavigation(null);
assert.doesNotThrow(() => framing.frame(ticket));
assert.equal(flights.length, 0);
});