mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #20585] [MERGED] fix: pass chat_id to internal task calls for consistent function context #96727
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/20585
Author: @Classic298
Created: 1/11/2026
Status: ✅ Merged
Merged: 2/12/2026
Merged by: @tjbck
Base:
dev← Head:fix/chat-id-internal-tasks📝 Commits (1)
dcb11f3fix: pass chat_id to internal task calls for consistent function context📊 Changes
2 files changed (+12 additions, -5 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+3 -0)📝
src/lib/apis/index.ts(+9 -5)📄 Description
Ensure chat_id is reliably passed to function pipelines/manifolds during internal task invocations (web search query generation, RAG query generation, image prompt generation).
This allows stateful functions to maintain per-chat state without fragmentation, as they will now receive a consistent chat_id for all chat-scoped invocations including internal tasks.
Backend changes:
Frontend changes:
Fixes #20563
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.