Skip to content

Commit 7dacb3d

Browse files
committed
docs(hub-ui): explain dock restore trust gate
1 parent 713b668 commit 7dacb3d

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
@@ -640,6 +640,7 @@ export async function createDocksContext(
640640
// the captured session intent.
641641
// `switchEntry` then consumes the persisted iframe route when the view boots.
642642
const restoreAfterInitialization = async (): Promise<void> => {
643+
// The authorization gate can still clear the live session on reload, so restore only after it settles.
643644
await waitUntilTrusted()
644645

645646
const restoreDockId = restoreIntent.selectedDockId

0 commit comments

Comments
 (0)