Skip to content

fix(web): preserve preview session during builds - #136

Merged
iamjr15 merged 1 commit into
mainfrom
fix/preview-loader-session-handoff
Aug 4, 2026
Merged

fix(web): preserve preview session during builds#136
iamjr15 merged 1 commit into
mainfrom
fix/preview-loader-session-handoff

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep the hidden preview-session exchange mounted while the branded build loader covers the starter scaffold
  • exchange the one-minute preview URL handoff for the renewable host cookie before long-running app builds finish
  • document the loader/session boundary

Decision

The preview iframe must stay unmounted until generated content is ready, but authorization cannot wait that long because URL handoffs expire after 60 seconds. The existing hidden session-refresh iframe now runs behind the loader, preserving the security boundary without exposing starter content.

Verification

  • pnpm turbo skills:build
  • pnpm turbo typecheck lint build (55/55 tasks)
  • production reproduction confirmed the branded loader stayed visible while the original handoff expired, which this change directly prevents by performing the documented cookie exchange during that state

@iamjr15
iamjr15 merged commit 0ac1e45 into main Aug 4, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/preview-loader-session-handoff branch August 4, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant