Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests to validate the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
fix: Bug fix or error correction
Changelog Entry
Description
Fixed an issue where renaming a chat inside a folder didn’t update the UI immediately, even though the database was updated. This now works consistently for chats inside and outside folders.
Added
Added a dispatch('change') call in ChatItem.svelte to notify parent components of title updates.
Changed
Modified the editChatTitle function in ChatItem.svelte to propagate changes to folder components.
Deprecated
None
Removed
None
Fixed
Fixed chat title updates not refreshing inside folders on the UI.
Security
None
Breaking Changes
BREAKING CHANGE: None
Additional Information
This change ensures that renaming a chat triggers a UI refresh for all components, including folders, by dispatching a change event to parent components.
Tested locally with a sample webui.db file, confirming that folder chats now update correctly.
Screenshots or Videos
🔄 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/12689
**Author:** [@asncx](https://github.com/asncx)
**Created:** 4/10/2025
**Status:** ✅ Merged
**Merged:** 4/10/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `fix-folder-chat-rename`
---
### 📝 Commits (1)
- [`87af269`](https://github.com/open-webui/open-webui/commit/87af2692e51b0ea930c337960e12f63a9d613fcd) fix: folder chat rename
### 📊 Changes
**1 file changed** (+2 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/layout/Sidebar/ChatItem.svelte` (+2 -0)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [x] **Testing:** Have you written and run sufficient tests to validate the changes?
- [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **fix**: Bug fix or error correction
# Changelog Entry
### Description
- Fixed an issue where renaming a chat inside a folder didn’t update the UI immediately, even though the database was updated. This now works consistently for chats inside and outside folders.
### Added
- Added a `dispatch('change')` call in `ChatItem.svelte` to notify parent components of title updates.
### Changed
- Modified the `editChatTitle` function in `ChatItem.svelte` to propagate changes to folder components.
### Deprecated
- None
### Removed
- None
### Fixed
- Fixed chat title updates not refreshing inside folders on the UI.
### Security
- None
### Breaking Changes
- **BREAKING CHANGE**: None
---
### Additional Information
- This change ensures that renaming a chat triggers a UI refresh for all components, including folders, by dispatching a `change` event to parent components.
- Tested locally with a sample `webui.db` file, confirming that folder chats now update correctly.
### Screenshots or Videos
---
<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/12689
Author: @asncx
Created: 4/10/2025
Status: ✅ Merged
Merged: 4/10/2025
Merged by: @tjbck
Base:
dev← Head:fix-folder-chat-rename📝 Commits (1)
87af269fix: folder chat rename📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
src/lib/components/layout/Sidebar/ChatItem.svelte(+2 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
dispatch('change')call inChatItem.svelteto notify parent components of title updates.Changed
editChatTitlefunction inChatItem.svelteto propagate changes to folder components.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
changeevent to parent components.webui.dbfile, confirming that folder chats now update correctly.Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.