wraith/internal/updater
Vantz Stockwell de0fd0556c
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 1m7s
fix: font measurement race + updater download URL mismatch
Two fixes:

1. Terminal font rendering: xterm.js was calling fitAddon.fit() before
   fonts loaded. canvas.measureText() used a fallback font, got wrong
   cell dimensions (2-3px per char instead of 8-9px), producing 200+
   column terminals where text appeared as tiny dashes with colored
   blocks. Fixed by waiting for document.fonts.ready before fitting.
   Also prioritized Windows-native fonts (Cascadia Mono, Consolas)
   in the font stack.

2. Updater download URL: tagVersion used raw release.TagName ("v0.8.3")
   but CI uploads packages under stripped version ("0.8.3"). Download
   URL was .../v0.8.3/wraith-v0.8.3-setup.exe but the actual package
   is at .../0.8.3/wraith-0.8.3-setup.exe. Now uses latestVer (stripped).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 14:22:53 -04:00
..
service_test.go feat: auto-updater — check Gitea packages for new versions, download + install 2026-03-17 10:11:50 -04:00
service.go fix: font measurement race + updater download URL mismatch 2026-03-17 14:22:53 -04:00