GeezerVison is showing github.com — feat(browser): offer sign-ins and history from another browser on the pane by Hona · Pull Request #550 · anomalyco/opencode-rune
Conversation
Ports official's first-run sign-in offer, SignInOffer (packages/gui-plugins/src/browser/import-prompt.tsx:16-265 at db2d889c), to the browser pane. Stacked on #415 (cookie-file import): until #415 merges, this PR also shows its commits. It reuses #415's import path (host validation, batches, off the UI thread).
Where and when (official)
- Card on the new-tab page: above Recent / "Open a page" (
panel.tsx:1474-1477).
- Bar over pages: first among the bars above a page, never on the new-tab page and never on a suspended tab (
panel.tsx:1357-1360).
- When it shows: while
welcomed is false (import-prompt.tsx:100) and another browser is installed with a profile.
- When it goes for good: Not now (
decline, :81) or an import that brought cookies (jobs.ts:114-115) sets welcomed.
- Confirmation: after an import that brought something, the offer is replaced by a confirmation (browser icon, a check, the result text, a close button). It goes by itself after 5 s (
CONFIRMATION_MS) or when closed. The pane's page reloads when cookies came in (panel.tsx:594-598).
Text and buttons (official keys)
- Bar:
- Text:
signins.bar ("Bring your sign-ins and history from {{browser}}").
- Import (
signins.action, contrast).
- A chevron menu (
signins.other): the other browsers, then More import options (signins.more, which opens Settings > Browser).
- Close (
signins.dismiss, "Not now").
- Card:
- Title
signins.title ("Bring your sign-ins and history").
- One row per browser profile, each with its icon and its own Import.
- Not now and More import options.
- Outcome messages:
jobs.ts:186-276: signins.imported.*, signins.imported.partial.named, signins.protected.named, signins.failed.{key,access,read,storage}, signins.failed.locked.named, and on macOS signins.failed.keychain.
- What Import brings: sign-ins and browsing history together, as official's default (
import-prompt.tsx:84-85).
How the import runs
Browser:ImportSignInsAsync(source, profile, sites?): only the built-in browser plugin can call it. Profiles are given as ids from list_sources, never as paths.
- Reading: feat(browser): enable real OS cookie encryption, CefCookieManager, remote cookie mirror, and Rust cookie importer #286's
read_source_cookies reads the other browser's cookies on a worker thread (it copies databases and may ask the OS key store).
- Writing: the cookies then take feat(browser): import a cookie file from Settings > Browser #415's path:
prepare_for_import, so only plain hostnames and IP literals pass, then batches of at most 1,000 cookies / ~2 MiB, then the engine, whose to_cef_cookie checks the host again.
- Cookie limits: no per-site cap, as official's
writeCookies (profile/import.ts:10-38); Chromium evicts past its own limits. Recorded in ours.md.
Not in this PR
- "Choose sites": the site chooser is 2d.
- Proof: captures of each state beside official, with made-up profiles, follow in this body before merge.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/desktop/src/plugin_host/native/browser.rs
# apps/desktop/src/surfaces/browser/mod.rs
…em off the UI thread (READER-12 #415)
… pane, as official's SignInOffer
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… the new tab page has the card
…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
…n-in offer never stalls a draw
…/browser/mod.rs stays under 800 lines
Uh oh!
There was an error while loading. Please reload this page.
|
Smoke (tools/smoke.ps1, FLEET.md:156), launched: plugin loads.
PR CI build 6e85ed3 (contains #415):
first-frame: yes (336 elements)
plugins: yes (17 built-in, browser included)
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)
quit: yes (7 runs exit 0, 0 crash dumps)
total: 9/9 in 79.8s
Merged head 50b4d9d (dev merged in, local build): 9/9 in 68.4s, same nine lines.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 21, 2026
Hona
added a commit
that referenced
this pull request
Nov 22, 2026
…fficial, not at the pane's bottom (#712)
* fix(browser): the new tab page's prompt sits 80 pt below the top as official, not at the pane's bottom
Since #550 the new tab page put ui.spacer({ w = 0, h = 0 }) above the prompt when no sign-in offer shows. ui.spacer is flexible space in a stack, so it took the column's free height and pushed 'Open a page' (and the recent-visits list) to the bottom of the pane. Official (panel.tsx:1473-1491) renders the offer card only while it offers and puts the prompt pt-20 (80 px) below the top. The page now holds the offer only when there is one.
* fix(browser): key the new tab page's prompt and recent-visits columns so they keep their identity when the offer goes
READER-12b on afb04a4: without keys the column moves from child 2 to child 1 when the sign-in offer goes away (Not now, or the confirmation closes) and is rebuilt.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|