dify - 💡(How to fix) Fix [Bug] Changing AI avatar/icon in backend does not update in embedded iframe chat (v1.14.2, self-hosted)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Deploy Dify v1.14.2 using Docker, self-hosted in a LAN environment, with iframe embedding configured via nginx proxy for same-origin.
  2. In the backend (admin console), change the AI's avatar/icon (e.g., upload a new avatar image or set a new icon).
  3. Confirm the update is visible in the Dify admin/backend page.
  4. Open the chat application in an embedded iframe on your website (or access the iframe page directly in browser).
  5. Observe that the AI avatar in the chat remains the default icon (not updated as in backend).
  6. Clear browser cache, CDN, and local storage. Reload/refresh the iframe page multiple times.
  7. The AI avatar/icon shown in the iframe chat still does not change to the new icon set in backend.

Diagnostic notes:

  • No app/config/avatar/icon fetch requests are observed in browser network tab after change.
  • All access is local network, no CDN or external cache enabled.
  • Only on full page reload, the icon changes (does not update automatically after edit).

✔️ Expected Behavior

After changing the AI's avatar/icon in the Dify backend, the new icon should appear immediately (or on next iframe reload) in the embedded chat. Ideally, it should not require a full iframe page reload to fetch and show the correct new icon; it should update automatically or at least with a soft refresh.

❌ Actual Behavior

AI avatar/icon in embedded iframe chat remains the default, even after modifying the icon in backend. No network request is made to refresh config or icon. Only a hard page reload will update the icon, indicating the app data is cached or not re-fetched.

Technical analysis:

  • The frontend obtains appData (including icon_url) from a local store on initial load.
  • After backend updates, the store is not refreshed, and no refetch is triggered by the iframe. Hence, the iframe continues to use the old avatar.
  • This causes configuration UI and chat UI to be out of sync until a full reload.

Suggested fix: The embedded chat should include a mechanism to re-fetch appData when the backend icon/avatar changes (such as polling, or a manual 'refresh' button).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING