Skip to content

[ee] feat: let an app's author give it an icon - #12794

Draft
Guilhem-lm wants to merge 13 commits into
mainfrom
app-icon
Draft

Guilhem-lm wants to merge 13 commits into
mainfrom
app-icon

Conversation

@Guilhem-lm

@Guilhem-lm Guilhem-lm commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

An app's author can give the app an icon: a Lucide icon on a color, or an uploaded image. The icon
replaces the app-kind glyph wherever the app is listed (homepage rows, Recent and Favorites, search,
pickers, chat mentions, the Compare page) and in the app page header (before the summary), and
becomes the app page's browser-tab icon. Apps without an icon look exactly as before.

EE companion: windmill-labs/windmill-ee-private#1037 (registers the app_icon/set usage counter).

Changes

Storage and API

  • Migration adds app.icon (JSONB descriptor: {kind: "lucide", name, color} or
    {kind: "image", hash}) and app.icon_image (the image's data URL). Two columns so the app
    list never reads image bytes: Postgres decompresses a whole jsonb value to read one key.
  • CreateApp.icon / EditApp.icon (raw create/update included). On update an absent icon keeps
    the stored one and null clears it. Validation: Lucide name [a-z0-9-]{1,64}, color
    #rrggbb, image a PNG/JPEG/WebP base64 data URL up to 512 KB. SVG is refused because the
    image is served from the API origin, where an SVG opened on its own would run its scripts.
  • Full reads (get_app, get_app_by_id, workspace export) return the image as src; the list,
    lite read and runnables list return the descriptor only.
  • New GET /w/{ws}/apps/icon/{path}?v=<hash>: the decoded image with its content type,
    nosniff, and private, max-age=31536000, immutable when v is the current hash
    (no-cache otherwise). Read through the user's DB connection plus the apps:read scope.
  • Workspace fork copies both columns; fork compare treats an icon change as a change.
  • AI session tools (chat and MCP): raw-app drafts keep icon through edits, deploy_workspace_item
    sends it (absent on update → null, so a removal deploys), and diff compares it for low-code
    and raw apps, mirroring the UI's deploy and diff code.

Frontend

  • AppIconSetting in the app settings drawer (None / Icon / Image). An uploaded image goes through
    a crop dialog (zoom and pan) and is stored as a 512 px WebP (JPEG fallback). Lucide icons come from the bundled lucide-svelte
    through a lazy import.meta.glob, loaded only when an app has a Lucide icon.
  • AppIconBadge draws the icon; ItemIcon uses it in place of the kind glyph for apps in every
    workspace item list (homepage rows, Recent and Favorites, ⌘K search, path and breadcrumb pickers,
    chat mentions and context, the Compare and Review & Deploy rows) and in the page header
    (PageHeaderItem.icon). It falls back to the kind glyph if the icon fails to load. Lists and
    browser storage hold only the descriptor, never image data.
  • The in-workspace app viewer sets the tab icon while it owns the page and restores the default on
    leave.
  • Low-code and raw editors carry the icon in drafts (null = removed, absent = a draft from before
    icons, which keeps the deployed one), in Review & Deploy and in the AI session's raw-app editor.

CLI

  • app.yaml / raw_app.yaml carry icon, an image inline as a data URL. The yaml is the source of
    truth: removing icon from it and pushing clears the deployed icon; an unchanged icon is not
    re-pushed.
  • windmill-utils-internal deployItem sends icon: null for an app without one, so deploying a
    fork's removal reaches the parent.

Telemetry

  • feature_usage app_icon/set, key lucide | image, logged when an author picks a Lucide
    icon or uploads an image. Plain counter, no disclosure change.

Test plan

End-to-end run by an independent agent against this branch's backend (quickjs,enterprise,private,parquet) and frontend, scratch apps only:

  • Low-code app, Lucide icon: settings drawer → Icon rocket / #e11d48 → deploy. Home row shows the badge, app page header shows it before the summary, tab icon is the data:image/svg+xml with that color.
  • Low-code app, image: a PNG upload is stored as a 512 px WebP; row, header and tab icon use /apps/icon/<path>?v=<hash>, which answers image/webp, nosniff, and private, max-age=31536000, immutable (only with the current hash; no-cache otherwise; 401 without auth).
  • Low-code app, None: kind glyph back on the row, no badge in the header, tab icon back to /logo.svg, icon endpoint 404.
  • Raw app: an icon-only change autosaves to the draft, survives an editor reload, shows in the Review & Deploy diff, and deploys.
  • Raw app, image then None: same checks as the low-code app.
  • An app with no icon looks as before (row glyph, header, tab icon).
  • API edge cases: SVG, https URL, bad base64, over 512 KB, bad Lucide name, bad color → 400 with nothing written; update without icon keeps it; icon: null clears both columns; an icon-only update adds no version.
  • Access: a user who cannot read the app gets 404 on the icon endpoint; a token scoped to another app's path gets 403.
  • Lists: home rows, Recent and Favorites (including right after starring), ⌘K, the breadcrumb picker and chat mentions show the badge; an unknown Lucide name or a missing image falls back to the kind glyph and the tab keeps /logo.svg.
  • Compare page rows show the icon of the side being deployed, in both directions.
  • CLI: sync pull writes icon into app.yaml / raw_app.yaml (image inline); a color change pushes; removing icon from the yaml clears the deployed icon; a second push reports 0 changes.
  • Fork: both apps keep their icons in the fork (same hash and bytes); removing an icon in the fork and deploying it from Compare clears it on the parent; a new image deployed from the fork reaches the parent.
  • Telemetry: feature_usage gets app_icon/set/lucide and app_icon/set/image; one pick and one upload each add exactly 1.
  • AI session tools (the chat's HTTP route): write_app_file keeps a drafted icon (and a drafted null), diff reports icon changes for raw and low-code apps, deploy_workspace_item deploys the drafted icon or its removal. The MCP surface, where the server saves the draft itself, runs the same normalize_app_draft but was not exercised (no mcp feature or AI key on this backend); the unit tests below pin it.
  • cargo test -p windmill-api --lib -- ai_session_tools app_icon: 66 passed (new: stores_only_raster_data_urls, app_drafts_keep_a_removed_icon, a_raw_app_update_removes_the_icon_only_on_an_explicit_null).
  • vitest appDraftSettings.test.ts (new icon case) passes; npm run check: 0 errors.

Demo

1796374932-app-icon-demo.mp4

Screenshots

Home page rows (Lucide icon, no icon, uploaded image):

home rows

App page header, before (no icon) and after (Lucide icon, image):

header without icon
header with Lucide icon
header with image

The setting in the app settings drawer:

icon setting

An icon-only raw-app draft in Review & Deploy, and a fork's icon removal on the Compare page:

review diff
fork compare

Notes

  • raw_apps/utils.test.ts › "collapses a nested deployed row and a flat draft…" fails on main
    too (it differs on parent_version); not touched here.
  • Build: about 1850 small lazy chunks are added (one per Lucide icon), none loaded until used.
  • The public app page does not show the icon.

🤖 Generated with Claude Code

Guilhem-lm and others added 4 commits November 30, 2026 08:27
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 2m 17s —— View job


Good to merge

Review

  • Read AGENTS.md and the diff (git diff origin/main...HEAD, 50 files)
  • Reviewed the backend: migration, app_icon.rs, apps read/write paths, the runnables union, fork clone and compare, and export
  • Reviewed the AI session tools (deploy.rs, workspace.rs) against the frontend's deploy and diff code they copy
  • Reviewed the frontend: editors, drafts, deployDraft, the homepage badge, the header, the favicon and Lucide loading
  • Reviewed the CLI (app.ts, raw_apps.ts) and windmill-utils-internal deployItem

I found no P0, P1 or P2 issues. These are the risky spots I checked, and why each holds:

  • Icon endpoint (GET /apps/icon/{path}) checks apps:read:{path} and then reads through UserDB, so access rules and the token's scope both apply. It only serves bytes that decode_image decoded from one of IMAGE_TYPES, so SVG never comes back. The response is nosniff, and the long cache is private and only applies when v matches the stored hash.
  • Validation is in icon_columns, which runs before any write on create, update and both raw paths. The multipart raw routes deserialize into the same CreateApp/EditApp. Name and color are restricted to [a-z0-9-] and #hex, so sqlb.set_str("icon", …) cannot receive a quote. Switching to a Lucide icon or to none sets icon_image = NULL, so no orphaned image is left behind.
  • Absent vs null: EditApp.icon uses double_option. The places that rebuild a full app all send null when there is no icon: the AppEditorHeader update, rawAppDeploy, deployDraft, deploy_app in the AI session tools, deployItem and the CLI. Drafts saved before this change still keep the deployed icon:
    • raw-app page: +page.svelte:446
    • draftOrDeployedSettings
    • appSourceToDraftValue, and its Rust copy app_source_to_draft_value
  • Value leakage: the icon the low-code editor copies into $app is removed again by classicAppDraftParts (through withoutDraftBase) before deploy. It does not end up in app_version.value, and the Rust classic_app_parts removes it the same way.
  • Full vs lite reads: the CLI compares against getAppByPath and deployDraft reads getAppByPath. Both are full reads that carry src, so iconUpToDate/deepEqual matches and a hash-only {kind:"image",hash} is never sent back. That matters because sending one would fail to deserialize into AppIcon::Image { src }.
  • Runnables union: every branch selects icon at the same position (runnables.rs:311,329,347,367,464). The inner draft subqueries at lines 428–450 feed draft_branch_sql, which adds the column.
  • Fork: clone_apps copies both columns. compare_two_apps compares the descriptor, whose hash is enough to detect an image change.
  • Mirrored logic (AGENTS.md: "deploy_workspace_item and diff… a behaviour change must be mirrored"): deploy_app and sides_of_row in Rust match rawAppDeploy.ts and canonicalDraftSideValue/draftOrDeployedSettings. In both, absent becomes null on update and the icon is compared separately from the grid.

AGENTS.md compliance

  • The telemetry follows docs/feature-telemetry.md: the app_icon/set pair is registered through the EE companion, ee-repo-ref.txt is bumped, and the doc count is updated.
  • The migration uses IF NOT EXISTS and has a down migration. The .sqlx cache is updated for every changed query!.
  • The comments explain constraints (why two columns, why SVG is refused, absent vs null) rather than describe the code.

Test coverage

Backend: stores_only_raster_data_urls covers SVG and non-data-URL rejection, and app_drafts_keep_a_removed_icon covers keeping a null icon through a draft. Neither of these is tested and both are worth one test each:

  • the #rrggbb and Lucide-name checks
  • the endpoint's v → Cache-Control switch

There is no integration test of update keeping the icon when the field is absent and clearing it on null. That is the rule most likely to break later and could take one update_app round trip in the existing API test harness. Not blocking.

Frontend: asAppIcon, sameAppIcon and draftOrDeployedSettings are pure logic and appDraftSettings has callers in tested code. A small test for the absent vs null handling in draftOrDeployedSettings would be a cheap guard. Optional.

CLI: iconUpToDate and iconForUpdate are trivial, so no test is needed.

Manual checks before merge (the PR says the E2E run is still in progress):

  • Low-code, Lucide icon: set one in the settings drawer and deploy. The homepage row, the app header and the browser tab should all show it. Pick None and deploy again: the kind glyph and the default favicon should come back.
  • Raw app, image: upload a PNG, a large JPEG photo and an SVG. Each should be stored as WebP or JPEG and stay well under 512 KB. Reload the homepage and check that /apps/icon/...?v=<hash> comes from the browser cache. Replace the image and confirm the hash changes and the new image shows.
  • Existing draft: open an app whose draft was saved before this change while the deployed app has an icon. Deploying should keep the icon.
  • CLI: run wmill sync pull on an app with an image icon, then push without changes; it should report nothing to push. Delete icon: from app.yaml and push; the deployed icon should be cleared.
  • Fork: change an icon in a fork. The compare page should show the app as changed, and deploying it to the parent should carry the icon over, including a removal.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Deploying windmill with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6326abd
Status: ✅  Deploy successful!
Preview URL: https://bd134980.windmill.pages.dev
Branch Preview URL: https://app-icon.windmill.pages.dev

View logs

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Codex Review

cc @Guilhem-lm

Should address issues before merging: MCP raw-app deployment clears an omitted icon.

  1. [P1] Preserve the distinction between an absent icon and an explicit removal
    backend/windmill-api/src/ai_session_tools/deploy.rs:451

    normalize_app_draft leaves icon absent in drafts saved before this feature, but deploy_app converts that absence to null and sends it on every update. Consequently, deploying an older raw-app draft through deploy_workspace_item clears the deployed icon even when the draft only changes source code. This can pass the stale-version guard: an icon-only API update does not create an app version.

    Preserve field presence when constructing the update: omit icon when the draft has no key, and send null only for an explicit removal. The frontend deployment helper already inherits the deployed icon through appSourceToDraftValue(draft, app).

Test coverage

Backend tests cover raster data-URL handling and explicit-null preservation in draft normalization. The diff adds no integration coverage for icon serving, update omission/removal, or MCP deployment; add a regression for the finding above.

Frontend icon utilities and the modified draft/diff helpers have no icon-specific tests. Component tests are not expected. CLI add/unchanged/remove round trips also lack regression coverage. Documentation-only changes need no automated tests.

No repository test suite or live-instance E2E was run during this review.

Before merge, save a raw-app draft without an icon key, set a deployed icon through an icon-only update, and deploy that draft through MCP. The icon should remain; an explicit icon: null should remove it.

Exercise Lucide and uploaded-image icons in both editors, including save/reload, Review & Deploy, homepage display, and favicon restoration after navigation. Also verify CLI pull/push preserves an unchanged icon and clears one removed from YAML.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Pi Review

cc @Guilhem-lm

Mergeable, but should ideally address nits: absent-vs-null icon semantics diverge in deploy_app (backend AI deploy sends icon: null when the draft omits the field, removing the icon, while the rest of the stack treats absent as "keep deployed").

P2 — AI-session deploy removes the icon when the draft omits it, contradicting the "absent keeps deployed" contract

backend/windmill-api/src/ai_session_tools/deploy.rs:448-451

let icon = non_null(draft.get("icon")).cloned();
if exists {
    // An update keeps the deployed icon when the field is absent: `null` removes it.
    app.insert("icon".into(), icon.unwrap_or(Value::Null));

non_null collapses "key absent" and "value null" into None, so unwrap_or(Value::Null) sends "icon": null in both cases. The endpoint it posts to (apps/update_raw_source, i.e. EditApp.icon with double_option) reads an absent field as "keep the stored icon" and only null as "remove". So a draft that simply predates icons — or one the model rewrote while dropping the icon key — clears the deployed icon on the next deploy.

This is inconsistent with every other layer this PR introduces:

  • backend/…/ai_session_tools/workspace.rs (app_source_to_draft_value): "only an absent key takes the fallback's" icon (absent → inherit).
  • backend/…/ai_session_tools/deploy.rs (sides_of_row): draft_icon = match draft_icon { Some(icon) => …, None => deployed_icon.clone() } (absent → deployed).
  • Frontend deploy (frontend/src/lib/utils_draft_deploy.ts:664 + appDraftSettings.ts:81): parts.icon !== undefined ? … : deployed.icon (absent → keep deployed).

The comment on line 450 also reads as if the code preserves the icon when absent, which it does not. Given the AGENTS.md rule that deploy_workspace_item "must be mirrored" with the chat's shared deploy code, this path should either send nothing when the draft has no icon key (letting the endpoint keep the deployed one) or distinguish absent from explicit null before building the request.

Considered and dismissed

  • Auth/authorization on the new GET /w/{ws}/apps/icon/{path} — mirrors get_app exactly: check_scopes(…, "apps:read:{path}"), user_db.begin(&authed), and a workspace_id = $2 filter, so no new auth gap.
  • SVG / script XSS via the icon endpoint — SVG data URLs are rejected at write (decode_image whitelists only PNG/JPEG/WebP), the response sets X-Content-Type-Options: nosniff with the declared content type, and the cache header is private; nothing is served as an executable type.
  • Color injection into the favicon SVG — lucideIconSvg interpolates color into an SVG string, but icon_columns validates #rrggbb at every write path (create, update, fork-copy copies already-validated columns), so the value is never caller-controlled at render time.
  • appIconImageSrc doesn't URL-encode path — app paths are constrained by check_proper_path to alphanumerics/_/-//, so the raw path can't break the URL.
  • Missing magic-byte validation of uploaded image bytes — the declared content type is validated but the decoded bytes aren't; with nosniff and an image content type this only produces a broken image, not XSS, so it's not a security issue.
  • Lucide 0.367 picker names vs lucide-svelte 0.540 module keys — a renamed icon that no longer resolves falls back to the kind glyph via AppIconBadge's fallback snippet, so at worst a glyph is shown.
  • CLI iconUpToDate/isSuperset interplay — deepEqual is key-order-insensitive and icon isn't destructured out of localAppBody, so the separate iconUpToDate check only matters for the removed-from-yaml case it was written for; no double-count bug.
  • Favicon race in InWorkspaceAppViewer — the destroyed flag plus the next !== icon re-check make the last load win and onDestroy restores the default; no stale-tab-icon path found.

Test coverage

Backend — reasonable: icon_columns has a unit test for the raster-only data-URL rule, and app_drafts_keep_a_removed_icon pins the absent-vs-null draft semantics. The new get_app_icon endpoint has no integration test, but it's a thin read endpoint mirroring get_app, so that's acceptable.

Frontend — the new absent-vs-null logic in draftOrDeployedSettings (appDraftSettings.ts:81) is pure logic in a file that already has a sibling appDraftSettings.test.ts, and the backend added the equivalent test for its copy of the rule; a small test pinning "absent takes the deployed icon, null removes it" would close the asymmetry. appIcon.ts (asAppIcon/sameAppIcon/appIconImageSrc/defaultIconColor) is likewise new pure logic without a test, though it has no sibling test convention yet.

Manual verification still needed — The settings drawer path: pick a Lucide icon and confirm the homepage AppRow badge, the app page header, and the browser-tab favicon all render it, then upload a PNG/JPEG/WebP (and an SVG, which should be rasterized) and confirm the image variant behaves the same, including the tab icon resetting to the Windmill logo on leaving the page. The removal path: clear the icon in the drawer and confirm the deployed app reverts to the kind glyph on the homepage and in the header after deploy. Finally, exercise the MCP/chat deploy_workspace_item on an app that has an icon and confirm whether a draft that omits the icon key preserves or clears it — that path is the one this review flags as divergent.

Guilhem-lm and others added 2 commits December 1, 2026 03:54
…con key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 31s —— View job


cc @Guilhem-lm

Mergeable, but should ideally address nits: the new deployed_icon_field landed between deploy_app and its doc comment in ai_session_tools/deploy.rs

Review (follow-up to my earlier pass, covering fd26e48 and aa0e4b3)

  • Read the new commits since the last review
  • Checked the AI-session raw-app deploy fix against the Codex P1 and Pi P2 findings
  • Checked the frontend test and the icon picker layout change

Absent vs null icon in deploy_app: fixed. On an update, deployed_icon_field now returns draft.get("icon").cloned(), and put (mod.rs:621) skips None:

  • A draft saved before icons has no icon key, so the update sends no icon field and the endpoint keeps the deployed icon.
  • An explicit null is sent as null, so the icon is removed.
  • A create still drops null through non_null.

This now behaves like sides_of_row (deploy.rs:1355), app_source_to_draft_value and the frontend's draftOrDeployedSettings. The new Rust unit test and the new appDraftSettings.test.ts case both check the rule.

The AppIconSetting.svelte change only drops a fixed width so the color picker sits next to the icon picker. Nothing to flag there.

Findings

P2: deploy_app's doc comment now documents the wrong function (backend/windmill-api/src/ai_session_tools/deploy.rs:355-360)

The new function was inserted between deploy_app's /// lines and deploy_app itself. Rustdoc joins the two comments, so deployed_icon_field ends up documented as "Deploys a raw app draft from its sources … Returns the note for the result. The icon a raw-app deploy sends…", and deploy_app has no doc comment at all. The fix is to move deployed_icon_field and its own three comment lines above the /// Deploys a raw app draft… block. Fix this →

I found nothing else new. My earlier assessment of the rest of the PR still applies.

AGENTS.md compliance

  • The AGENTS.md rule "deploy_workspace_item and diff … a behaviour change must be mirrored" is now satisfied for the icon in both deploy and diff.
  • The new comment explains a constraint (why absent must not become null) rather than narrating the change.

Test coverage

Backend: a_raw_app_update_removes_the_icon_only_on_an_explicit_null is a fitting regression test for the fix. There is still no integration test of update_app keeping the stored icon when icon is absent and clearing it on null. Not blocking.

Frontend: The new draftOrDeployedSettings case covers the asymmetry raised in the earlier reviews. appIcon.ts is still untested pure logic. Optional.

Manual checks before merge:

  • AI session deploy of an old draft: in the AI session, take a raw-app draft saved without an icon key for an app that has a deployed icon, and deploy it with deploy_workspace_item. The homepage row should still show the icon. Then set the draft's icon to null and deploy again: the kind glyph should come back.
  • The other scenarios from my previous comment: these are the Lucide and image icons in both editors, the tab icon reset, the CLI pull/push round trip and fork compare. They still need to be checked once the E2E run finishes.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

The previous MCP deployment finding is addressed: an omitted icon stays omitted, while explicit null removes it. A focused regression test covers that distinction. I found no further reportable issues at aa0e4b3.

Test coverage

The diff adds backend unit coverage for raster data URLs, draft icon preservation, and omitted-versus-null deployment fields. Frontend tests cover settings inheritance and explicit removal. API integration tests, image conversion tests, and CLI icon round-trip tests are absent. Component tests are not expected; documentation changes need no automated tests.

I ran 11 read-only assertions against the frontend logic covering draft inheritance/removal, codec round trips, metadata separation, and image URL selection; all passed. git diff --check also passed. I did not run repository test suites or live-instance verification.

Manual verification remains for Lucide selection and color-picker layout, image upload, save/reload, deployment, homepage/header display, and favicon restoration. Verify that unauthorized image reads fail and authorized responses carry the intended content type and cache headers.

Confirm that CLI pull/push preserves an unchanged icon and clears one removed from YAML. Exercise MCP deployment with both an omitted icon and explicit null.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Pi Review

Good to merge

The single finding from my previous pass — deploy_app collapsing "absent" and "null" so that an AI-session raw-app deploy cleared a deployed icon whenever the draft omitted the icon key — is fixed correctly in this head. deployed_icon_field (backend/windmill-api/src/ai_session_tools/deploy.rs:361) now sends draft.get("icon") on update (absent → None → put leaves the key out, so the endpoint's double_option keeps the stored icon; null → Some(Null) → removes), and non_null(...) on create. The comment now matches the code, and the regression is pinned by a_raw_app_update_removes_the_icon_only_on_an_explicit_null.

Considered and dismissed

  • Draft-only rows show no icon on the homepage/runnables list — list_apps hardcodes icon: None for the draft-only branch and draft_branch_sql selects NULL::jsonb as icon. This is consistent with how labels are already handled for draft-only rows (also None/NULL), so an unpicked icon on a never-deployed app is the same minimal-row behavior that predates this PR, not a regression.
  • sameAppIcon comparing src vs hash (appIcon.ts) — returns false if one side carries src and the other hash. Its only call site (RawAppEditorView.svelte) compares two draft-side values that come from the same source shape, so the mismatch never occurs in practice.
  • appIconImageSrc doesn't URL-encode path — app paths are constrained to alphanumerics/_/-// by check_proper_path, so a raw path cannot break the URL.
  • Color/name interpolation into the favicon SVG (lucideByName.ts) — icon_columns validates #rrggbb and [a-z0-9-]{1,64} at every write path (create, update, both raw paths), and fork-copy copies already-validated columns, so the values are never caller-controlled at render time; the Lucide name also cannot traverse the import.meta.glob key.
  • No magic-byte validation of image bytes — the content type is validated but not the decoded bytes; with nosniff and a declared image content type, a mismatch yields a broken image, not executable content.
  • SVG uploads in the picker (accept="…image/svg+xml") — appIconFromFile rasterizes through a canvas before storing, so the backend's decode_image (which refuses SVG) is never fed an SVG from the UI; the raw-API path is rejected server-side.
  • Favicon race in InWorkspaceAppViewer — the next !== icon identity re-check plus the destroyed flag make the last load win and onDestroy restore the default.
  • sqlb.set_str("icon", icon.to_string()) with JSON content — the Lucide JSON contains only double quotes and validated name/color (no single quotes), the image hash is hex, and icon_image is a base64 data URL, so no quote can escape the established set_str pattern.
  • Diff false-positive for image icons — the diff tool reads the deployed row through the full get_app (get_draft=true), so both deployed_icon and draft_icon carry src, and as_app_icon normalizes them to comparable shapes.
  • app_version.value icon leakage — the low-code deploy passes value: withoutDraftBase($app) (which strips icon via classicAppDraftParts), so the mirrored editor icon never lands in the deployed value.

Test coverage

  • Backend — stores_only_raster_data_urls (app_icon.rs), app_drafts_keep_a_removed_icon (workspace.rs), and a_raw_app_update_removes_the_icon_only_on_an_explicit_null (deploy.rs) cover the validation and the absent-vs-null semantics that are the risky parts of this change. The #rrggbb and Lucide-name rejection branches in icon_columns remain untested, but they are trivial byte-range checks; no integration test for the icon endpoint exists, which is consistent with how sibling get_app read paths are covered.
  • Frontend — appDraftSettings.test.ts gains a draftOrDeployedSettings case for the icon inherit/remove logic; component behavior is untested per repo convention and not expected here.
  • CLI — no regression tests for the iconUpToDate/iconForUpdate round-trips; the CLI has no established test harness for these paths, so this is noted rather than required.

Manual verification still needed before merge: pick a Lucide icon and separately upload an image for a low-code app, save and reload the editor, then deploy and confirm the homepage AppRow shows the badge and the app page header and browser tab pick it up (and that the default favicon returns after navigating away). Repeat the same flow in a raw-app editor, including an explicit "None" to confirm the deployed icon is removed, and confirm a raw-app draft saved before this feature keeps the deployed icon when deployed through the AI session. Finally, exercise wmill pull → push on an app with an image icon to confirm an unchanged icon is not re-pushed and removing icon from the yaml clears it on the next push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 17s —— View job


Good to merge

Review (follow-up covering c41b8df)

  • Read the one commit added since my last pass (c41b8df)
  • Checked it against my earlier P2 finding

The P2 doc-comment finding is fixed. deployed_icon_field and its own three-line doc now sit above the /// Deploys a raw app draft from its sources… block, so that comment is back on deploy_app (backend/windmill-api/src/ai_session_tools/deploy.rs:355-368). The commit moves two comment lines and changes no code.

The Codex P1 / Pi P2 absent-vs-null fix in fd26e48 is still correct, as both bots also confirmed in their latest passes. I found no new issues, and my earlier assessment of the rest of the PR still stands.

AGENTS.md compliance

Nothing new. The moved comment explains a constraint, not the edit history.

Test coverage

Backend: no change since my last pass. stores_only_raster_data_urls, app_drafts_keep_a_removed_icon and a_raw_app_update_removes_the_icon_only_on_an_explicit_null cover the risky logic. One gap remains: no integration test checks that update_app keeps the icon when icon is absent and clears it on null. That is not blocking.

Frontend: the draftOrDeployedSettings case in appDraftSettings.test.ts covers the inherit/remove rule. appIcon.ts is still untested pure logic; a test there is optional.

Manual checks before merge: the PR's E2E list covers most scenarios. Two paths remain unexercised.

The first is the API edge cases, which the PR lists as skipped. Call update_raw_source / update directly with an SVG data URL, an image over 512 KB, a bad Lucide name and a bad color; each should return 400. Then send an update with no icon field, which should keep the stored icon, and one with icon: null, which should clear it.

The second is the MCP deploy_workspace_item path, which needs the mcp feature and an AI key. Take a raw-app draft that has no icon key, for an app that has a deployed icon, and deploy it. The homepage row should still show the icon. Then set the draft's icon to null and deploy again: the kind glyph should come back.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

Reviewed the changes since aa0e4b3. The only change restores deploy_app’s doc comment to the correct function. The omitted-versus-null icon fix and its regression test remain intact. No new reportable issues found.

Test coverage

The PR adds backend unit coverage for image validation and icon inheritance/removal, plus frontend coverage for draft settings. Handler/DB integration tests and image utility tests remain absent. Svelte component tests are not expected. The comment-only follow-up needs no additional tests.

git diff --check passed. I did not rerun repository tests or live-instance verification.

The latest commit introduces no runtime behavior to exercise. Remaining checks documented in the PR are API edge cases and the actual MCP surface.

Through the app API, submit SVG, oversized image, invalid Lucide name, and invalid color inputs; each should return 400. Updating without icon should preserve the stored icon, while icon: null should clear it.

Through MCP, deploy an older raw-app draft without an icon key and confirm its deployed icon remains visible. Deploy an explicit icon: null and confirm the default app glyph returns.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Pi Review

cc @Guilhem-lm

Mergeable, but should ideally address nits: raw-app diff treats an absent icon key as a removal.

P2 — Raw-app diff shows "icon removed" for a draft that omits icon, contradicting the "absent keeps the deployed icon" contract

backend/windmill-api/src/ai_session_tools/deploy.rs:1340-1341 (via canonical_raw_app at :1183-1184), mirrored in frontend/src/lib/utils_draft_deploy.ts:361-362 (via canonicalRawAppDiffValue, frontend/src/lib/components/raw_apps/utils.ts:121).

For the raw-app arm of sides_of_row, both sides are canonicalized through app_source_to_draft_value(source, None) (Rust) / appSourceToDraftValue(source) with no fallback (TS). That function inserts icon: Null whenever the source has no icon key. So a raw-app draft that simply omits icon — a draft saved before this feature, or one a model writes while touching only files/runnables — diffs as icon: <deployed> → null, i.e. "icon removed", even though the deploy path keeps the icon (absent → deployed_icon_field returns None → put skips → EditApp.icon's double_option keeps the stored value).

The low-code diff already handles this correctly in both copies — deploy.rs:1352-1357 (None => deployed_icon.clone()) and draftOrDeployedSettings (parts.icon !== undefined ? … : deployed.icon) — and the low-code comment ("an icon-only draft reads as equal to the deployed app") states exactly the semantics the raw-app arm violates. The fix is to pass the deployed row as the fallback for the draft side (e.g. canonical_raw_app(draft, …) with the deployed row as fallback, or inherit the deployed icon when the draft's icon key is absent), so the diff matches what deploy_workspace_item will actually do.

Considered and dismissed

  • Auth/authorization on the new GET /w/{ws}/apps/icon/{path} — check_scopes(…, "apps:read:{path}") plus the user_db connection and a workspace_id = $2 filter mirror get_app; write paths (update_app, update_app_raw_source) already gate on apps:write:{path} before reaching icon_columns.
  • SQL injection via sqlb.set_str("icon", …) / set_str("icon_image", …) — the Lucide JSON contains only validated [a-z0-9-]{1,64} name and #rrggbb color, the image hash is hex, and icon_image is a base64 data URL; no single quote can reach the set_str literal.
  • SVG / script XSS through the icon endpoint — SVG data URLs are rejected at every write (decode_image whitelists only PNG/JPEG/WebP), the response declares nosniff with an image content type, and the cache header is private; nothing is served as an executable type.
  • Color/name interpolation into the favicon SVG (lucideIconSvg) — icon_columns validates #rrggbb and the Lucide name at every write path, and fork-copy copies already-validated columns, so the values are never caller-controlled at render time.
  • appIconImageSrc doesn't URL-encode path — app paths are constrained by check_proper_path to alphanumerics/_/-//, so a raw path can't break the URL.
  • No magic-byte validation of image bytes — with nosniff and an image content type, a content/bytes mismatch yields a broken image, not executable content.
  • RunnableItem.icon column consistency — all four branch_sqls branches plus draft_branch_sql project icon at the same position (NULL::jsonb for non-app kinds, o.icon for apps), so the query_as FromRow never misses the column.
  • Favicon race in InWorkspaceAppViewer — the destroyed flag and the next !== icon re-check make the last load win and onDestroy restore the default.

Test coverage

Backend — stores_only_raster_data_urls, app_drafts_keep_a_removed_icon, and a_raw_app_update_removes_the_icon_only_on_an_explicit_null cover validation and the deploy-side absent-vs-null semantics. Missing is a regression for the raw-app diff path: sides_of_row/canonical_raw_app on a draft without an icon key against a deployed icon should compare equal, not as a removal. There is no integration test for the icon endpoint, consistent with how sibling get_app read paths are covered.

Frontend — appDraftSettings.test.ts pins the low-code draftOrDeployedSettings inherit/remove rule, but the raw-app canonicalRawAppDiffValue has no sibling test for the absent-key case; that's the pure-logic utility where a case would fit.

CLI / migrations / docs — no automated tests expected for these layers; the migration's .sqlx cache and the generated OpenAPI are checked by CI's offline build.

Manual verification still needed — beyond the PR's own E2E list (which is thorough), exercise the raw-app diff on a draft that omits icon: take an app with a deployed icon, write a raw-app draft through the AI session (or write_app_file) containing only files/runnables/data with no icon key, and confirm the diff does not report the icon as removed; then deploy it and confirm the homepage row still shows the icon. The PR's test-plan item 7 (API edge cases: SVG / oversize / bad name / bad color → 400, and update-without-icon keeps while icon: null clears) is still marked skipped and worth a direct API pass before merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 25s —— View job


Good to merge

Review (follow-up covering 45614eb)

  • Read the one commit added since my last pass (45614eb)
  • Checked it against Pi's P2 finding (a raw-app draft with no icon key showed up in the diff as "icon removed")
  • Checked that the Rust and TS copies match

Pi's P2 is fixed in both copies of the diff. A raw-app draft with no icon key now takes the deployed icon on its draft side. That matches what a deploy does: deployed_icon_field sends no field, so the stored icon is kept. An explicit null still shows as a removal.

  • Rust: sides_of_row (backend/windmill-api/src/ai_session_tools/deploy.rs:1339-1345) copies deployed_side["icon"] into the draft side only when the row has a draft and that draft has no icon key. Indexing with draft_side["icon"] = … cannot panic, because canonical_raw_app always returns the object built by app_source_to_draft_value.
  • TS: getDraftDiffValues (frontend/src/lib/utils_draft_deploy.ts:358-362) has the same guard (r.draft && r.draft.icon === undefined), so the two copies match, as AGENTS.md requires for diff.
  • No draft: when the row has no draft, both copies leave the draft side alone. It is then built from the row itself, so the icon is already the deployed one.
  • Draft-only row: the TS deployed side is canonicalRawAppDiffValue({}). Its icon is null, and a draft-only row's own icon is null too, so the draft side gets nothing it shouldn't.

The new test a_raw_app_draft_without_an_icon_key_diffs_with_the_deployed_icon covers both cases: with the key absent the two sides compare equal, and with null the draft side shows null.

I found no new issues. My earlier assessment of the rest of the PR still stands.

AGENTS.md compliance

  • The rule "deploy_workspace_item and diff … a behaviour change must be mirrored" holds: the same guard is in both copies.
  • The comment (repeated once in each copy) explains a constraint, not the history of the edit.

Test coverage

Backend: the new unit test is the regression guard Pi asked for in the raw-app diff. As before, no integration test checks that update_app keeps the icon when icon is absent and clears it on null. Not blocking.

Frontend: the TS change sits inside getDraftDiffValues, which is async and fetches data, so it is not a cheap pure-logic test target. The Rust test pins the same rule. Optional.

Manual checks before merge: two paths are still not exercised, as listed in my previous comment.

The first is the API edge cases. Send an SVG data URL, an image over 512 KB, a bad Lucide name and a bad color; each should return 400. An update without icon should keep the stored icon, and one with icon: null should clear it.

The second is the MCP deploy_workspace_item path. It needs the mcp feature and an AI key. Take a raw-app draft with no icon key, for an app that has a deployed icon. The diff tool should now report no icon change, deploying the draft should keep the icon, and an explicit null should remove it.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

Reviewed 45614eba4d since the previous Codex approval at c41b8df0a4. Both diff implementations now inherit the deployed icon when a raw-app draft omits icon, while explicit null still shows a removal. No new reportable issues found.

Test coverage

Backend unit coverage now includes the raw-app diff regression. Handler/DB integration tests remain absent. Frontend settings tests cover inheritance/removal; automated CLI icon round-trip tests remain absent. Documentation/config changes need no automated tests.

I ran eight source-extracted frontend diff scenarios with a mocked API, covering inheritance, removal, replacement, no draft, draft-only rows, and rename/content preservation; all passed. Full and incremental git diff --check passed. I did not run repository suites or live-instance verification.

The PR reports E2E coverage for editors, icon display, CLI round trips, and fork propagation; those checks were not rerun here.

In Review & Deploy, open a raw-app draft without icon for an app with a deployed Lucide or image icon. It should show no icon change while retaining source changes; explicit icon: null should show removal.

Through the actual MCP surface, confirm diff reports no icon change for an omitted key and deployment preserves the icon. Explicit null should remove it.

The PR’s skipped API checks remain: SVG, oversized image, invalid name, and invalid color should return 400; updates without icon should preserve it, and icon: null should clear it.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Pi Review

Good to merge

Follow-up to my previous pass, which flagged the raw-app diff treating an absent icon key as a removal. That finding is fixed correctly in the head commit 45614eb, in both copies of the diff, with a unit test pinning it. My re-pass over the rest of the diff found nothing new to report.

What changed since my last review. sides_of_row's raw-app arm (backend/windmill-api/src/ai_session_tools/deploy.rs:1339-1345) now copies the deployed icon into the draft side only when a draft exists and has no icon key, and the TS mirror getDraftDiffValues (frontend/src/lib/utils_draft_deploy.ts:358-362) does the same with r.draft && r.draft.icon === undefined. Both leave an explicit null alone so it still diffs as a removal — matching what deployed_icon_field / EditApp.icon's double_option actually do on deploy. The new test a_raw_app_draft_without_an_icon_key_diffs_with_the_deployed_icon covers the absent-key and explicit-null cases. The two copies stay in sync, as AGENTS.md requires for diff.

Considered and dismissed

  • Auth on GET /w/{ws}/apps/icon/{path} — get_app_icon mirrors get_app: check_scopes(…, "apps:read:{path}"), a user_db.begin(&authed) connection, and a workspace_id = $2 filter. Every write path (create_app_internal, update_app_internal, both raw routes) gates on apps:write:{path} before icon_columns runs.
  • SVG/script XSS through the icon endpoint — decode_image whitelists only PNG/JPEG/WebP, so SVG data URLs are rejected at write; the response declares nosniff with an image content type and a private cache header, so nothing is ever served as executable content.
  • Color/name interpolation into the favicon SVG (lucideByName.ts) — icon_columns validates #rrggbb and [a-z0-9-]{1,64} on every write (create, update, both raw paths), and clone_apps copies only already-validated columns, so neither value is ever caller-controlled at render time; the Lucide name also cannot traverse the import.meta.glob key.
  • sqlb.set_str("icon", …) with JSON content — the Lucide JSON holds only double quotes plus validated name/color, the image hash is hex, and icon_image is a base64 data URL; no single quote can escape the set_str literal.
  • appIconImageSrc doesn't URL-encode path — app paths are constrained by check_proper_path to alphanumerics/_/-//, so a raw path can't break the URL.
  • No magic-byte validation of decoded image bytes — the content type is validated but not the bytes; with nosniff and an image type, a mismatch yields a broken image, not executable content.
  • SVG accepted in the picker (accept="…image/svg+xml") — appIconFromFile rasterizes through a canvas before storing, so the backend's SVG-rejecting decode_image never sees an SVG from the UI; the raw-API path is rejected server-side.
  • app_version.value icon leakage — the low-code deploy passes value: withoutDraftBase($app), and classicAppDraftParts now strips icon alongside policy/labels, so the mirrored editor icon never lands in the deployed value (the Rust classic_app_parts strips it the same way).
  • Favicon race in InWorkspaceAppViewer — the destroyed flag plus the next !== icon re-check make the last load win, and onDestroy restores the default.
  • Draft-only rows showing no icon on the homepage/runnables list — list_apps hardcodes icon: None for the draft-only branch and draft_branch_sql selects NULL::jsonb, consistent with how labels already behave for those rows; not a regression.
  • CLI iconUpToDate/isSuperset interplay — deepEqual is key-order-insensitive and icon stays in localAppBody, so the separate iconUpToDate check only matters for the removed-from-yaml case it exists for; no double-count or missed-clear bug, and the E2E run exercised pull/push round trips.

Test coverage

Backend — stores_only_raster_data_urls (app_icon.rs), app_drafts_keep_a_removed_icon (workspace.rs), a_raw_app_update_removes_the_icon_only_on_an_explicit_null and a_raw_app_draft_without_an_icon_key_diffs_with_the_deployed_icon (deploy.rs) cover the validation and absent-vs-null semantics that are the risky parts of this change. Still untested: the #rrggbb/Lucide-name rejection branches in icon_columns (trivial byte-range checks), and there is no integration test that update_app keeps the icon when absent and clears it on null — consistent with how sibling get_app read paths are covered, not blocking.

Frontend — appDraftSettings.test.ts gains the draftOrDeployedSettings inherit/remove case. Component behavior is untested per repo convention; appIcon.ts (appIconFromFile, appIconFaviconHref, asAppIcon) remains untested pure logic, optional.

CLI — no automated tests for the icon round trip; the PR's E2E run exercised pull/push, a color change, removal, and the "0 changes" re-push.

Manual verification still outstanding — the two items the PR itself lists as unexercised: (1) the API edge cases (SVG / oversize / bad name / bad color → 400; update without icon keeps it; icon: null clears it), and (2) the MCP deploy_workspace_item surface, which needs the mcp feature and an AI key — deploy a raw-app draft with no icon key and confirm the deployed icon survives, then deploy icon: null and confirm it clears. Everything else (Lucide/image/none in both editors, tab icon, fork copy/compare, AI session HTTP route) was E2E-verified against this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@claude

claude Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 19s —— View job


Good to merge

Review (follow-up covering b540b37)

  • Read the one commit added since my last pass (b540b37)
  • Checked the new import path against the rest of the codebase

b540b37 changes one import. appIcon.ts now imports OpenAPI from $lib/gen/core/OpenAPI instead of the $lib/gen barrel. Public app pages load this module through AppIconBadge and InWorkspaceAppViewer, so this keeps the whole generated client out of their bundle.

  • Other modules already import this path for the same reason: routes/public/[workspace]/[...secret]/+page.svelte, routes/a/[...path]/+page.svelte, FileUpload.svelte and userDraftDbSyncer.svelte.ts. The tests mock this path too.
  • The barrel re-exports the same module, so OpenAPI.BASE is the same singleton object either way. appIconImageSrc produces the same URL as before.
  • The comment explains a constraint (why the barrel must not be used here), so it fits the AGENTS.md comment rule.

I found no new issues. My earlier assessment of the rest of the PR still stands.

AGENTS.md compliance

Nothing new.

Test coverage

Frontend: the change only moves an import and does not change behaviour, so it needs no test. npm run check and the build will catch a wrong path.

Manual checks before merge: the two paths from my previous comment are still not exercised.

The first is the API edge cases. Send an SVG data URL, an image over 512 KB, a bad Lucide name and a bad color: each should return 400. An update with no icon field should keep the stored icon, and one with icon: null should clear it.

The second is MCP deploy_workspace_item and diff with a raw-app draft that has no icon key. diff should report no icon change, and deploying should keep the icon. With an explicit null, deploying should remove it.

To check this commit, open an app's public page (/public/<workspace>/<secret>) in a fresh browser session. It should render without errors, and the Network tab should show no request for the generated client's services chunk.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

Reviewed b540b37b3b since the previous Codex approval at 45614eba4d, using the target commit rather than the synthetic merge checkout. The direct OpenAPI import matches existing public routes and the bundle configuration’s separate config chunk. No new reportable issues found.

Test coverage

Backend unit tests cover image validation, draft preservation, and omitted-versus-null deploy/diff behavior; handler/DB integration tests remain absent. Frontend settings tests cover inheritance/removal; image utilities lack dedicated coverage. Automated CLI icon round-trip tests remain absent. This import-only follow-up needs no new logic tests; documentation/config changes need none.

Full and incremental git diff --check passed. I did not run repository suites, a build, or live-instance verification; generated client files and frontend dependencies are absent here. The PR reports a successful Cloudflare-mode build and E2E coverage for editors, display, CLI round trips, and forks.

A public-app page smoke test after this import change remains unverified here: it should render without console errors or loading the generated services chunk.

The PR’s skipped API and actual MCP checks remain: invalid icon payloads should reject, omitted icons should persist through updates and deployment, and explicit null should remove them.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Pi Review

Good to merge

This PR has already been through several review rounds (Codex P1 and Pi P2 findings on absent-vs-null icon semantics, the raw-app diff, the doc-comment placement, and the $lib/gen barrel import all landed fixes with regression tests). My independent pass over the full diff found no new blocking issues or nits worth surfacing.

Considered and dismissed

  • Auth on the new GET /w/{ws}/apps/icon/{path} (backend/windmill-api/src/app_icon.rs:94) — check_scopes(…, "apps:read:{path}") plus user_db.begin(&authed) and a workspace_id = $2 filter mirror get_app exactly; every write path (create_app_internal, update_app_internal, both raw routes) gates on apps:write:{path} before icon_columns runs. No new auth gap.
  • sqlb.set_str("icon", icon.to_string()) with JSON content — the Lucide JSON holds only a validated [a-z0-9-]{1,64} name and a #rrggbb color; the image descriptor hash is hex, and icon_image is a base64 data URL with a fixed, validated content-type prefix. No single quote can reach the set_str literal.
  • SVG/script XSS via the icon endpoint — decode_image whitelists only PNG/JPEG/WebP, so SVG data URLs are rejected at write; the response declares nosniff with an image content type and a private cache header. Nothing is served as executable content. The picker's accept="…image/svg+xml" is safe because appIconFromFile rasterizes through a canvas before storing, and SVG loaded as an <img> runs no scripts.
  • Color/name interpolation into the favicon SVG (lucideByName.ts) — icon_columns validates both on every write path, and clone_apps copies already-validated columns, so neither is caller-controlled at render time; the Lucide name also cannot traverse the import.meta.glob key.
  • appIconImageSrc doesn't URL-encode path — app paths are constrained by check_proper_path to alphanumerics/_/-//, so a raw path can't break the URL.
  • sameAppIcon comparing src vs hash with && — its only call site (RawAppEditorView.svelte) compares two draft-side values from the same source shape; at worst a spurious autosave write, not a correctness bug.
  • defaultIconColor hash — Math.abs(-2147483648) is 2147483648 (positive) in JS doubles, so the modulo index is never negative.
  • sameAppIcon/app_source_to_draft_value image src vs hash shape mismatch in the diff path — the diff tool reads the deployed row through the full get_app (get_draft=true), so both sides carry src and as_app_icon normalizes them to comparable shapes.
  • Raw-app deploy absent-vs-null (rawAppDeploy.ts) — the update branch sends value.icon ?? null where value = appSourceToDraftValue(draft ?? app, app) has already inherited the deployed icon for an absent key, and the create branch's ?? undefined correctly omits icon for a fresh draft-only app.
  • #[sqlx(default)] on the new icon columns — needed and correct for the two queries that don't select icon (get_public_app_by_secret, and the ListableApp draft-only struct literal); the public read intentionally returns no icon, matching the "public app page does not show the icon" note.
  • Favicon race in InWorkspaceAppViewer — the destroyed flag plus the next !== icon re-check make the last load win and onDestroy restore the default; no stale-tab-icon path.
  • .sqlx cache entries for the fork copy query — the committed JSON files (including the manually-composed clone_apps entry) match the current queries and types (icon Jsonb, icon_image Text, both nullable).

Test coverage

Backend — stores_only_raster_data_urls (app_icon.rs), app_drafts_keep_a_removed_icon (workspace.rs), a_raw_app_update_removes_the_icon_only_on_an_explicit_null, and a_raw_app_draft_without_an_icon_key_diffs_with_the_deployed_icon (both deploy.rs) cover the validation and the absent-vs-null semantics that are the risky parts. The #rrggbb and Lucide-name rejection branches remain untested, but they are trivial byte-range checks; there is no integration test for the icon endpoint, consistent with how sibling get_app read paths are covered.

Frontend — appDraftSettings.test.ts gains a draftOrDeployedSettings case pinning the icon inherit/remove rule. appIcon.ts remains untested pure logic, but its callers are thin and the risky semantics are pinned on the Rust side. Component tests are not expected per repo convention.

CLI / docs / config — the CLI icon round-trip has no automated test, but the E2E list covers pull/push, color-change, remove-from-yaml, and a second-push-reports-0-changes; docs/feature-telemetry.md and ee-repo-ref.txt are doc/config changes needing no tests.

Manual verification still needed

The two paths the PR itself lists as unexercised: the API edge cases (SVG, oversize image, bad name, bad color → 400; update without icon keeps it; icon: null clears it) and the MCP deploy_workspace_item/diff surface with a raw-app draft that has no icon key (diff should show no icon change and deploy should keep the icon; explicit null should remove it). The MCP path needs the mcp feature and an AI key; its logic is the same normalize_app_draft/deployed_icon_field covered by the new unit tests, but the live surface was not exercised.

Guilhem-lm and others added 2 commits December 4, 2026 07:16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 1m 2s —— View job


Good to merge

Review (follow-up covering 3dfb68d and 0fb91c3)

  • Read the diff since my last pass at b540b37 (41 files, +744/−130)
  • Checked the backend change in 0fb91c3
  • Checked the new ItemIcon, the crop dialog, and the icon in Recent, favorites, search and chat

0fb91c3 is OpenAPI only. It adds icon to the request bodies of the two raw-source endpoints. The create endpoint takes a plain AppIcon. The update endpoint takes a nullable AppIcon, described as "absent keeps, null removes". This matches the CreateApp/EditApp deserialization the multipart routes already use. No Rust changed.

3dfb68d shows app icons wherever an item is listed. I checked these spots and found no problems:

  • ItemIcon (common/table/ItemIcon.svelte) reads the icon only for the app/raw_app kinds. Every other kind keeps the plain RowIcon it had before. An image that has only a hash is skipped when no workspace is passed, so there is never an icon URL without a workspace. The kind glyph is still the fallback when the image fails to load.
  • Image data stays out of browser storage. storedAppIcon reduces an image to {kind, hash} and drops an image with no hash (one never deployed). It is used by Recent (record and prune), by favoriteManager.star and by the favorites cache in +layout.svelte. The app viewer records the icon from the lite read, which carries hash, so Recent gets a usable image icon. With 'icon' in item, editors that pass no icon keep the stored icon.
  • recentItems.prune updates icons only for entries under asOfCheck. That is the same race guard the drop logic uses, so an item opened during the check keeps the icon it was just given. Raw apps match because itemKey folds raw_app into app, and listRunnables returns type: 'app' for both.
  • Crop dialog (AppIconCropModal.svelte): the object URL is revoked both on cancel and after apply (closeCrop), and also when loadIconSource fails. clampAxis keeps the image covering the square on an axis where it is larger, and inside the square where it is smaller. minZoom stops at the whole image, and the transparent margins survive in WebP. On the JPEG fallback they are filled white, as before. The output still goes through the server-side PNG/JPEG/WebP and 512 KB checks.
  • Rounded image favicon (roundedFaviconHref): it draws the endpoint image onto a canvas. The image comes from the same origin as OpenAPI.BASE, so the canvas is not tainted. If toDataURL throws anyway, the .catch returns undefined, so the tab keeps its default icon instead of breaking.
  • Chat context and Hub: WorkspaceAppElement.icon and WorkspaceItemEntry.icon come from list reads, so an image there is only a hash and no image data reaches the context payload.

I found no new issues. My earlier assessment of the rest of the PR still stands.

PR description is out of date (not a code finding): two items under Notes and "Decisions made" are now wrong. The description says Recent tiles were not done, but HomeQuickAccess now draws the icons. It also says the Compare page row still shows the kind glyph, but CompareWorkspaces.svelte was changed in this commit. It's worth updating both so reviewers aren't misled.

AGENTS.md compliance

Nothing new to flag. The new comments explain constraints: why images are stored without their data, the half-pixel glyph size, and the race guard on the icon refresh.

Test coverage

Backend: only openapi.yaml changed, so no test is needed.

Frontend: storedAppIcon and the icon refresh in recentItems.prune are new pure logic. recentItems has no sibling test today, so a test is optional. A small case would be cheap: an image with src+hash becomes hash-only, an image without a hash becomes undefined, and a recorded item with no icon key keeps the stored icon. The crop math sits inside a component, so no test is expected.

Manual checks before merge: the two gaps from my earlier comments remain. One is the API edge cases (SVG, oversize, bad name or color → 400; update without icon keeps it, icon: null clears it). The other is the live MCP deploy_workspace_item/diff path with a raw-app draft that has no icon key.

This commit adds four surfaces to check:

  • Crop dialog: upload a wide logo, zoom all the way out and apply. The badge should show the whole logo with transparent margins. Then upload a tall photo, drag it, and check that the 48px and 18px previews match the saved icon.
  • Icons across the app: open an app with an image icon, then go back to Home. Its Recent tile should show the image, served from /apps/icon/...?v=<hash>. After starring it, the favorites sidebar, the global search, the @ mention picker in the chat and the Compare page row should all show the same icon.
  • Changed icon: change the app's icon from another browser and reload Home. The Recent tile should pick up the new icon after the background check.
  • Tab icon: the browser tab of an app with an image icon should show the image with rounded corners.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

Reviewed 3dfb68d and 0fb91c3 since the previous approval at b540b37, using the explicit target commit. No new reportable issues found.

Test coverage

Committed backend unit tests cover image validation and icon inheritance/removal; API integration coverage remains absent. Frontend settings tests cover inheritance/removal, but the new crop/image utilities and recent-item icon refresh have no dedicated regression tests. Svelte component tests are not expected. Automated CLI icon round-trip coverage remains absent; documentation/config changes need no tests.

Full and incremental git diff --check passed. The crop component compiled without warnings using the locked Svelte version. I also ran 107 source-extracted checks with mocked dependencies covering icon storage, refresh races, and crop bounds; all passed.

Repository suites and live-instance verification were not run: frontend dependencies/generated client and running services are absent.

Exercise image cropping with wide and tall uploads, dragging, wheel/slider zoom, cancellation, and deployment. Confirm the saved crop and rounded favicon match the previews.

Verify Lucide/image icons across the newly changed pickers, search, favorites, recent items, chat, and deployment lists, including icon replacement and removal.

The PR’s skipped API validation and actual MCP omission/removal scenarios remain unverified here.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Pi Review

Good to merge

The two commits added since the last reviewed head (3dfb68d02e "draw app icons wherever workspace items are listed" and 0fb91c3174 "list icon on the raw-source app endpoints") are a frontend plumbing pass plus an OpenAPI doc fix. I found no new blocking issues or nits. The absent-vs-null semantics, the raw-app diff fallback, the doc-comment placement, and the $lib/gen barrel import that earlier rounds flagged are all still correctly fixed in this head.

The earlier findings I would otherwise re-raise are already resolved and pinned by tests, so I did not re-flag them. My independent pass over the new surface (the ItemIcon component and its ~25 call sites, storedAppIcon/localStorage persistence, the crop modal, roundedFaviconHref, the recentItems.prune icon refresh, and the OpenAPI additions) turned up nothing reportable.

Considered and dismissed

  • Crop math in AppIconCropModal / appIconFromImage (appIcon.ts:114-132) — the 5-arg drawImage(img, at.x*512, at.y*512, at.width*512, at.height*512) scales the 240px preview placement proportionally onto the 512px canvas. I re-derived it with a wide-image example (1000×500 → cover 0.48, placed.width 480/height 240 at zoom 1): the destination rect preserves the source aspect ratio (1024×512 for that image), so there is no distortion, and negative/overflowing destinations are clipped by the canvas as intended. The minZoom/cover/clampAxis/zoomTo relationships are all internally consistent; source.width/height are floored at ICON_SIDE, so no division by zero.
  • Object-URL lifecycle (loadIconSource / closeCrop) — the URL is revoked on cancel, on apply (synchronously after appIconFromImage has drawn from the already-loaded image), and in the catch path. A URL leaked on a hard unmount while the modal is open is a negligible browser resource, not a defect.
  • roundedFaviconHref introducing an async favicon race — showIconInTab already guards with the destroyed flag plus next !== icon after the await, so a late-resolving favicon for a superseded icon is dropped and onDestroy restores the default. ctx.roundRect unavailability throws inside the promise, caught by the .catch(() => undefined) in appIconFaviconHref, so an older browser just gets no custom favicon.
  • storedAppIcon dropping a hash-less image icon from localStorage — a draft-only app's image icon has no hash and is intentionally left out (doc comment states this), and draft-only apps never reach favorites/recents (record runs on the app's page, favorites require a deployed row), so the omission is unreachable in practice.
  • recentItems.prune icon refresh (recentItems.svelte.ts:200-231) — the asOfCheck gate and the sameAppIcon(hash, hash) comparison are correct; the icons map correctly holds key → undefined for an app whose icon was removed, so a previously-stored icon is cleared. live.items icons come from the RunnableItem.icon column (runnables.rs selects o.icon for apps), which is the hash-only descriptor, matching what record stores.
  • sameAppIcon in itemsEqual (workspaceItemsLoader.svelte.ts) — both sides come from the same loadKind path (asAppIcon over the list's hash-only descriptor), so the src-vs-hash shape mismatch the earlier reviews dismissed cannot occur here either.
  • LinkRenderer / data-wm-workspace registry lookup — workspaceItemRegistry.resolve returns undefined when the workspace isn't loaded yet, and ItemIcon falls back to the kind glyph, so the pill degrades gracefully rather than mis-rendering.
  • ItemIcon image icons without workspace or path — the $derived returns undefined for an image with no src and no workspace, and every new call site that passes a hash-only icon (Row, WorkspaceDiffDrawer, DeployToHub, HomeQuickAccess, workspaceItems) also passes the workspace/path, so the endpoint URL is always buildable; any residual failure lands in onerror → kind glyph.
  • Modal2 bind:isOpen={() => true, (open) => !open && onCancel()} in AppIconCropModal — matches the existing repo pattern (e.g. DbColumnFormatEditor); Escape and outside-click route to closeCrop, and a double revokeObjectURL on an already-revoked URL is a no-op.
  • onwheel preventDefault on the crop surface — the listener is on a plain div (not window/document/body), so it is not forced passive and preventDefault works.
  • WorkspaceDeployLayout workspaceId={iconWorkspace ?? ''} — every caller in this diff (DeployWorkspace, CompareDrafts, DeployToHub) supplies iconWorkspace; an empty value only ever degrades to the kind glyph.
  • 0fb91c3174 OpenAPI additions — icon on the raw-source create/update request bodies mirrors the backend, where raw and low-code routes share the same CreateApp/EditApp structs and the double_option on EditApp.icon is exactly what the "Absent keeps the icon; null removes it." description states. The AppIcon schema and the Runnable.icon field were already present in the earlier commits.
  • glyphSize/badge-sizing changes (AppIconBadge.svelte, PageHeaderBar.svelte) — cosmetic sizing only; no layout overflow or behavior change beyond the intended visual tweak.

Test coverage

Backend — the last two commits add no Rust logic (only openapi.yaml documentation), so nothing new needs backend coverage; the existing app_icon::tests (stores_only_raster_data_urls) and the deploy.rs/workspace.rs tests from earlier commits continue to pin validation and the absent-vs-null semantics.

Frontend — the new pure logic in appIcon.ts (storedAppIcon, loadIconSource, appIconFromImage, roundedFaviconHref) has no sibling *.test.ts; this file was already untested before this PR, so I do not treat it as a gap introduced here. appDraftSettings.test.ts already carries the icon inherit/remove case from the earlier rounds. The ItemIcon component and AppIconCropModal are Svelte components, which the repo convention does not unit-test.

Docs/config-only (openapi.yaml) — no automated tests expected.

Manual verification still needed before merge: the two paths the PR itself lists as unexercised remain open. First, the API edge cases — send an SVG data URL, an image over 512 KB, a bad Lucide name and a bad color through the raw-source and low-code update endpoints and confirm each returns 400; then confirm an update with no icon field keeps the stored icon and icon: null clears it. Second, the real MCP deploy_workspace_item/diff surface (needs the mcp feature and an AI key): a raw-app draft without an icon key should show no icon change and preserve the deployed icon on deploy, while an explicit null should remove it. The new crop-modal interaction (drag/zoom/apply on a wide image, then confirm the stored 512 px WebP and its endpoint serving) also has no automated substitute and should be exercised once on the running instance.

@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/claude

@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

Guilhem-lm and others added 2 commits December 4, 2026 07:35
@Guilhem-lm

Copy link
Copy Markdown
Contributor Author

/review

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @Guilhem-lm's task in 1m 1s —— View job


Good to merge

Review (follow-up covering 2afaf80 and the merge of origin/main in 6326abd)

  • Read 2afaf80
  • Checked the merge against the files both this PR and main changed: ee-repo-ref.txt, feature-telemetry.md, apps.rs, workspaces.rs, RawAppEditor.svelte and sessionRuntime.svelte.ts
  • Checked CI on the merged head

2afaf80 only changes types. In HomeQuickAccess.svelte:254-257, the appIcons map now returns [] early for kinds other than app/raw_app, before it calls asAppIcon(x.icon). Before, it called asAppIcon(false), which returned nothing anyway, so the map holds the same entries. The early return narrows x.kind so that itemKey(x.kind, …) and x.icon type-check.

The merge kept all of the PR's changes. Compared with main (c0c3497), the PR's changes are all still in place:

  • apps.rs: the icon route, the full and lite reads, the icon_columns validation on create and update, and the double_option on EditApp.icon.
  • workspaces.rs: the fork's copy of icon and icon_image, and the source.icon != target.icon check in compare_two_apps.
  • RawAppEditor.svelte and sessionRuntime.svelte.ts: the icon is still passed through.

main added new app reads to apps.rs. They don't select icon, but AppWithLastVersion.icon is #[sqlx(default)], so they return no icon and don't fail. Backend check, check frontend build, Validate OpenAPI Spec and CLI Tests all pass on 6326abd. Backend only integration tests was still running when I checked.

EE ref: main moved ee-repo-ref.txt to 637c53a and this PR sets 4c6ff45. The doc counts (122 actions, 46 features) are still right after the merge. I couldn't confirm from this checkout that 4c6ff45 is based on 637c53a. If it isn't, main's EE changes (for example #12858's role MCP access) would be missing from EE builds. Backend check passing points to it being fine. It's still worth checking that the companion PR windmill-labs/windmill-ee-private#1037 is rebased on the EE commit main points to.

I found no new issues. My earlier assessment of the rest of the PR still holds.

AGENTS.md compliance

Nothing new: 2afaf80 adds no comments, and the merge changes no rules that affect this PR.

Test coverage

Frontend: 2afaf80 only narrows a type and doesn't change behaviour, so it needs no test.

Backend: nothing new since my last pass. The unit tests for validation and for absent vs null icons still apply. There is still no integration test that update_app keeps the icon when icon is absent and clears it on null. Not blocking.

Manual checks before merge:

Home page after the merge: open Home with an app that has a Lucide icon and one with an image icon, both in Recent and in favorites. Their tiles should show the icons, and scripts and flows should keep their kind glyphs.

Earlier gaps: two paths from my earlier comments are still not exercised.

  • API edge cases: an SVG, an image over 512 KB, a bad Lucide name and a bad color should each return 400. An update with no icon field should keep the stored icon, and icon: null should clear it.
  • MCP deploy_workspace_item and diff: use a raw-app draft that has no icon key. diff should report no icon change and deploying should keep the icon. An explicit null should remove it.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Codex Review

Good to merge

Reviewed 2afaf80 and merge 6326abd since the approval at 0fb91c3. The merge-base is exactly the supplied base, c0c3497. The kind guard preserves existing behavior, and the merge retains the icon changes alongside upstream updates. No new reportable issues found.

Test coverage

Backend unit tests cover image validation and icon inheritance/removal; handler/DB integration coverage remains absent. Frontend settings tests cover inheritance/removal; crop/image utilities and recent-item refresh lack dedicated regression tests. Svelte component tests are not expected. Automated CLI icon round-trip coverage remains absent; documentation/config changes need no tests.

Full and incremental git diff --check passed. I ran 109 source-extracted HomeQuickAccess checks covering kind filtering, icon parsing, shared app/raw-app keys, and duplicate precedence; all passed and matched the approved behavior.

Repository suites and live-instance verification were not run: frontend dependencies/generated client and running services are absent.

After the merge, smoke-test Home’s Recent and Favorites with Lucide and image icons on both app kinds. Icons should survive starring/un-starring, while other item kinds retain their usual glyphs.

The actual MCP omission/removal scenario remains unexercised in the PR: an omitted icon should produce no icon diff and preserve the deployed icon; explicit null should show and deploy its removal.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Pi Review

Good to merge

This PR has already been through several review rounds (Codex/Claude/Pi findings on absent-vs-null icon semantics, the raw-app diff fallback, doc-comment placement, and the $lib/gen barrel import all landed fixes with regression tests). My independent pass over the full diff — including the two latest commits (2afaf80 and the origin/main merge) — found no new blocking issues or nits.

Considered and dismissed

  • Auth on the new GET /w/{ws}/apps/icon/{path} (backend/windmill-api/src/app_icon.rs:94) — check_scopes(…, "apps:read:{path}") plus user_db.begin(&authed) (RLS) and a workspace_id = $2 filter mirror get_app; every write path gates on apps:write:{path} before icon_columns runs. No new auth gap.
  • SQL injection via sqlb.set_str("icon", …) / set_str("icon_image", …) — the Lucide JSON holds only a validated [a-z0-9-]{1,64} name and #rrggbb color, the image hash is hex, and icon_image is a base64 data URL whose alphabet contains no single quote; nothing can escape the set_str literal.
  • SVG/script XSS through the icon endpoint — decode_image whitelists only PNG/JPEG/WebP, so SVG is rejected at write; the response declares nosniff with an image content type and a private cache header. The picker's accept="…image/svg+xml" is safe because appIconFromImage rasterizes through a canvas before storing.
  • Color/name interpolation into the favicon SVG (lucideByName.ts) — icon_columns validates both on every write path and clone_apps copies only validated columns; the Lucide name is a key lookup on a compile-time import.meta.glob map, so it cannot traverse to anything.
  • appIconImageSrc doesn't URL-encode path — check_proper_path restricts segments to \p{Alphabetic}\p{Nd}_- with / separators, so a raw path cannot break the URL.
  • defaultIconColor negative-index concern (Math.abs(-2147483648)) — in JS doubles this is 2147483648 (positive), so the modulo index is never negative.
  • Favicon race in InWorkspaceAppViewer — the destroyed flag plus the next !== icon re-check after the await make the last load win and onDestroy restore the default; the .catch(() => undefined) in appIconFaviconHref degrades gracefully on a tainted canvas (cross-origin in dev) or a browser without roundRect.
  • recentItems.prune icon refresh — the asOfCheck gate (x.at < sentAt && (x.movedAt ?? 0) < sentAt) and sameAppIcon(hash, hash) compare correct shapes (both sides are storedAppIcon hash-only descriptors), and a removed icon clears the stored one.
  • sameAppIcon src-vs-hash shape mismatch — its call sites (itemsEqual, prune) compare values from the same list-shape source, so the && conjunction never produces a false mismatch.
  • CLI iconForUpdate clearing a deployed icon when app.yaml lacks an icon key — this is the documented "yaml is the source of truth" contract (a pre-feature yaml should be sync pulled first), and iconUpToDate gates the no-op push so a matching icon is never re-sent.
  • Raw-app deploy re-sending the full image data URL on every update (appSourceToDraftValue inherits the deployed {kind:'image', src} for an absent key) — idempotent (same hash re-derived), at most a ~512 KB payload, not a correctness bug.
  • $derived(initialIcon) + bind:icon in RawAppEditorHeader — mirrors the pre-existing labels pattern exactly and was exercised by the PR's E2E run (raw-app icon-only draft autosaves, survives reload, deploys).
  • get_public_app_by_secret not selecting icon — intentional (the public page shows no icon, per the PR notes); #[sqlx(default)] on the new AppWithLastVersion.icon/ListableApp.icon covers the two queries that omit it.
  • 2afaf80 ("narrow the item kind") — the guard refactor is semantically identical to the prior && short-circuit; no behavior change.
  • No magic-byte validation of decoded image bytes — the content type is validated and the response is nosniff; a bytes/type mismatch yields a broken image, not executable content.

Test coverage

Backend — stores_only_raster_data_urls (app_icon.rs), app_drafts_keep_a_removed_icon (workspace.rs), and a_raw_app_update_removes_the_icon_only_on_an_explicit_null / a_raw_app_draft_without_an_icon_key_diffs_with_the_deployed_icon (deploy.rs) cover the risky validation and absent-vs-null semantics. One gap remains, noted but non-blocking across every prior pass: no integration test that update_app keeps the icon when icon is absent and clears it on null (the EditApp.icon double_option contract).

Frontend — appDraftSettings.test.ts covers the inherit/remove rule. appIcon.ts (pure logic: asAppIcon, storedAppIcon, sameAppIcon, defaultIconColor) has no sibling test, which is optional given the PR's E2E coverage; Svelte component tests are not expected in this codebase.

CLI / OpenAPI / docs / config — no automated tests expected; the PR's E2E run covers sync pull/push round trips, and openapi.yaml/dependency_map.rs/feature-telemetry.md are declarative.

Manual verification

The PR's own E2E checklist covers nearly everything. The two paths called out across every prior review remain the only unexercised surfaces: the raw API edge cases (submit an SVG data URL, a >512 KB image, a bad Lucide name, and a bad color, each expecting 400 with nothing written; then an update without icon keeping the stored icon and icon: null clearing it), and the actual MCP deploy_workspace_item/diff surface (a raw-app draft with no icon key should diff as no change and deploy keeps the icon; an explicit null removes it) — the latter needs the mcp feature and an AI key. These are confirmed by the unit tests but not exercised end-to-end here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant