Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

2.7.1 is ready to cut

Open PathGao opened this issue 3 months ago • 1 comments

package.json is already at 2.7.1 and 22 commits have landed since v2.7.0. This is what is in it, what needed a decision and got one, and one thing about the old repository URL that has to be said out loud because nothing in the code can say it.


#466 — the installer and uninstaller are gone

You asked whether we could strip the install/uninstall code and let NSIS own it. #481 does that: setup.rs (1684 lines), Installer.svelte (548) and Uninstaller.svelte (248) are deleted, and mslnk and chrono go with them — setup.rs was their only user.

Why this clears the VirusTotal detection. The uninstall path wrote a batch file to %TEMP%, wrote a .vbs that ran it with a hidden window and then deleted itself, and launched the pair through wscript.exe. Hidden script → self-delete → launch an executable is close to the definition of Trojan:Win32/Wacatac.B!ml, which scores behaviour rather than matching a signature. Every property had a reason — the batch waited on the PID rather than the image name so a portable copy survives an uninstall (#358) — but the shape is what gets scored, so the only thing that clears it is removing the shape.

The install half was already dead. get_app_mode entered installer mode only on a filename containing installer or an explicit --install, and #355 stopped publishing any installer-named artifact. Nothing shipped could reach it.

The uninstall half needed a migration, and it turned out not to need a Windows box. I had asked you to check on Windows whether the updater's /UPDATE run still rewrites the registry entry. That question does not arise. Reading the bundler template at the version that built 2.7.0 (tauri-cli-v2.9.6):

Section Install = lines 614..717
  line 682   WriteRegStr SHCTX "${UNINSTKEY}" "UninstallString" "$INSTDIR\uninstall.exe"
  occurrences of $UpdateMode inside 614..717:  0

The write is not behind a mode check at all — the $UpdateMode guards in that file sit in Section WebView2 and Section Uninstall. So it lands whether or not /UPDATE is passed. Both sides also address the same key: the custom installer used APP_NAME and the template uses ${PRODUCTNAME}, both Markpad.

Two backstops cover the gap that remains. Section Install writes through SHCTX, so an old install that chose the other registry hive keeps a stale Add/Remove Programs row; a hook in hooks.nsi deletes it, matching on the --uninstall tail that only the custom installer ever wrote. And if both miss, a stray --uninstall hands off to uninstall.exe beside the binary and exits.

Signing would not have fixed this. A certificate addresses SmartScreen reputation, not a behaviour classifier's score. The same distinction applies to #209 on the macOS side, where notarization fixes quarantine and the TCC grant but not a heuristic detection. Worth knowing before spending money on one.

This also settles #395, which was open on the same question.


#182 — the Linux AppImage does not start, and the fix is sitting in master doing nothing

This is the reason I would not let 2.7.1 wait.

heyobscion reported in #182 that Markpad_2.6.11_amd64.AppImage exits immediately with an EGL error and never shows a window. @LargeModGames fixed it in #463, and the fix is small and exactly right: build.yml was pinning the WebKitGTK packages to =2.44.0-2, which bundled a WebKitGTK built against a Mesa the runner no longer matches. Unpinning them lets the AppImage bundle a compatible one.

-          libwebkit2gtk-4.1-0=2.44.0-2 \
+          libwebkit2gtk-4.1-0 \

But #463 changed build.yml, and build.yml is workflow_dispatch-only. Nothing rebuilds the AppImage between releases, so for anyone hitting #182 the fix does not exist yet — it becomes real the moment you cut 2.7.1 and not before. An app that does not start at all is a worse failure than the antivirus false-positive in #466, and it has been open since 2.6.11.

#182 is still open; the reporter has not been told a fix landed. Once 2.7.1 is out that is worth a reply, and the credit belongs to @LargeModGames.


The release pipeline was two Node deprecations deep, and the warning was already in your build log

A GitHub Action does not carry its own Node. action.yml declares which one it wants and the runner supplies the binary:

runs:
  using: node20        # "run me on the Node 20 the runner provides"
  main: dist/index.js

GitHub's timeline for that declaration (changelog):

when what
Apr 2026 Node 20 reaches end-of-life
2026-06-16 runners silently start running node20-declared actions on Node 24
fall 2026 Node 20 is removed; using: node20 has nothing to run on and the step fails

All four actions the repo pinned declared node20. So since June the repo has been running Node 20 bundles on a Node 24 interpreter — an untested combination today, a hard failure in the fall. And build.yml is workflow_dispatch-only, so nothing exercises it between releases: it would have failed at the moment you pressed the release button.

This was not a prediction. The v2.7.0 release run already printed it:

##[warning] Node.js 20 is deprecated. The following actions target Node.js 20 but
are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4,
softprops/action-gh-release@v2

#476 bumped all four. Because the repo pins by moving major tag it was already running the newest code inside each old major, so the real change is narrow — diffing action.yml at both refs, actions/checkout v4→v7 and action-gh-release v2→v3 each changed exactly one line, using: node20 → node24. v7's pull_request_target/workflow_run restriction does not apply here: no workflow uses either event.

There was a second, separate Node problem. build.yml pinned node-version: '20' in two places while test.yml and test_build.yml used lts/* — we were testing on one runtime and shipping on another, and Node 20 has been out of the runner toolcache since May, so the release job downloaded it fresh every run (Attempting to download 20... Acquiring 20.20.2, visible in all five v2.7.0 jobs). #485 aligns them.


Dependabot

#472 added it; #484 and #490 tuned it. npm and cargo run quarterly, GitHub Actions monthly — Actions is where deadlines get enforced by someone else, which is how the Node 20 problem above surfaced at all. Security updates are a separate channel and are not on this schedule.

The one thing worth knowing rather than inferring from a closed pull request: the first quarterly batch was closed unmerged (#489, #491), on purpose. The Tauri family's crate and npm halves land in different ecosystems and tauri build refuses when they disagree, so neither half could merge alone — and reading the changelogs, the batch cleared no bug and added nothing this app uses. The reasoning is on both pull requests so the next quarter does not start over.

alecdotdev/Markpad is load-bearing, and there is now a check for it

The updater endpoint is compiled into every copy of Markpad ever installed. Until #485 it read https://github.com/alecdotdev/Markpad/releases/latest/download/latest.json, and every install up to v2.7.0 still asks for exactly that — reaching the current feed only through GitHub's transfer redirect.

GitHub voids that redirect permanently if a repository or fork appears at the old location, and a fork is the easy mistake: it copies the code and not the releases, so the URL 404s the moment one exists. If that happens, every copy of 2.7.0 and earlier silently stops being offered updates, forever, with no remote fix — the URL is in their binary. Not a security problem (the pinned pubkey means nobody else can produce an installable signature), but unrecoverable.

#495 adds a step to build.yml that fetches that URL before creating the release draft and asserts the feed's download URLs still name this repository. It checks the property rather than a proxy for it: occupying the old location while serving a correct feed passes, which is the right answer; a fork or a deletion fails loudly, at the one moment somebody is watching. RELEASING.md §5 got ten lines shorter as a result and keeps every instruction.

Everything else in 2.7.1

  • #391 — each tab gets its own Monaco model, so undo survives a tab switch.

  • #104 — the Vim z family. monaco-vim 0.4.4 is latest on npm and its charCoords returns line numbers where the caller expects pixels, so lineHeight was NaN and zz/zt/zb were dead. Upgrading was not an option, so #479 registers replacements through the supported extension point. It also puts zb and z- the way :help scroll-cursor has them — 0.4.4 has them swapped, invisible while the family was dead.

  • #121 / #392 — six formatting commands got shortcuts, and Ctrl+T now means one thing. Three of the four chords I first proposed were wrong: Ctrl+Shift+K is deleteLines on both platforms, ⇧⌘Q is the macOS system Log Out, and Ctrl+E was already this app's edit/read toggle.

  • #488 — a read-only keyboard shortcuts reference in Settings, and one registry behind it. "What is the shortcut for X" previously lived in three independent places, including 15 hardcoded literals in TitleBar.svelte that nothing tied to the real handlers.

  • #464 — the preview scroll restore no longer anchors to a boxless <br>.

  • #474 — the panes map by source line instead of by ratio.

  • #468 — exported HTML follows the preview's max width.

  • #462 — Monaco no longer outlines fullwidth CJK punctuation.

  • #385, #469, #473, #475 — AGENTS.md corrections, issue forms, a pull request template, all fields optional.

  • #493 — Ctrl/⌘+Shift+S was in the menu but the handler matched cmdOrCtrl && key === 's' with no Shift guard, so the advertised Save As chord fell through to a plain Save. Save As itself always worked from the button.


Four things waiting on you

These are labelled awaiting decision because they are product-direction calls, not implementation questions:

  • #394 — an untrusted .md can phone home: img-src allows external images.
  • #390 — ⌘Q discards the session snapshot and only closes the front window.
  • #373 — saving a read-only file: hard error, or offer to overwrite?
  • #395 — mostly answered by #481 above; the label can probably come off.

And one new one, from #488: a read-only reference is shipped, but should shortcuts be remappable? A full remapping UI needs conflict detection, persistence, reset-to-default, and chord capture inside a webview, plus command labels across all 26 locales. Worth doing only if you want it.

PathGao avatar Aug 06 '26 04:08 PathGao

Correction — the #182 section of this issue is wrong, and 2.7.1 has shipped.

I wrote that the Linux fix "becomes real the moment you cut 2.7.1." @LargeModGames tested the published Markpad_2.7.1_amd64.AppImage on real hardware (Arch, Intel, Mesa 26.1.6) and reported in #498 that it still does not start usably. The window now opens but stays blank and WebKit's WebProcess aborts with the same EGL_BAD_PARAMETER.

#463 landed and is correct — he confirmed the published AppImage bundles WebKitGTK 2.52.3, not the old 2.44.0, by dlopening the bundled library and reading webkit_get_*_version. #182 had a second, independent cause, which I never looked for: the AppImage also bundles libwayland-client.so.0 from the ubuntu-24.04 runner, and on a host with newer libwayland it shadows the host copy and breaks host libEGL. Single-library isolation shows removing only that one is necessary and sufficient. It is on the AppImage excludelist precisely because it must come from the host.

His warning in #182 is the part worth repeating: the symptom changed shape between 2.6.11 ("no window, process exits") and 2.7.1 ("window appears, blank"), so a visible window must not be read as success.

I asserted a fix from reading a diff; he established the result from the built artifact on real hardware. That is the correct order and it is why #498 exists. #499 is his fix for the remaining cause.

Everything else in this issue stands. 2.7.1 is out (2026-08-06T04:55Z), so what this now describes is what shipped — with the #182 row still open.

PathGao avatar Aug 06 '26 07:08 PathGao