fix: correct observation embedding and orphan waiting state

This commit is contained in:
2026-09-15 07:50:07 -07:00
parent 9884a5beb2
commit f163de2643
2 changed files with 30 additions and 0 deletions
@@ -337,6 +337,7 @@ document.addEventListener('DOMContentLoaded', () => {
channelName: XZBTSurfaceMode.channelName(xzbtInstanceId),
timeoutMs: 1500,
onSnapshot: (values, stateRevision, registryRevision, presentation) => {
document.body.classList.remove('surface-waiting');
Object.keys(values || {}).forEach(target => applyPresentationState(target, values[target]));
if (presentation && typeof presentation.tickerText === 'string' && presentation.tickerText) {
const ticker = document.getElementById('observation-ticker-text');
@@ -368,6 +369,7 @@ document.addEventListener('DOMContentLoaded', () => {
// No console instance open on this channel (or a stale/unknown
// ?xi=). Degrade to a clear waiting state rather than inventing
// local authority (report SS9, Museum's proven behavior).
document.body.classList.add('surface-waiting');
console.warn('[SciFi-XZBT] Observation surface: no console instance found for xi=' + xzbtInstanceId);
}
});