Skip to content

fix(browser): match official Settings > Browser layout and copy - #327

Merged
Hona merged 3 commits into
devfrom
browser-settings/pr1-parity
Nov 21, 2026
Merged

Hona merged 3 commits into
devfrom
browser-settings/pr1-parity

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Settings > Browser now matches official (anomalyco/opencode b9a60d9d078d87bfb90f039e431090508f88ac02, packages/gui-plugins/src/browser/settings.tsx) in layout and copy, for everything this build already supports. This is ledger row UP-120 (upstream #65174). No new capability: sign-in import, "Choose sites", "Share sign-ins with remote servers", "Import cookie file", and the cookie count follow in separate PRs on top of WS-1's #286.

What changes

  • Import from another browser (settings.tsx:88-129): The section is titled and lists every detected browser profile inline: globe glyph, browser name, the profile name as a muted aside when the browser has several, and a per-row "Import…" button. When nothing is found it shows "No other browser found on this computer". The single history card and its profile-picker modal are gone.
  • Import dialog (site-chooser.tsx:328-347): "Import…" opens "Import from " (choiceLabel: "Google Chrome · Work") with Cancel and Import. A clean import closes the dialog and the row says "Imported history from ". If nothing was imported or the read failed, the dialog stays open and says why (official's signins.imported.none.from and signins.failed.read).
  • Browser detection timing: Browsers are now detected when Settings > Browser draws (as official does), not on a button click. Detection never runs at startup, and a listing older than 5 s is read again.
  • Copy (i18n/en.ts:197-260): "Hold Shift and click a link to use your default browser". Trailing periods dropped where official has none. The Advanced summary reads "Site permissions, browsing data" until the remote-server and cookie-file rows exist, then official's full summary. The hard-coded English parts of the summary are gone.
  • Advanced heading (settings.tsx:171-197): No fill and no inset. Uses official's chevron at 40% of the heading ink, with 16/8 spacing.
  • Site permissions (settings.tsx:297-369): Each row has a leading globe. The setting is an inline Select (112 wide, value + chevron, a menu with a check on Allowed or Blocked) instead of a cycling button. The note sits 16 below the card in the faint ink.
  • Browser data: The history page count is removed. Official shows a cookie count here, which needs feat(browser): enable real OS cookie encryption, CefCookieManager, remote cookie mirror, and Rust cookie importer #286's profile cookie list.
  • Spacing: Sections are 32 apart (SettingsLayout). features/settings no longer draws an empty description line under a plugin page's title, so the page starts where official's does.
  • Strings: 6 new English keys, using official's names: settings.advanced.summary.local, signins.import, signins.action, signins.imported.history.only.from, signins.imported.none.from, signins.failed.read. 6 now-unused history keys are removed (they existed only in en.json).

Captures (1x dark, harness/reference/browser-parity.ts, synthetic Chrome Work/Personal + Edge profiles)

Official:
Before:
After:

Site permissions, official:
Site permissions, after:

Import dialog, after (light):

Known differences (not in this PR)

Verification

  • scripts/guardrails.ps1: 5/5.
  • opencode-desktop debug build.
  • Settings cells captured light and dark against official captures: collapsed, import dialog (opens and imports), advanced, populated.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

@Hona
Hona merged commit bf79874 into dev Nov 21, 2026
7 checks passed
@Hona
Hona deleted the browser-settings/pr1-parity branch November 21, 2026 01:43
Hona added a commit that referenced this pull request Nov 21, 2026
Hona added a commit that referenced this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant