mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-02 13:39:41 +02:00
scripts/capture-real-overview.mjs: - Default deviceScaleFactor to 1 (DSF=2 makes xterm's headless WebGL renderer draw console glyphs at ~2x while reporting nominal cell dims — invisible to cols/cell measurement, only the pixels reveal it; HTML chrome is unaffected so only the terminal font looks oversized) - Mint a unique timestamped filename per run so a viewer/HTTP cache can't shadow a fresh capture with a stale render of a fixed path - Seed per-device localStorage (skin, codeman-font-size, codeman-app-settings) so the capture reflects a real device: plan-usage chip shown (per-device key, deleted from server payload), side panels closed for a full-width terminal - Support prod's self-signed HTTPS (ignoreHTTPSErrors), env-configurable viewport CLAUDE.md: - Document the DSF=1 / unique-filename screenshot gotcha (incl. the real Codeman-side immutable-static-asset cache footgun) - Add the sanitize-html.js infra module (DOMPurify mXSS allowlist, COD-56) to the frontend module list and load order (was missing) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>