AI/Agents app-bar icon broken in production: slash-theme.css references /static/slash-site-logo.png which 404s #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
slash-theme.cssis loaded in production and overrides the AI/Agents plugin app-bar icon with a background image that does not exist on the server — it returns HTTP 404. Beta users see a broken/default AI icon.Evidence (CT#137, verified 2026-08-04)
The CSS rule (
webapp/channels/src/slash-theme/slash-theme.css):Live checks on CT#137:
So: the stylesheet loads, the plugin is enabled, the override fires, and the image 404s.
Root cause (suspected)
slash-site-logo.pngexists in the repo atwebapp/channels/src/images/slash-site-logo.pngand is referenced byslash-theme.css+product_branding_free_edition.tsx, but it is not being emitted to the client root as/static/slash-site-logo.png. Likely a webpack CopyPlugin path/output mismatch introduced when the branding assets were reorganised — needs confirming againstwebpack.config.js.Impact
Cosmetic but user-visible, and live in beta right now.
Relationship to other issues
This is the live-bug half of what NCW-Chat-slash-theme #1 / #2 were circling:
slash-site-logo.pngwith an SVGai-agent-icon.svg(already present inslash-theme/) into the AI plugin iconNote
webapp/channels/src/slash-theme/ai-agent-icon.svgalready exists in the repo — the CSS just points at the PNG instead. Fixing this properly probably resolves #1 and #2 together: emit/point at the SVG that's already there, rather than a PNG that isn't being shipped.Suggested fix
slash-site-logo.pngis not landing in the client root (webpack CopyPlugin).ai-agent-icon.svgand verify it is emitted + reachable.curl -o /dev/null -w '%{http_code}' <siteurl>/static/<asset>returns 200, and the Agents app-bar icon renders.Filed from the 2026-08-04 issue/PRD reconciliation pass. Deliberately kept separate from the doc cleanup — no code changed.
Fixed and verified in production.
Deployed 2026-08-05 as part of the v11.7.9 upstream merge deploy — webapp
slash-20260805-87f946c7c7.Live verification on CT#137:
And the rule in the deployed stylesheet now reads:
/static/slash-site-logo.pngstill 404s, and that is expected and harmless — nothing references it from CSS any more. It remains valid where it isimported from TSX, because the webpack asset pipeline resolves that path; only bareurl()in the verbatim-copiedslash-theme.csswas ever affected.Root cause for the record: this was not a CopyPlugin path/output mismatch as originally suspected. There is simply no CopyPlugin pattern for
slash-site-logo.pngat all —slash-theme.cssis copied to the client root verbatim, no loader processes it, so a bareurl()in it gets no module resolution. The constraint is now documented inDIVERGENCE.md:slash-theme.csscan only reference assets that are themselves explicitly copied to the client root.Fixed by PR #21.