Skip to content

fix: add loop="infinite" to img tags to ensure GIFs play continuously (fixes #1480)#1676

Open
carlosjarenom wants to merge 1 commit into
eigent-ai:mainfrom
carlosjarenom:fix/issue-1480-gif-plays-once
Open

fix: add loop="infinite" to img tags to ensure GIFs play continuously (fixes #1480)#1676
carlosjarenom wants to merge 1 commit into
eigent-ai:mainfrom
carlosjarenom:fix/issue-1480-gif-plays-once

Conversation

@carlosjarenom

Copy link
Copy Markdown

Problem

GIFs generated by eigent agents would only play once and then stop on the last frame, instead of looping continuously.

Reported in issue #1480.

Fix

Added loop="infinite" attribute to all <img> tags in the MarkDown component (src/components/ChatBox/MessageItem/MarkDown.tsx), covering:

  • Images rendered from relative paths (converted to data URLs)
  • Images rendered from absolute URLs
  • Image preview dialog

While HTML <img> tags should loop GIFs by default, this explicit attribute ensures consistent behavior across browsers and Electron.

Files Changed

  • src/components/ChatBox/MessageItem/MarkDown.tsx - Added loop="infinite" to img tags

…fixes eigent-ai#1480)

GIFs generated by eigent agents were only playing once and then
stopping on the last frame. Added loop="infinite" attribute to
all img tags in the MarkDown component to ensure they loop properly.

This affects:
- Images rendered from relative paths (data URLs)
- Images rendered from absolute URLs
- Image preview dialog

While HTML img tags should loop GIFs by default, this explicit
attribute ensures consistent behavior across browsers and Electron.
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