# HANDOFF — Session State ## Branch / Commit State **`main`**, dirty working tree being committed as one unit (web source rendering fix — user-confirmed working). **NOT pushed — user rule: never push without explicit instruction (2026-08-24).** No feature branches pre-1.0: all work lands on `main` per work unit. ## The web-source rendering work (2026-08-28) — CURRENT MODEL: stable viewport + Fill **Background:** viewport==box made dragging the box reflow the page (truncation, scrollbars, unrecoverable image, "janky at stressful geometries"). Fixed-viewport + `Uniform` left letterbox dead space. CSS reset enlarged the gap. Scrollbars were called "super fail". **The model that satisfies invariants (implemented, needs visual verification):** - `Services/WebView2Manager.cs` — the page renders ONCE at the viewport size the element was created at (snapshot in `Register`, never tracked → no reflow, no truncation during resize). `overflow:hidden` (html+body) + transparent-bg injection on every nav — nothing else, no layout/CSS meddling. Immediate capture on `NavigationCompleted`. `FramePump` unchanged. - `MainWindow.xaml` — web `` uses `Stretch="Fill"`: any box the user draws is covered edge-to-edge, zero dead space, zero crop (OBS free-transform: fixed browser resolution, scene-item scales the texture). Aspect distortion only when the box aspect ≠ viewport aspect. - Invariants: **page viewport is stable; display Fill-scales texture to the box.** Build: 0 warnings; tests 4/4 (snapshot at register, no tracking after, min 1, transparent bg). **Rejected for the record:** fixed 1920×1080+`Uniform` (letterbox), CSS margin/100% reset (enlarged gap), viewport==box (reflow/truncation/scrollbars). ## Key facts / landmines - **App running locks `ytLive.exe`** → build fails MSB3027 until creator exits the app. - **Startup diagnostics:** unhandled exceptions + checkpoints go to `%APPDATA%\ytLlive\startup.log` (`Helpers/AppLog.cs`). On a silent startup crash, read that. - **Pre-existing test failures (unrelated to web source, do not chase):** `AudioPipelineTests.Mix_HonorsProviderGains_AndGameMute_KillsTheLoopback` + `RoundClipInteractionTests.Round_Clip_Corner_Is_Grabbable_And_Shape_Is_Circle`. - **Real-MainWindow tests MUST set `LayoutPathOverride`** — DB pollution wiped real data once. - **Good Dog Rule:** ONE integration test per change; no new feature branches pre-1.0. - **Scope Lock:** declare the file list, run `scripts/scope-check.sh` before every commit. - **Every feature change ships memory updates in the SAME commit** — `TASKS.md` status + this file. - No `CODING.md`; conventions live in `AGENTS.md` + `ai.md`. ## Next steps 1. AWAIT creator's verdict on viewport==box (geometry-agnostic) rendering — visual check with a widget URL at several box sizes; the selection frame must snap flush with no padding. 2. Follow-up only if the creator asks: graceful handling of navigation errors / invalid URIs (TASK 17 ×9). 3. Continue queue: TASK 18 local recording, TASK 21 media source, TASK 22 audio sync offset.