Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(wallpaper): do not cache a failed wallpaper load

iceclatterWTd94504d8ff6c
diff --git a/src/renderer/state/wallpaper.ts b/src/renderer/state/wallpaper.ts
index 66d2bbcb9..0e8fc5e39 100644
--- a/src/renderer/state/wallpaper.ts
+++ b/src/renderer/state/wallpaper.ts
@@ -33,6 +33,11 @@ function load(w: DesktopWallpaper): Promise<string | null> {
.then((url) => (url ? `url("${url}")` : null))
.catch(() => null)
loaded.set(key, p)
+ // A miss is not remembered: the file may appear (a still converting, an import finishing), and
+ // a cached null would pin the plain canvas until the app restarts.
+ void p.then((bg) => {
+ if (bg === null && loaded.get(key) === p) loaded.delete(key)
+ })
}
return p
}