-
fix(workspace-version): guard localStorage access + normalize redirect URL
发布于
2026-04-22 13:33:31 +00:00 Two resiliency fixes from PR #6436 review:
-
getNewExperienceOptIn / setNewExperienceOptIn now wrap localStorage
calls in try/catch, matching readVersionMap / setCachedWorkspaceVersion.
Without the guard, SecurityError in private-browsing mode or a
restrictive iframe would throw at module load inside
resolveSyncWorkspaceVersion(), blocking first paint. -
UserMenu's opt-in redirect now normalizes the trailing slash before
appending the workspace name. VITE_BASE_URL is "/opik" (no slash) in
the Comet build, so the previous concatenation would have produced
"https://host/opikmyworkspace" instead of "https://host/opik/myworkspace".
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件
-