Repository navigation
Fix Illegal invocation when opening saved Builder projects - #1243
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change wraps ChangesBrowser session ID generation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Saved Builder projects now generate browser session IDs without the Chrome Illegal invocation failure. Coverage includes both affected startup paths, so the change is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Saved-project sync detached crypto.randomUUID from its Crypto receiver. Chrome rejects that call with Illegal invocation when generating a browser session after the save redirect. Call it through crypto in both default generators.
Adds regressions that enforce the browser receiver check for both the session helper and saved-project sync startup. Both failed before the fix and pass now. All 16 sync tests pass, and the local full test, type, and lint checks pass.
This PR contains only the sync fix and its tests. No OpenRouter integration, dependency changes, or database migrations.
Summary by CodeRabbit
Bug Fixes
Tests