[BUG] Desktop (Windows): mod backdrop never draws — `image` ground rejected as "outside ThemeGround", `scene` renders nothing
Environment
- Claude Desktop for Windows 5.11492.5 (latest; update check reports no newer build)
- Claude Code 2.1.325 (the Code tab's bundled binary)
- Windows 11 (build 26300), x64
- A local mod loaded by hot reload from the session's dev-mods folder;
claude plugin validatepasses andtscagainst the 2.1.325 types is clean
Summary
Mod colors from $.theme.set({ colors }) paint in the Code tab, but no backdrop ever shows. The Claude Code side resolves isDrawn: true and, for a scene, raises ui.render on Backdrop for surface: 'desktop' — the Desktop app then draws nothing. For a still image ground, the Desktop app logs that the value is outside ThemeGround and falls back to its own background, although the value matches the 2.1.325 ThemeImageGround type exactly.
1. Still image ground is rejected
await $.theme.set({
colors: theme, // from makeColors(); paints fine
backdrop: { image: { source: 'beirut-dive.jpg' } }, // 2560×1600 baseline JPEG, 154 KB, in the mod's root folder
})
$.theme.setresolves{ isDrawn: true, requestId: "backdrop" }.%LOCALAPPDATA%\Claude\Logs\claude.ai-web.log:[warn] [LOCAL_SESSION] still ground: a mod's backdrop holds a value outside ThemeGround, so the app's own background shows. Check the mod's $.theme.set call.- The value is
ThemeImageGroundperclaude-code.d.ts(image: { source }, JPEG ≤ 1 MiB, ≤ 4096 px a side). It looks like the Desktop build and the 2.1.325 engine disagree on the ground's wire shape (ThemeImagewithsourcevsThemeImageWirewithtype/width/height/id).
2. Scene backdrop renders nothing
await $.theme.set({ colors: theme, backdrop: { scene: 'deep-water', glass: { blur: 4, opacity: 0.5 } } })
on('ui.render', { component: 'Backdrop' }, ($, e, next) => {
if (e.surface !== 'desktop' && e.surface !== 'mobile') return next(e)
const { Svg } = $.ui.resolve(e)
return <Svg source={SCENE} alt="…" isInteractive />
})
- Mod-side logging confirms the hook runs:
Backdrop render surface=desktop scene=deep-water plugin=<mod> glass={"blur":4,"opacity":0.5}, and$.theme.set→{"isDrawn":true,"requestId":"backdrop"}. - The SVG (21–37 KB,
viewBox+preserveAspectRatio="xMidYMid slice") renders correctly in Chrome, both with CSS@keyframesand with SMIL-only animation. - Nothing appears behind the conversation, and the Desktop log has no entry for it.
3. Gradient ground
As a control I swapped the image for backdrop: { gradient: { stops: ['#14082e', '#8e2266', '#ff7a3d'], angle: 180 } }. After the reload the Desktop log gained no new ThemeGround warning, but I haven't yet confirmed visually whether the gradient draws. I'll update this issue once I've checked.
Expected
A backdrop accepted by claude plugin validate and the 2.1.325 types draws in Desktop 5.11492.5, or $.theme.set resolves isDrawn: false with a reason (e.g. "this Desktop build doesn't draw image grounds / scenes") instead of true.
Notes
isDrawn: truewhile the Desktop app silently ignores or rejects the backdrop makes this hard to debug from the mod side; the only signal is a warning in the Desktop renderer log.- The mods docs (code.claude.com/docs/en/plugins/mods/interface) list no Desktop version minimum or Windows limitation for backdrops.
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/109844
- https://github.com/anthropics/claude-code/issues/109766
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
I hit the same symptom on Windows and tracked down the cause on my machine: the scene is drawn, but the glass veil over it is fully opaque because Windows "Transparency effects" is off.
Environment
- Claude Desktop 5.11492.5 (Windows 11, Microsoft Store build), Code tab
- Claude Code 2.1.325
- Reproduced with
theme-examples0.4.3 (/custom-theme ember,aurora,snow-pines) and with my own mod
Symptom
- Mod colors paint, and still grounds (
gradient,vector) draw. - Any
scenebackdrop shows only a flat color (the glass tint). No error in the transcript or the Desktop logs.
What I found in the page (DevTools via Developer Mode)
- The backdrop layer exists, is visible and full-window:
[data-engine-backdrop="ember"], 1920×1032,data-engine-backdrop-onset. - Inside the shadow root of
[data-plugin-drawn="Backdrop"]there is a full-size sandboxed<iframe srcdoc>holding the complete Ember SVG. So the tree arrives and is mounted. .dframe-roothasdata-engine-glasswith--engine-glass-opacity: 30%, but.engine-veil-host::beforecomputes to a fully opaque background (color(srgb 0.165 0.051 0.071), the tint at alpha 1) and covers the whole chat panel.
Cause The stylesheet has this rule:
@media print, (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
html:not([data-sim-native-hole]) .dframe-root[data-engine-glass] {
--engine-veil-share-floor: 100%;
--engine-veil-share-floor-no-blur: 100%;
...
}
}
and --engine-veil is color-mix(in srgb, <tint> max(var(--engine-glass-opacity), var(--engine-veil-share-floor)), transparent). With Windows Settings → Personalization → Colors → Transparency effects turned off, Chromium reports prefers-reduced-transparency: reduce, the floor becomes 100%, and the veil hides the entire scene.
Confirmation
Running document.querySelector('.dframe-root').removeAttribute('data-engine-glass') in the console made the Ember scene appear immediately (gradient, corner glows, embers).
Workaround Turn on Windows "Transparency effects". (Separately, with "Animation effects" off the scene is shown as a still picture, which looks intended.)
Why I think it's a bug
- Reduced transparency (and high contrast) silently disables scene backdrops entirely, while still grounds keep working.
$.theme.setgives the mod no sign that the backdrop is hidden, and nothing is logged.
Suggested fix
Under reduced transparency, drop the full-window veil (or the scene's blur) and keep opaque backing only behind the text column and panels, or report isDrawn: false with a reason.
This may also explain #109844 if that reporter has macOS "Reduce transparency" enabled, though I can't confirm that.
Same on macOS (Desktop 5.11492.5, Claude Code 2.1.325, Apple Silicon).
imageground rejected for both JPEG (2000×1620, 437 KB) and PNG (1800×1458, 995 KB), same log line as above.gradientground draws fine.- Difference from Windows: a
scenebackdrop (Svgfrom aui.renderhook onBackdrop) does render and animate on macOS. So on macOS only theimageground seems affected.
Same here on macOS 27.2 (Apple Silicon), Claude Desktop 5.11492.5, Claude Code 2.1.325... and it isn't limited to dev-mods. I get the identical outside ThemeGround line from a mod loaded through CLAUDE_CODE_PLUGIN_DIRS in ~/.claude/settings.json, not just from the session's dev-mods folder.
Image grounds I tried, all in the mod's folder and all rejected with that log line... baseline JPEGs at 2560×1440 (265 to 416 KB), a progressive JPEG, a 1200px PNG and a 128px PNG tiled with size and repeat. $.theme.set resolves isDrawn: true and the mod's colours paint, so only the ground is refused. color and gradient grounds draw fine.
One more finding that might help... a raster inside a scene breaks the scene too. I tested <image href="data:..."> with PNG, JPEG, WebP and SVG data URIs, an image in a <pattern>, a CSS background-image: url(data:...) and feImage. In every case the scene draws (its colours and text show), but the image area stays empty and every animation in the scene stops, including elements that have nothing to do with the image. The same scene without the image animates normally, with CSS keyframes and SMIL.
So on macOS, pure vector scenes are the only backdrop that works for me right now.
Same versions here (Windows 11 build 26300, Claude Desktop 5.11492.5 Microsoft Store build, Claude Code 2.1.325, Code tab). Windows Transparency effects is on, high contrast off, animation effects on, so the opaque-veil cause above doesn't apply. Three more data points:
1. After an app restart, no window draws themes at all
In every session, including brand-new ones and after sending a message, $.theme.set resolves:
{ "isDrawn": false, "requestId": "backdrop",
"reason": "no attached desktop or mobile client draws themes yet; the theme stands and draws when one attaches" }
theme-examples shows the same toast ("this window may not draw themes yet"). Going by the engine, that reason means no attached desktop/mobile surface lists Theme in its draws, so the Desktop client seems to attach without that capability.
2. Before the restart, a scene drew once and never animated
A filter-free scene (Svg isInteractive, radial gradients, CSS @keyframes transforms, the same recipe as theme-examples) showed as a still frame. I added three labelled test dots, each animated a different way: A with a CSS transform, B with a CSS d: path() morph, C with SMIL <animate>. None moved. The same SVG animates in Chromium both as an <img> and in a sandboxed srcdoc iframe.
3. The Backdrop render site is never asked again
I drove frames from the mod instead: a $.clock.every(100) timer writing a $.state value the Backdrop hook reads, plus $.ui.invalidate('ui.render'). Over about 4,000 ticks the Backdrop ui.render hook ran 0 times. The window kept showing the first drawing, even after the mod's scene name and theme changed and after /reload-plugins.
Happy to run a build or test mod if it helps.
Follow-up from the same machine and versions, after a fresh app restart. Themes were drawing this time (the scene showed), so point 1 above wasn't in play.
I ran the motion probe again with a clearer signal: a full-window Svg isInteractive scene with no filters and no prefers-reduced-motion rule, drawn under light glass (blur 4, opacity 0.3):
- left circle: CSS
@keyframestranslate, 5 s loop - middle shape: CSS
d: path()morph, 5 s loop - right circle: SMIL
<animate>oncyandr, 5 s loop - a full-width line animated
transform: scaleX(0)→scaleX(1)over 60 s withforwards, so it starts at zero width
Result in a new session: all three shapes drew at their base positions and none moved. The line was visible at full width. A frame paused at t=0 would show no line at all, so it looks like the animation styles are never applied: the Windows client seems to draw the scene's un-animated base state as a still, rather than running it in a live sandboxed frame.
The same SVG animates in Chromium both as <img> and in a sandboxed srcdoc iframe, and the macOS report above says scenes animate there, so this looks Windows-specific. Windows animation effects are on (SPI_GETCLIENTAREAANIMATION = true).
Seeing the same thing on macOS 27.2.1 (Claude desktop 5.11492.5, Claude Code 2.1.325, Code tab, mod hot-reloaded from the session's mods folder).
The still image ground (8-bit JPEGs, about 2000 to 2560 px wide, all under 1 MB) never shows, and the app log has the same line: "still ground: a mod's backdrop holds a value outside ThemeGround". The mod's colors still paint.
Two details that might help narrow it down:
- Switching to a
sceneworks for vector content (shapes draw, panels frost,isDrawn: true), but every embedded photo comes out empty:<image href="data:...">,xlink:href, a<pattern>,feImageand aforeignObjectCSS background. This happened both with and withoutisInteractive. - The same data-URI
<image>renders fine in anSvginside aPane, so the stripping seems specific to the backdrop.
Same on macOS (desktop 5.11492.5, Claude Code 2.1.325), and I think I found the cause. It isn't a wire-shape mismatch. The desktop app has no image case at all.
- Engine side works. Claude Code 2.1.325 reads the file, checks it (JPEG/PNG, ≤ 1 MiB, ≤ 4096 px), and sends the
ground as
{ type, width, height, id }. It then serves the bytes in 40 KB chunks by that id. - Desktop side drops it. In the desktop's web code (three cached builds of the same chunk), the still-ground
reader accepts exactly one of
color,gradientorvector. It has noimagebranch, so an image ground comes back empty, and the "value outside ThemeGround" warning fires. The warning is guarded to fire once per page load, which is why a second$.theme.setin the same window logs nothing. - Repro: a 2000×1192 baseline JPEG (491 KB) and an 800 px PNG (720 KB) from the mod's folder. Both return
isDrawn: true, and the window shows the app's own background.
So the fix is probably adding the image case to the desktop's still-ground renderer (fetching the bytes by id), and
isDrawn shouldn't report true for a ground the surface can't draw.
Building on neverblinks's findings: Claude Code already sends image grounds correctly, but the desktop's still-ground renderer has no image case, so they're dropped. That suggests a small, contained fix. #109844 and #109766 look like the same issue.