Whether the user session already showed the Direct inbox. The app keeps the
list it showed in memory for that user session, so a tab opened after that
re-reads nothing: the tap sends its list-independent queries (the privacy
settings, Spotify's link, the empty state, the persona, the stories, the
search warm start) and no inbox fetch, no message-requests badge query and
no saved replies. A first, cold start of the tab fetches the filtered first
page from the same stored head. In-memory state like the warm start: the
end of the user session (endUserSession) clears it, and a restarted app
starts cold anyway.
ReadonlysharedThe conversations whose shared media this user session loaded, by long
thread id: the app keeps the pages it fetched, so a second visit in the
same session sends the shared links and the collections again and no media
page. The end of the user session (endUserSession) clears it; a
restarted app starts cold anyway.
Whether the user session's Direct search warm start went out.
The Direct surface's in-memory warm-up: whether the app already started the Direct search backend and asked its suggestion list, showed the inbox and loaded a thread's shared media — the state one user session builds.
The app warms it once per user session, when the Direct surface first shows. A picker that puts the surface in front warms it at its own enter; a tab warms it about a second after its own inbox snapshot, and the suggestion list follows the process presence timer's (~200 s after the launch,
android.process-timers.ts); a picker opened over an inbox that already warmed the session sends neither.The state lives in the process's memory, one per runtime layer, never in the session snapshot: a single inbox answer never stands for the warm-up, and a restarted app warms its own backend again. Its lifetime is the user session that built it: the app builds these from the session and ends them with it (
UserSession.completeEndSession→onSessionWillEnd()), soandroid.layer.tsregisters the reset withonUserSessionEndand a login that adopts an account starts the next account's surface empty.