mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #24947] issue: System Prompt is thrown out during RAG when Open Terminal is connected #123748
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 @seamon67 on GitHub (May 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24947
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.9.5
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
System Prompt defined in the Model's System Prompt should be present in all Requests.
Actual Behavior
Model's System Prompt is thrown out when RAG is triggered and Open Terminal is connected.
This happens during interleaved thinking and function calling.
In the first request, the System Prompt is sent correctly as
In every subsequent request where RAG is triggered, the System Prompt is thrown out. The request looks like
This happens under very specific conditions:
Steps to Reproduce
Logs & Screenshots
Not necessary
Additional Information
If Open Terminal is disconnected the System Prompt in the request to the LLM is always correct as
@owui-terminator[bot] commented on GitHub (May 20, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟣 #22965 issue: Code interpreter prompt (Pyodide) injected into user turn instead of system prompt
This is the closest match: it reports another special prompt being appended to the user turn instead of the system prompt. Your issue appears to be the same class of bug, but triggered when Open Terminal is connected and RAG/tool-calling reruns the prompt assembly.
by AirRunner ·
bug🟣 #19098 issue: Prompt & context duplication when RAG template is used
This issue describes RAG prompt/context duplication when tool or source context is injected, which is directly related to the RAG-side prompt handling in your report. It may share the same source-context injection path that causes the system prompt to be lost or replaced.
by matiboux ·
bug🟣 #21663 issue: RAG template mutates web search tool call args
This bug is specifically about RAG/source templating interacting badly with web search tool calls. Since your reproduction requires web search/RAG and occurs during function calling, it is likely related to the same middleware path.
by relic664 ·
bug🟣 #24193 Issue #24193
This is a broader system-prompt regression. While not specific to Open Terminal, it is relevant because your report is fundamentally about the system prompt disappearing in certain request-building paths.
by unknown
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.