🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/18855
**Author:** [@fsmw](https://github.com/fsmw)
**Created:** 11/1/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix/18131-folder-emoji-reactivity`
---
### 📝 Commits (2)
- [`9c9092f`](https://github.com/open-webui/open-webui/commit/9c9092f2c22d5b55a1663037fdfa38476849a20c) fix(retrieval): preserve Chinese punctuation in uploaded documents
- [`3759fda`](https://github.com/open-webui/open-webui/commit/3759fdab8ce029c1e57491d288f455545480da65) fix: make folder emoji changes reactive in sidebar (#18131)
### 📊 Changes
**3 files changed** (+27 additions, -15 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/retrieval/loaders/main.py` (+1 -2)
📝 `src/lib/components/chat/Placeholder/FolderTitle.svelte` (+13 -3)
📝 `src/lib/components/layout/Sidebar.svelte` (+13 -10)
</details>
### 📄 Description
## Summary
Fix folder emoji changes not updating in sidebar until page refresh.
## Problem
When changing a folder's emoji in the FolderTitle component, the sidebar display doesn't update reactively until the page is refreshed.
## Root Cause
The `updateIconHandler` in `FolderTitle.svelte` was updating the API and local folder object, but not the global `folders` store that the sidebar uses.
## Solution
1. **Update global folders store**: Modified `updateIconHandler` in `FolderTitle.svelte` to update the global `folders` store when emoji changes.
2. **Add reactive statement**: Added a reactive statement in `Sidebar.svelte` to automatically sync the local `folders` object with the global store changes.
## Changes Made
- `src/lib/components/chat/Placeholder/FolderTitle.svelte`: Update global folders store in `updateIconHandler`
- `src/lib/components/layout/Sidebar.svelte`: Add reactive statement to sync local folders with global store
## Testing
The fix ensures emoji changes appear immediately in the sidebar without requiring a page refresh.
Fixes #18131
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18855
Author: @fsmw
Created: 11/1/2025
Status: ❌ Closed
Base:
dev← Head:fix/18131-folder-emoji-reactivity📝 Commits (2)
9c9092ffix(retrieval): preserve Chinese punctuation in uploaded documents3759fdafix: make folder emoji changes reactive in sidebar (#18131)📊 Changes
3 files changed (+27 additions, -15 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+1 -2)📝
src/lib/components/chat/Placeholder/FolderTitle.svelte(+13 -3)📝
src/lib/components/layout/Sidebar.svelte(+13 -10)📄 Description
Summary
Fix folder emoji changes not updating in sidebar until page refresh.
Problem
When changing a folder's emoji in the FolderTitle component, the sidebar display doesn't update reactively until the page is refreshed.
Root Cause
The
updateIconHandlerinFolderTitle.sveltewas updating the API and local folder object, but not the globalfoldersstore that the sidebar uses.Solution
updateIconHandlerinFolderTitle.svelteto update the globalfoldersstore when emoji changes.Sidebar.svelteto automatically sync the localfoldersobject with the global store changes.Changes Made
src/lib/components/chat/Placeholder/FolderTitle.svelte: Update global folders store inupdateIconHandlersrc/lib/components/layout/Sidebar.svelte: Add reactive statement to sync local folders with global storeTesting
The fix ensures emoji changes appear immediately in the sidebar without requiring a page refresh.
Fixes #18131
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.