Windows PowerShell with an AllSigned policy refuses unsigned .ps1 files.
ui-smoke.cmd runs ui-smoke.ps1 with a process-scoped -ExecutionPolicy Bypass
(no system policy change) and keeps the window open when double-clicked.
- render_active_document passed the tab id as the first __setContent argument,
but the page signature starts with previewHtml, so #preview rendered the tab
id ("1", "2", "3" as tabs were opened) and the window looked blank. The call
now goes through set_content_script(), and a test pins the exact script plus
the page signature so the two cannot drift silently.
- remove register_as_default() and the winreg dependency: the app no longer
writes HKCU on launch. publish.ps1 still refreshes the .md association.
The DSH sandbox blocks named pipes, so Chromium/WebView2 cannot start inside
it (window renders white, msedgewebview2 exits immediately; Edge headless
fails with a Mojo platform-channel access-denied fatal). UI verification
therefore moves to a script the user runs from a normal desktop shell.
- agent/tests/ui-smoke.ps1: launches the built exe with an isolated config
and --remote-debugging-port, waits for the port, runs the driver, closes.
- agent/tests/ui-smoke.mjs: connects over CDP, snapshots the page (preview
content, headings, fold toggles, highlighted code, window.ipc bridge),
saves a screenshot and a JSON report for the agent to read.
- The driver was validated against a mock CDP server; the real end-to-end run
needs a desktop shell (sandbox cannot host WebView2).
Adds agent/docs/next-2026-11-03.md: the remaining refactor, the decided but
unimplemented HKCU removal (publish.ps1 stays as is) and the editor-styling
design (no implementation chosen yet).
- AGENTS.md: new files and module splits need no approval; bug fixes,
refactors, tests and docs can be done directly with one commit each.
Only out-of-repo changes, releases, new third-party code and invariant
changes still stop for a decision. Adds the exe-size and readability
invariants.
- HANDOFF/STATUS/roadmap/README: correct the stale test count, file
sizes, session-restore claims and session.json entry; record per-tab
edit mode/scroll, the .txt removal, and the open editor-styling design
question.
- base64_encode uses div_ceil plus a slice loop (clippy: manual_div_ceil,
chunks_exact_to_as_chunks); add known-vector tests.
- macOS-only UserEvent variants no longer warn on Windows.
- needless borrow, needless bool, and a collapsible match arm in the
Destroyed handler.
- build.ps1 no longer treats the word "powershell" as an updater marker;
it now checks Start-Process / Invoke-WebRequest instead.
- build.ps1: dev build only; no copy to a fixed exe
- publish.ps1: user-run Medium publish to Nutstore
- docs: workspace stays D:\Scripts\md-preview, repo under AgentLowWorking
- .gitignore: local test/ scratch directory
- Model Home as a tab without a file path (Option<PathBuf>)
- + creates a Home tab; opening a file from Home reuses that tab
- Add a New File button to the Home page (replaces + for file creation)
- Closing the last file tab falls back to a Home tab
- Hide the tab strip while the only tab is Home
- Keep Home tabs out of detach, reveal, watcher, and duplicate checks
Use 30px hit area and 13.5x20 chevron (90% of the previous H2 marker) for every heading level, restore the outlined arrow, and keep it vertically centered to the left of the heading.
- Save failures now pause autosave for the file and show one warning instead of retrying every 700ms
- Closing the window after a failed save asks once to discard changes instead of looping on the error dialog
- Closing/switching a blocked tab asks before discarding its unsaved edits
- Widen preview/editor side padding to 48px and scale fold toggles with the heading font
- Wrap #preview children into nested section.mdp-fold/.mdp-fold-body by heading level
- Chevron button appears on heading hover; H2 folds to next H2, H3 to next H3, nested sections included
- No persistence: every render starts fully expanded
- Find auto-expands collapsed ancestors before scrolling to a hit
- Print expands all sections and hides the toggles
localStorage is unavailable for the with_html page (about:blank opaque origin), so zoom was never saved. Store it in config_dir()/zoom.txt via the zoom:<pct> IPC message (400ms debounce) and restore it when the page reports ready.
- Replace github light/dark hljs themes with assets/hljs/vs-dark.css (#1e1e1e bg, VS token colors)
- Drop the prefers-color-scheme stylesheet switch; code blocks stay dark in both themes
- Remove the toolbar Find button and its strings/icon; Ctrl+F and the findbar are unchanged
- Print keeps the dark background via print-color-adjust: exact
- Delete unused github.min.css / github-dark.min.css
- Ctrl+wheel zooms preview and editor; 90ms throttle; preventDefault stops WebView2 page zoom
- Range widened to 50-300%, step unified at 5% for wheel, toolbar buttons and Ctrl +/-
- No mouse-anchor (same scrolling behavior as button zoom)
- Add agent/AGENTS.md: workspace boundary is the top rule; build/test temp dirs stay in target/
- build.ps1 redirects TEMP/TMP into target/tmp