Skip to content

Commit 652fd8c

Browse files
committed
docs(hub-ui): explain dock restore trust gate
1 parent 2900b4a commit 652fd8c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/hub-ui/src/client/state/context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ export async function createDocksContext(
637637
// the captured session intent.
638638
// `switchEntry` then consumes the persisted iframe route when the view boots.
639639
const restoreAfterInitialization = async (): Promise<void> => {
640+
// The authorization gate can still clear the live session on reload, so restore only after it settles.
640641
await waitUntilTrusted()
641642

642643
const restoreDockId = restoreIntent.selectedDockId

0 commit comments

Comments
 (0)