Add Browserbase context to local Chrome skill - #160
YousefKhalil99 wants to merge 2 commits into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 32fabd6. Configure here.
| @@ -0,0 +1,35 @@ | |||
| { | |||
| "skill_name": "browserbase-context-to-chrome", | |||
There was a problem hiding this comment.
maybe local-cookie-sync could be a better name?
|
Tested
Other passing checks: Environment: Linux, Node 24.15.0, Chrome 154.0.8037.92, Playwright 1.63.0, Browserbase SDK 2.20.0; headed Chrome ran under Xvfb. Tests used synthetic state on public example domains and disposable contexts/profiles, which were cleaned up. No PR source changes were made. |

Summary
Add a reverse companion to
cookie-sync: copy cookies, localStorage, and IndexedDB from a Browserbase persistent context into a dedicated local Chrome profile for human use.The skill supports domain filtering, keeps storage state in memory, and refuses to overwrite an existing unmanaged Chrome profile. It documents the limits of transferring browser state and links back from
cookie-sync.Validation
node scripts/validate-skills.mjs— 19 passed, 0 failed; one pre-existing compatibility warning inoptimize-agent-prompt.node skills/browserbase-context-to-chrome/scripts/test-e2e.mjs— passed using a disposable Browserbase context. A synthetic cookie and localStorage value survived the transfer, and a cookie for an unrelated domain was excluded.httpbin.org. After the Chrome window closed, reopening its dedicated profile retained the synthetic cookie and localStorage value.npm cipassed with a fresh cache using the publicregistry.npmjs.orgURLs in the lockfile.node --checkpassed for both scripts.