You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(studio): code-review and live-test fixes for the variables stack
Remainder of a review + in-browser test pass over the stack (hunks
touching stack-authored lines were absorbed into their PRs; these touch
pre-stack lines).
- studio: the SDK session never opened on the master view (activeCompPath
is null there), so the Variables/Slideshow panels were dead on
single-file projects — open the session with an index.html fallback
(useStudioSdkSessions) while edit-flow consumers keep the legacy null
gating, so cutover behavior is unchanged. Found by driving the panel
in a real browser.
- studio: register "variables" in the URL-state tab allowlist so
?tab=variables deep links survive normalization; clear preview variable
overrides when the composition or project changes so values can't leak
into another composition's preview/render.
- studio: extract usePreviewDocumentVersion from App.tsx (file-size gate).
- sdk: route handleSetVariableValue's CSS compat sync through
cssCompatChange — one implementation of the --{id} channel (object
values now clear a stale scalar prop instead of leaving it behind).
- sdk: content-keyed cache for getVariableUsage script scans (same
rationale as _gsapLabelCache).
- studio-server: shared variables-payload validation helper used by both
the preview and render routes (was two copies of the same check).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments