feat: configurable thinking animation with file upload#823
Open
taoxu0903 wants to merge 1 commit into
Open
Conversation
Add a new display setting that lets users upload a custom GIF or video to replace the default thinking animation shown while the AI is responding. Changes: - config.ts: add thinking_video_url to DisplayConfig interface - MessageList.vue: use custom URL when set (img for GIF, video for mp4/webm), fall back to bundled thinking-light/dark.mp4 based on theme - DisplaySettings.vue: replace URL text input with upload button; uploads file to server and auto-saves the resulting URL - upload.ts (controller): add handleThinkingAnimationUpload — validates ext (gif/mp4/webm/png/jpg/webp), saves to uploadDir with random filename, returns /user-uploads/<name> URL - upload.ts (routes): register POST /api/hermes/upload/thinking-animation - index.ts: serve /user-uploads/* from config.uploadDir (persists across builds) - i18n en/zh: add thinkingVideoUrl, thinkingVideoUrlHint, thinkingVideoUrlUpload, thinkingVideoUrlReplace, thinkingVideoUrlClear keys
werserk
added a commit
to kira-project-lab/hermes-web-ui
that referenced
this pull request
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new display setting that lets users upload a custom GIF or video to replace the default thinking animation shown while the AI is responding.
Changes: