mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #22859] [CLOSED] fix: prevent URL double-indexing on # trigger after backspace #49940
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22859
Author: @gambletan
Created: 3/19/2026
Status: ❌ Closed
Base:
main← Head:fix/duplicate-url-indexing-22749📝 Commits (1)
a09bee4fix: remove duplicate keydown listener causing URL double-indexing on # trigger📊 Changes
1 file changed (+0 additions, -13 deletions)
View changed files
📝
src/lib/components/chat/MessageInput/Commands/Knowledge.svelte(+0 -13)📄 Description
Summary
Fixes #22749
window.addEventListener('keydown', ...)in theKnowledge.sveltecommand component that duplicated the Enter key handling already provided byCommandSuggestionList's_onKeyDownmethod (called by TipTap's suggestion renderer plugin)#, backspacing to remove it, then typing#again and selecting a URL, theselect()function fired twice — once through TipTap's suggestion plugin key handler and once through the redundant global listener — causing the URL to be indexed twiceTest plan
#in the chat input, then press Backspace to remove it#again and enter/select a URL#knowledge suggestion dropdown@,/, and$trigger suggestions are unaffected🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.