fix(mobile): stop forcing the loading state when no session exists yet

The screen kept spinning after an offline cache miss because it treated
an absent session as a foreign host's session. Only a session from a
different host forces loading now.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
Jinwoo-H
2026-09-07 19:50:24 -04:00
parent badff060f1
commit c59ebc2038
+4 -1
View File
@@ -329,7 +329,10 @@ export default function HybridScreen() {
selectedHost={selectedHost}
session={sessionHostId === selectedHostId ? session : null}
viewEpoch={viewEpoch}
packageLoading={packageLoading || !selectedHost || sessionHostId !== selectedHostId}
// A session from the previously selected host must not render as ready for this one.
packageLoading={
packageLoading || !selectedHost || (session !== null && sessionHostId !== selectedHostId)
}
packageProgress={packageProgress}
packageWarning={packageWarning}
hostedViewActive={hostedViewActive}