Repository navigation
feat(browser): Google direct sign-in notice after cookie imports (STA-3811) - #13666
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 0d7ea102ff1a10497bdb9cc2bc8b5e1bd09c5ad5 and da25d01. 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughBrowser cookie imports now report when Google cookies were skipped, with coverage for file and Chromium sources. Renderer import flows pass the imported profile ID to toast handling. Toasts show Google sign-in guidance and can open Google with that profile when an active worktree exists. Browser state supports local and remote profile-specific tab creation, with tests for success and failure paths. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
6aa07ab to
52ba4db
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 5ef25539-7dbd-4425-8619-b601e2a3cd16
📒 Files selected for processing (9)
src/main/browser/browser-cookie-import-policy.test.tssrc/main/browser/browser-cookie-import-policy.tssrc/main/browser/browser-cookie-import-replacement.test.tssrc/main/browser/browser-cookie-import.test.tssrc/main/browser/browser-cookie-import.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/browser-cookie-import-toast.test.tssrc/renderer/src/lib/browser-cookie-import-toast.tssrc/shared/types.ts
Visual QA (STA-3811)
|
758eeb1 to
0d7ea10
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4ced314a-8150-49d5-bfe7-3c36417f30c1
📥 Commits
Reviewing files that changed from the base of the PR and between 0824351 and 0d7ea102ff1a10497bdb9cc2bc8b5e1bd09c5ad5.
📒 Files selected for processing (13)
src/main/browser/browser-cookie-import-replacement.test.tssrc/main/browser/browser-cookie-import.test.tssrc/main/browser/browser-cookie-import.tssrc/renderer/src/components/browser-pane/BrowserImportHintButton.tsxsrc/renderer/src/components/browser-pane/BrowserToolbarMenu.tsxsrc/renderer/src/components/settings/BrowserProfileRow.tsxsrc/renderer/src/components/settings/BrowserUseCookieImportStep.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/browser-cookie-import-toast.test.tssrc/renderer/src/lib/browser-cookie-import-toast.tssrc/renderer/src/store/slices/browser.test.tssrc/renderer/src/store/slices/browser.tssrc/shared/types.ts
🚧 Files skipped from review as they are similar to previous changes (10)
- src/renderer/src/components/browser-pane/BrowserImportHintButton.tsx
- src/renderer/src/store/slices/browser.test.ts
- src/renderer/src/components/settings/BrowserProfileRow.tsx
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/components/settings/BrowserUseCookieImportStep.tsx
- src/main/browser/browser-cookie-import.test.ts
- src/renderer/src/lib/browser-cookie-import-toast.test.ts
- src/renderer/src/store/slices/browser.ts
- src/renderer/src/lib/browser-cookie-import-toast.ts
- src/renderer/src/components/browser-pane/BrowserToolbarMenu.tsx
| domains: [], | ||
| googleCookiesSkipped: integritySkipped + nonTransplantableSkipped > 0 |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Record Google cookies skipped during decryption.
Lines 1666-1670 increment only skipped when decryptCookieValueRaw fails, then continue before the code classifies the cookie domain. An encrypted Google cookie can therefore be skipped while googleCookiesSkipped remains false. Read host_key before decryption and update the Google-skip state on every Google-cookie skip path. Add a test for an undecryptable Google cookie.
Also applies to: 1851-1851
|
0d7ea10 to
da25d01
Compare
Corrected Electron QA — complete user journeyThe earlier corrective comment showed only the restored pre-import disclosure. That was incomplete evidence for this PR. At head
1. Pre-import disclosureThis is the shared footer restored from the intended #13670 design: bottom placement, separator, Info icon, and two-line copy. 2. Post-import result with the action added by this PRCurrent-head Chrome import: 859 imported / 72 skipped, 3. Result of clicking Sign in to GoogleThe action opens the Google Accounts sign-in page in the imported 4. No active worktree fallbackWhen no active worktree can host the sign-in tab, the result intentionally omits the action and gives the manual next step for the imported profile: Open a browser in Orca with this profile, then sign into Google. All four screenshots above were captured through Electron/CDP from the indicated PR heads; no Computer Use, AppleScript, or OS-level input automation was used. |
da25d01 to
2a94bc6
Compare
a6dcfcc to
f8fffe1
Compare






Summary
#13966 owns Google-cookie exclusion, clearing, import accounting, and the separate warning toast. This PR adds the remaining profile-aware recovery UX:
This is renderer-only. It does not change cookie clearing, import accounting, or the remote wire contract.
Testing