Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(appearance): version immutable default wallpaper URLs

Rahmana112edfe107f
diff --git a/app/globals.css b/app/globals.css
index 84f8b2d7..0090ce03 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -245,12 +245,12 @@ body {
ShellDescriptor.wallpaper; a per-shell override or custom image wins. graphite
(Dashboard) stays a pure gradient — a photo backdrop fights data widgets. */
.wp-aurora { background:
- url("/wallpapers/aurora.webp") center/cover no-repeat,
+ url("/wallpapers/aurora.webp?v=933abb0485f5") center/cover no-repeat,
radial-gradient(110% 120% at 16% 16%, #f4d6a0 0%, rgba(244,214,160,0) 46%),
radial-gradient(110% 110% at 82% 18%, #f2eee9 0%, rgba(242,238,233,0) 44%),
linear-gradient(145deg, #d3c5bd 0%, #d9dce7 56%, #b7c8dc 100%); }
[data-theme="dark"] .wp-aurora { background:
- url("/wallpapers/aurora-dark.webp") center/cover no-repeat,
+ url("/wallpapers/aurora-dark.webp?v=8b6e434e3409") center/cover no-repeat,
radial-gradient(110% 120% at 18% 14%, #30386f 0%, rgba(48,56,111,0) 46%),
radial-gradient(110% 110% at 84% 20%, #263d67 0%, rgba(38,61,103,0) 44%),
linear-gradient(145deg, #161629 0%, #10152c 58%, #0b1223 100%); }
diff --git a/app/wallpaper-cache.test.ts b/app/wallpaper-cache.test.ts
new file mode 100644
index 00000000..b7eb7d64
--- /dev/null
+++ b/app/wallpaper-cache.test.ts
@@ -0,0 +1,13 @@
+import { createHash } from "node:crypto";
+import { readFileSync } from "node:fs";
+import { describe, expect, it } from "vitest";
+
+const css = readFileSync("app/globals.css", "utf8");
+
+describe("immutable default wallpaper cache keys", () => {
+ it.each(["aurora.webp", "aurora-dark.webp"])("%s URL changes with its image bytes", name => {
+ const digest = createHash("sha256").update(readFileSync(`public/wallpapers/${name}`)).digest("hex").slice(0, 12);
+ expect(css).toContain(`url("/wallpapers/${name}?v=${digest}")`);
+ expect(css).not.toContain(`url("/wallpapers/${name}")`);
+ });
+});
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 04afb512..5aa08427 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,3 +1,7 @@
+## 2026-10-04 — Version replaced default wallpaper URLs
+
+The deployed light wallpaper reused an immutable one-year URL. Browser evidence still returned the old 40,480-byte mountain image while origin served the new 47,714-byte light asset. The CSS now includes each default image's content hash in its URL, so existing client/CDN caches request new bytes without clearing custom wallpaper preferences. A regression ties both light and dark URL versions to their actual image bytes.
+
## 2026-10-04 — Security Core dependency and Semgrep gates
OSV-Scanner 2.5.1, Trivy, and `bun audit --audit-level=high` were red on `2690b5e` and on PR 104 (`ec38f332`) for two unfixed HIGH advisories. npm still lists braces 3.0.3 and http-cache-semantics 4.2.0 as the newest releases. node-gyp 12.4.0 replaces `make-fetch-happen` with `undici`, still accepts MSO's Node range (`^20.17.0 || >=22.9.0`), and the regenerated `scripts/install/node-gyp/package-lock.json` no longer contains `http-cache-semantics` or `make-fetch-happen`. `npm audit --omit=dev --audit-level=high` on that prefix is clean, so the Trivy filesystem finding and the OSV finding for GHSA-ch52-4w7c-c8xp leave with the package. node-gyp 13 was not used because it requires `^22.22.2 || ^24.15.0 || >=26.0.0`.