Repository navigation
feat(browser): wire Share sign-ins with remote servers in Settings > Browser - #353
Merged
Merged
Conversation
|
PR test build retired — merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires "Share sign-ins with remote servers" in Settings > Browser on top of WS-1's merged
#286(ae32f010), matching officialanomalyco/opencodeatb9a60d9d078d87bfb90f039e431090508f88ac02.Official reference (
b9a60d9d078d87bfb90f039e431090508f88ac02)packages/gui-plugins/src/browser/settings.tsx:200-212: First row in theAdvancedbehavior card (id="settings-browser-remote",settings.remote.title/settings.remote.description, switch checked fromjobs.remoteSignIns() ?? false, disabled whenjobs.remoteSignIns() === undefined, toggling viajobs.shareSignIns).packages/gui-plugins/src/browser/profile/index.ts:118: Persistsremote-sign-insboolean (initial: false, off by default).packages/gui-plugins/src/browser/profile/index.ts:652-661: Turning sharing on/off applies to every active remote partition; turning it off stops mirrors and wipes shared cookies from remote partitions.What changes (per
#286split with WS-1)apps/desktop/src/plugin_host/native/browser/cookies.rs: AddsBrowser:ShareSignIns()andBrowser:SetShareSignIns(enabled)calling#286'sBrowserHost::{engine_cookies, share_sign_ins, set_share_sign_ins}(no second cookie path). Gated toscope.is_builtin_browser && scope.tool_sid.is_none()— third-party plugins and MCP tool coroutines receivebrowser.cookies.denied. Returnsnilwhen a connected engine lacks#286cookie support (engine_caps_known() && !engine_cookies()), disabling the switch; while the engine is idle, stays live so toggling works before opening a tab andBrowserHostsendsHostMsg::SetShareSignInsonReady { cookies: true }.apps/desktop/src/plugin_host/native/browser.rs&web.rs: ExposescookiesinBrowser:Engine()and hashesengine_caps_known,engine_cookies,share_sign_insintoDep::Browser.plugins/browser/settings.luau&init.luau: PersistsremoteSignIns(default: false, backward-compatible with older builds) inplugin.browser/preferences, syncsBrowser:SetShareSignInson startup and across windows (prefsStore.Changed), and binds the Advanced switch.Captures (1x dark)
Official:


Toggled ON (live
#286engine):After relaunch (idle engine, persisted ON):
Verification
scripts/guardrails.ps1: 5/5 passed.cargo check -p opencode-desktop: 0 warnings.#286engine: toggled ON in Settings > Browser > Advanced (after-toggle.png), relaunched on the same profile without opening a browser tab (after-relaunch.pngshows persisted ON and enabled).