Nacre/docs/HANDOFF.md
2026-11-14 00:36:14 -06:00

54 lines
3.6 KiB
Markdown

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Handoff (2026-11-14)
## Goal
Nacre: Rust browser, egui Material You chrome on **WebKitGTK 6.0 in a GTK 4 window** (D-032/D-033), Linux only, as
the user's daily browser: sites about as well as Chromium, lighter on RAM, today's look kept, then UI cleanup and
motion (D-034). Vision: PLAN.md. Rules: CLAUDE.md (sessions), ORCHESTRATOR.md (orchestrator).
## Phase
`08 WebKit engine` nearly done. Servo is out of the build (S045) and out of the repo (S053, unverified build).
Next: finish 08 → user reviews and gaps → UI polish and motion. Order = `Plans/INDEX.md`.
## Done this run (S044–S050, S056; details in PROGRESS)
- S045 GTK host + egui overlay (`src/engine/`, `src/egui_area.rs`); S046 hidden smoke harness (`tools/smoke.sh`,
nested niri); S047 page scripts/find/JS; S048 dialogs, menus, permissions, full screen, Web Inspector, PiP;
S049 ad blocker (WebKit content filters + `webext/` extension); S050 bridge over SOCKS5, HTTPS-only, certs, error
pages, downloads, cookies policy, disk cache (DocumentBrowser); S056 user's bugs: real floating PiP (video only),
Material PiP controls, side buttons, middle-click links → new tab, spelling underline, menus without overshoot.
- `docs/ui-motion-audit.md`: 13 motion findings, blocks A–F wired into S039/S043.
## In progress
- **S053** Servo removal: boxes 1–6 committed (38fd033, 3664431, efe3815), stopped at the usage limit. Resume at
box 7 (build, tests, smokes, fix fallout), then close out. See the plan's "Resume" note.
## Next three steps
1. S053 box 7–8 (fresh session; nothing else uses cargo meanwhile).
2. S057 small UI bugs: Customize panel doesn't scroll (wheel goes to the page), site colour from the favicon (user: page colours are mostly black/white), colour picker glyphs, beforeunload on quit.
3. S058 ad removal animation (user asked twice: Pie-style cookie shield, port of the original `ZAP_JS`), then S051 profile/cookies/media, then S052 tuning (incl. the slow-connection pass the user asked for), S054 site pass.
## Known bugs / watch
- User saw a page stop taking input after PiP → return → idle (old PiP code); not reproduced; watchdog prints
`egui area: not drawing (…)` if it returns. User accepted it as a one-off.
- Network rules: no blocking until the content filters compile on a fresh profile (7–18 s).
- Frame links go through the tab's navigation policy (no frame info in WebKitGTK API).
- PROGRESS "Later" has the rest.
## Build and test
- `nice cargo build --release -j 2` → `target/release/nacre` (+ `libnacre_webext.so`); `nice cargo test --release -j 2`.
One cargo user at a time on `target/`. `target/retest/` = the user's retest copy (leave it).
- Smokes: `tools/smoke.sh tests/smoke/<name>.txt` (hidden nested niri); list in CLAUDE.md §5. Never Tor/proxies.
## Decisions to know (DECISIONS.md)
D-032 WebKit · D-033 GTK4 host · D-035 hidden harness · D-036 ad block · D-037 cookies · D-038 profile dir
`nacre-browser` · D-039 media · D-040 tuning (amended: DocumentBrowser) · D-043 sandbox media dirs ·
D-045 visible runs on DP-1 may take focus (prefer hidden; another project, caelestia-niri, shares the machine) ·
D-046 Web Inspector as devtools.
## Orchestration notes
- The app refuses `start_session` on turns started by another session's message; start sessions on the user's turn
or a side-sessions-event turn. Otherwise message an idle session or wait.
- Usage limits stop sessions mid-plan: tell them to commit WIP with a resume note before long runs.
- Tracker "Next up" sorts by id; INDEX order is the run order.
## Open questions for the user
- None blocking. S010 (phase-2 review) needs ~15 minutes with the user before the Gaps plans.