Wait for the adapter to load at least one persisted session, or resolve
with an empty array after timeoutMs.
The session manager loads sessions from storage asynchronously, so a
synchronous adapter.sessions.sessions.read() immediately after
createTerminalAdapter() may return [] even when sessions exist on
disk. Use this helper to give the loader a chance to populate before
deciding whether the user is logged in.
Wait for the adapter to load at least one persisted session, or resolve with an empty array after
timeoutMs.The session manager loads sessions from storage asynchronously, so a synchronous
adapter.sessions.sessions.read()immediately aftercreateTerminalAdapter()may return[]even when sessions exist on disk. Use this helper to give the loader a chance to populate before deciding whether the user is logged in.