Repository navigation
feat(browser): SQLite browsing history, frecency omnibox, read-only import, clear-data confirm, and saved-tab hold - #289
Merged
Conversation
…mport, clear-data confirm, and saved-tab hold
Complete remaining BROWSER-UI upstream sync items (`UP-106` `#65073`, `UP-117` `#65124`,
and `UP-100` `#65067`) with zero new external crates and `#![forbid(unsafe_code)]`:
- **SQLite browsing history & frecency search (`crates/browser-pane/src/history/{page,search,store}.rs`):**
- Store up to 50,000 `http(s)` web pages in `<data>/browser/history.sqlite` with
`PRAGMA secure_delete = ON` + `VACUUM` on clear; never record `file://`, `workspace://`,
`artifact://`, `oc-preview://`, `about:`, `data:`, credentialed URLs, or isolated/private
`ContextKind::IsolatedPreview` tabs.
- Port upstream's word-start quality (`START` > `INSIDE`), 5-step recency decay,
`log2(1 + visits + typed)` frequency, single-word host-sum front-page synthesis,
idempotent merge, one-time legacy `plugin.browser/history` adoption, and least-frecency pruning.
- **Read-only user-explicit browser history import (`crates/browser-pane/src/history/import.rs`,
`apps/desktop/src/plugin_host/native/browser/history.rs`):**
- Discover Chromium, Firefox, and Safari profiles ONLY when the user explicitly clicks
`"Import..."` in `Settings > Browser` (never on startup).
- Snapshot source SQLite (+ `-wal`/`-shm`) into a private scratch dir opened strictly
`SQLITE_OPEN_READ_ONLY` + `PRAGMA query_only = ON`, filtering hidden/non-web/credentialed
rows; resolve browser/profile IDs strictly on the Rust side; support
`OPENCODE_BROWSER_IMPORT_ROOT` for scratch-profile proof harnesses.
- **Chrome-style omnibox (`plugins/browser/{address,history,panel,app,init}.luau`):**
- Upgrade `address.luau` to upstream `address-machine.ts` (`following`/`held`/`closed` list,
Chrome row ordering with Google Search + address + frecency pages, inline completion suffix,
Arrow/Tab cycling, layered Escape unwind, and single-page Forget via `Shift+Delete` or click).
- **Confirm before clearing browsing data (`UP-117` `#65124`, `plugins/browser/{settings,init}.luau`):**
- Clicking `"Clear browsing data"` opens a `DialogSize::Normal` confirmation modal
(`"Clear browsing data?"`, Cancel autofocused, danger `"Clear data"`), wiping `history.sqlite`
and legacy history only after confirmation while preserving `rune.sitePermissions` & `preferences`.
- **Saved tabs & loading hold (`UP-100` `#65067`, `plugins/browser/saved_tabs.luau`):**
- Persist per-session tab URL, title, and bounded favicon (`<= 6000` bytes, max 50 sessions)
and hold saved titles/icons on the tab strip while restoring/loading.
|
PR test build retired — merged into |
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…18..UP-122 (#295) - Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort) into docs/upstream-sync/ledger.{json,md} - Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 / UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign UP-115, UP-116, UP-075 to BROWSER-UI - Add separate Reviewed column for browser rows tracking retrospective security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287, #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294, and BROWSER-TOOLS PR 3+) - Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits: 1 skipped, 5 added: UP-118..UP-122) and refine radar routing
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.
Summary
Completes remaining
BROWSER-UIupstream sync work (UP-106#65073,UP-117#65124,UP-100#65067) with zero new external crates and#![forbid(unsafe_code)]:crates/browser-pane/src/history/{page,search,store}.rs):http(s)web pages in<data>/browser/history.sqlitewithPRAGMA secure_delete = ONandVACUUMon clear; strictly excludesfile://,workspace://,artifact://,oc-preview://,about:,data:, credentialed URLs, and isolated/privateContextKind::IsolatedPreviewtabs.START>INSIDE), 5-step recency decay,log2(1 + visits + typed)frequency, single-word host-sum front-page completion, idempotent merge, one-time legacyplugin.browser/historyadoption, and least-frecency pruning.crates/browser-pane/src/history/import.rs,apps/desktop/src/plugin_host/native/browser/history.rs):"Import…"inSettings › Browser(never on startup).-wal/-shm) to a private scratch directory openedSQLITE_OPEN_READ_ONLY+PRAGMA query_only = ON, filtering hidden/non-web/credentialed rows, resolving browser/profile IDs strictly in Rust, and honoringOPENCODE_BROWSER_IMPORT_ROOTfor scratch-profile proofs.plugins/browser/{address,history,panel,app,init}.luau):address.luauto upstreamaddress-machine.ts(following/held/closed, Chrome row order with Google Search + address + frecency pages, inline completion suffix, Arrow/Tab cycling, layered Escape unwind, and single-item Forget viaShift+Deleteor click).UP-117#65124,plugins/browser/{settings,init}.luau):"Clear browsing data"opens aDialogSize::Normalconfirmation modal ("Clear browsing data?", Cancel autofocused, danger"Clear data"), clearinghistory.sqlite+ legacy history only on confirmation while preserving savedrune.sitePermissionsandpreferences.UP-100#65067,plugins/browser/saved_tabs.luau):data:image/favicon (<= 6,000bytes, max 50 sessions) and holds saved titles/icons on the tab strip while restoring/loading.Verification
pwsh scripts/guardrails.ps1(5/5),pwsh scripts/web.ps1 -Check(wasm32+web-clock), andcargo check --workspace --all-targetsgreen.RUNE_DIRS_ROOT+ synthetic Chrome/Firefox profiles underOPENCODE_BROWSER_IMPORT_ROOT(proof/browser-ui/prove-pr4.ts):"Import…"imported 3 Chrome + 1 new Firefox web rows (filteredhidden=1,file://,user:pass@,about:); re-importing Chrome was idempotent (4 rows); SHA-256 of both source DBs stayed byte-identical."gith"opened Chrome-ordered dropdown (github.comfront-page +gith — Google Search+ frecency pages) with inline completion; forgettinglinear.app/anomaly/issuesdeleted it fromhistory.sqliteand removed its host row immediately.UP-117): Cancel preserved all 3 rows inhistory.sqlite; confirming"Clear data"wipedhistory.sqliteto 0 rows while preservingrune.sitePermissions.proof/browser-ui/pr4/).History.dbimport on macOS (implemented againsthistory_items/history_visitsschema, not exercised on Windows) and live CEF restart title/favicon hold across a real CEF process restart.