73 lines
6 KiB
Markdown
73 lines
6 KiB
Markdown
# Handoff: where the from-scratch Nacre stands
|
||
|
||
Read `docs/DESIGN.md` first (rules, layout, the Servo 0.7 API cheat sheet), then `docs/FEATURES.md` (every feature
|
||
and where it lives) and `docs/REVIEW.md` (known gaps and things to check at the first build).
|
||
|
||
User rules: Servo engine, all Rust, plain UI for now, nothing from the original dropped (gamepad and Web Bluetooth
|
||
stay in), no builds until the code was reviewed. Build with `nice cargo build --release -j 2`, never together with
|
||
the test suite.
|
||
|
||
## State (2026-11-11)
|
||
- All modules written (~19k lines): storage, networking (bridge proxy for VPN/secure DNS, Tor, downloads, download
|
||
managers), ad blocker, Discord, media, spell check, importer, updates, keys, Servo glue (`hub.rs`, `window.rs`,
|
||
`app.rs`, `actions.rs`) and the plain egui UI (chrome, menus, dialogs, every nacre:// page).
|
||
- Review passes done without compiling: API signatures checked against the crate sources in ~/.cargo/registry,
|
||
names cross-checked between modules (commands, UI state, shared fields, crate:: paths), every setting checked
|
||
to be read by the code. Bugs found and fixed are in git history.
|
||
- Compiles (S001, 2026-11-11): `nice cargo build --release -j 2` exits 0 and produces `target/release/nacre`
|
||
(~144 MB); `--help`/`--version` run headless. Only five errors at the first build (two missing imports, three
|
||
borrow errors), fixed in place. 66 warnings left: egui 0.37 deprecations and dead code. Not run with a window
|
||
yet, unit tests not run yet.
|
||
|
||
## First build checklist
|
||
1. `nice cargo build --release -j 2` (first build takes hours: Servo, SpiderMonkey, WebRender).
|
||
2. Fix compile errors.
|
||
3. Run `cargo test` separately (unit tests in util, settings, history, bookmarks, permissions, vault, dns,
|
||
bridge (loopback only), download, adblock, keys, scripts, updates, inject, hub, theme).
|
||
4. Smoke test offscreen (see the user's CLAUDE.md): page renders, tabs switch, settings open.
|
||
5. Go through docs/REVIEW.md, especially "several painters on one GL context".
|
||
|
||
## Not included (candidates after the first build)
|
||
Reader mode, translate, split view (the per-tab painters make it possible), MPRIS media keys, real gamepad rumble.
|
||
|
||
## Orchestrator resume (2026-11-13) — engine switch to WebKit
|
||
|
||
Goal: Nacre runs sites about as well as Chromium for the user's daily use (Linux), lighter on RAM, good looking
|
||
(Material You, Damson as style reference). D-032: Servo is dropped for a tuned WebKit; Widevine later.
|
||
|
||
- Done on Servo (kept in git history): S001–S009, S015–S028, S031. MSE merged (S028), crash fixed (S031).
|
||
- Engine test: `docs/engine/engine-comparison.md` (Servo/WebKit/Chromium, 10 sites) and `docs/engine/tune/` (WebKit
|
||
knobs: page cache off → 2.4 GB, memory limit 500 MB → 2.5 GB, cache model DOCUMENT_VIEWER → VRAM 873 MB vs 1566,
|
||
hardware acceleration off → VRAM 57 MB; related views didn't help; gsk-gl run partial). Tools: `tools/engine-test/`.
|
||
- Installed: `webkitgtk-6.0` 2.54.2. `wpewebkit` 2.54.2 is in extra (not installed) — the spike decides GTK vs WPE.
|
||
- Old sessions all archived; worktree ~/Projects/Nacre-s022 removed (branch merged). The engine-test session may
|
||
still show in the sidebar (archive it there).
|
||
- Plans: Servo-only plans struck in INDEX (D-032). Engine-independent plans stay: S010, S012–S014, S034–S036,
|
||
S039–S043 (UI work after the switch).
|
||
- Next three steps: (1) the WebKit spike session decides the embedding (WPE exporting frames into egui's GL vs a GTK4
|
||
host for egui) and writes plans `08 WebKit engine` (spike result, glue, Servo removal, tuning defaults, site passes,
|
||
Widevine later); (2) orchestrate those plans one cargo user at a time; (3) then the UI block (S035, S039, S043).
|
||
- Rules in force: D-030/D-031 (compare shots with the reference browser), D-029 (fresh linked sessions from the
|
||
current orchestrator), user watches visible runs (D-009), caveman chat.
|
||
|
||
### Wrap-up (2026-11-13, 5-hour limit at 90 %) — start a NEW orchestrator from here
|
||
- Orchestrator 3 (this run) stopped for the usage limit. Sessions:
|
||
- **webkit-spike** local_cd9de570-2cc8-47b1-adb4-89ee68f873a7 — told to save WIP (`docs/engine/webkit-spike.md` "WIP state",
|
||
`spikes/`, commit `webkit-spike (WIP): …`) and stop. It was writing a Wayland input helper (virtual pointer + test
|
||
IME) for the spike; steps left: crates/libs check, spike build (egui toolbar + WebKit + YouTube), measure + visible
|
||
shots, webkit-spike.md + D-033, `plan-generate` for `Plans/08 WebKit engine/` (S044+), commit/push. Resume it by
|
||
message (D-029: it was started by orchestrator 3; a new orchestrator may also start a fresh session told to continue
|
||
from the WIP state).
|
||
- **servo-cleanup** local_917f7f5e-3aff-494f-a0c3-82e43b69dedd — done (baa3b7f): `docs/engine/servo-removal.md` lists every
|
||
Servo piece and the WebKit replacement; 4 open decisions for the 08 plans: ad-block interception (content filters +
|
||
web process extension), cookie encryption at rest vs WebKit's SQLite store, profile dir rename from nacre-servo,
|
||
Media Session/MPRIS source. Forwarded to webkit-spike.
|
||
- engine-test local_3703185c-… — finished, could not be archived from the orchestrator: archive from the sidebar.
|
||
- Validation habit: check commits/plan boxes by command; D-030/D-031 reference shots; one cargo user per target/.
|
||
- First action for the new orchestrator: `git log`, `git status`, read `docs/engine/webkit-spike.md` WIP state, then resume
|
||
webkit-spike; when its plans exist, orchestrate `08 WebKit engine` in INDEX order.
|
||
|
||
- Update: webkit-spike WIP pushed a29a7bf (spikes/webkit-egui builds: GTK4 window + egui overlay GLArea over WebKitGTK
|
||
views, wl-input helper; never run). Leaning (b) GTK4 host. servo-removal.md not read yet. Open questions for the user
|
||
(ask at the start): how should spike runs show — the user rejected a visible run that switched the DP-1 workspace and
|
||
maximized the window (options: visible without stealing focus/workspace, or hidden `kwin_wayland --virtual`); WPE is settled: no WPE, WebKitGTK in a GTK4 host (D-033).
|