Skip to content

feat(browser): Sign-ins and Browsing history boxes in the import dialog - #611

Merged
Hona merged 23 commits into
devfrom
browser-settings/import-boxes
Nov 21, 2026
Merged

Hona merged 23 commits into
devfrom
browser-settings/import-boxes

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Ports official's import dialog boxes, "Sign-ins" and "Browsing history" (packages/gui-plugins/src/browser/site-chooser.tsx:26-40,238-254,328-384 at db2d889c), to Settings > Browser. Stacked on #610 (ui.checkbox).

What changes

  • Two boxes: the dialog now has "Sign-ins" (import.signins) and "Browsing history" (import.history), both ticked each time it opens (:80-81). They cannot change while an import runs.
  • Import: needs at least one box (canImport, :231-236). It shows a spinner while the import runs.
  • Frame: official's ui.Dialog: the title with a close button, the body 16 in, Cancel and Import in the footer. The old "Bring browsing history into OpenCode's address bar" line is gone; official has none.
  • Sign-ins: run through feat(browser): offer sign-ins and history from another browser on the pane #550's Browser:ImportSignInsAsync: builtin-only, profile ids from list_sources, read on a worker thread, then feat(browser): import a cookie file from Settings > Browser #415's path (host validation, batches, the engine's checks). No new cookie path.
  • History: comes only after sign-ins that did not fail. It never fails the import: history that cannot be read counts as no pages (main.ts:285-296). The pane's offer (feat(browser): offer sign-ins and history from another browser on the pane #550) now follows the same rule.
  • Outcome:
    • Clean (something came, nothing lost): the dialog closes and the browser's row says what came (:164-176).
    • Partial or failed: the dialog stays open and says why, with official's jobs.ts:186-276 texts.
    • Cookies came in: the pane's offer ends (welcomed, jobs.ts:114-115).

Not in this PR

  • "Choose sites": the site list is 2d.

Proof (made-up profiles from proof/previews/seed-browsers.ts)

Official Ours
  • Both unticked (light): Import is disabled.
  • Firefox, clean: 3 made-up cookies; the dialog closed and the row says "Imported sign-ins from Firefox".
  • Helium, failed: made-up Chromium profile with no OS key; the dialog stays open with "Access was denied".

Launched: plugin loads (local build, scratch profile, no plugin browser: error).

Hona added 22 commits November 21, 2026 15:39
# Conflicts:
#	apps/desktop/src/plugin_host/native/browser.rs
#	apps/desktop/src/surfaces/browser/mod.rs
…t-banner-2

# Conflicts:
#	apps/desktop/src/plugin_host/native/browser/cookies.rs
#	apps/desktop/src/surfaces/browser/cookie_import.rs
#	crates/browser-pane/src/cookies/format.rs
#	plugins/browser/init.luau
#	plugins/browser/locales/en.json
…d never fails an import (official main.ts:285-296)
…t-boxes

# Conflicts:
#	plugins/browser/init.luau
@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 7de78ef into dev Nov 21, 2026
@Hona
Hona deleted the browser-settings/import-boxes branch November 21, 2026 18:05
@Hona

Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Smoke (tools/smoke.ps1 611, PR CI build 8d3dab8, contains #610), launched: plugin loads:

first-frame: yes (336 elements)
plugins: yes (17 built-in)
launcher: yes (Review, Browser, Terminal, Open file)
browser: yes (loaded smoke-page)
terminal: yes (Terminal 1)
settings: yes (14/14 pages, browser.browser included)
session: yes (189 message elements)
prompt: yes (200)
element-comment: yes
queued-prompt: yes
extension-popup: yes (uBlock Origin Lite popup)
quit: yes (all 9 runs exit 0, 0 crash dumps)
total: 12/12 in 114.6s

An earlier run during the timing-only window, with blade under load, failed browser once: the Luau watchdog fired in host_display.luau:204, a plain string function. The rerun with nothing else changed was 12/12.

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