mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #20563] issue: Functions: chat_id is not reliably available in function pipelines/manifolds (metadata.chat_id missing in some internal/task calls) #19225
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?
Originally created by @slashdc on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20563
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.7.2
Ollama Version (if applicable)
No response
Operating System
ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
metadata.chat_id), so the function can receive it as__chat_id__(when present in thepipe()signature).### Task:) that are still tied to a chat should also include the samechat_id, so stateful functions can reliably keep “1 chat = 1 runtime/runlog”.Actual Behavior
chat_idis not reliably available in all invocations.metadata.chat_id, which results in__chat_id__ = Noneinside the function even when the call is effectively associated with an existing chat.Steps to Reproduce
pipe()signature that includes__chat_id__and logs the received values (e.g.__chat_id__,__task__,__message_id__,__session_id__, andbody.get("metadata")if present).__chat_id__is present whenmetadata.chat_idis included).### Task:).metadata.chat_id, causing__chat_id__to be empty/None.Logs & Screenshots
chat_id.__chat_id__is present vs missing for internal/task invocations.Additional Information
__chat_id__is only passed into the function when the parameter exists in thepipe()signature; this is fine. The problem is thatmetadata.chat_idis not consistently present for all invocations that come from a chat context.metadata.chat_idfor any function invocation initiated from a chat context (including internal/task routes/wrapper prompts). If some invocations are truly not chat-scoped, it would help to clearly mark them and avoid invoking chat-bound functions, or provide a stable conversation/session identifier.@owui-terminator[bot] commented on GitHub (Jan 11, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#20414 issue: Chats can't be archived
by Ithanil • Jan 06, 2026 •
bug#20059 issue: Chat response is not working
by navilg • Dec 20, 2025 •
bug#19127 issue: /api/v1/chats/ keeps getting called
by HelifeWasTaken • Nov 11, 2025 •
bug#19987 issue: There is a lack of visual consistency between the home page and the chat interface.
by i-iooi-i • Dec 16, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Classic298 commented on GitHub (Jan 11, 2026):
have a fix ready for it in a min
@moritzderallerechte commented on GitHub (Feb 6, 2026):
I am also using manifold pipes and I do not only see the metadata/chat_id missing for the internal function calls, but also for normal chat completion calls. So it never gets passed at all.
Weird how it behaves differently, even though I am on the same version (v0.7.2). But I assume this is being fixed then too.
Is there a way to get notified when a commit gets merged into a release branch?
The chat_id missing is a real issue for me
@Classic298 commented on GitHub (Feb 12, 2026):
pr was merged