Repository navigation
Description
Bug Description
Description
When using Hermes Agent as a gateway fronting Open WebUI, reasoning blocks generated by the underlying model are displayed correctly in the Hermes CLI/TUI but are missing from the API response sent to Open WebUI. This makes reasoning/thinking traces invisible to downstream clients that rely on the OpenAI-compatible chat completions endpoint.
Environment
- Hermes Agent (latest available)
- Model: stepfun/step-3.7-flash:free
- Provider: Nous Portal (https://inference-api.nousresearch.com/v1)
- Client: Open WebUI connecting via Hermes gateway /v1/chat/completions
Relevant Config
yaml
model:
default: stepfun/step-3.7-flash:free
provider: nous
base_url: https://inference-api.nousresearch.com/v1
agent:
reasoning_effort: medium
display.show_reasoning: true is also enabled in the Hermes config.
Steps to Reproduce
- Configure Hermes Agent with a reasoning-capable model and display.show_reasoning: true.
- Connect Open WebUI to the Hermes gateway endpoint.
- Send a prompt that elicits a visible reasoning chain (e.g., a multi-step problem).
- Observe that the Hermes TUI displays the reasoning block, but Open WebUI shows only the final assistant message with no thinking/reasoning section.
Expected Behavior
The reasoning/thinking content should be included in the streamed or final API response payload so that Open WebUI and other downstream consumers can render it.
Actual Behavior
The gateway’s API server adapter strips or omits the reasoning data from the outbound response. Only the final assistant content is delivered. This appears isolated to the API server path; other adapters (TUI, messaging) display reasoning correctly.
Affected Component
Configuration (config.yaml, .env, hermes setup), Gateway (Telegram/Discord/Slack/WhatsApp)
Messaging Platform (if gateway-related)
No response
Debug Report
No debug report available - all analysis is from the Open WebUI chat.Operating System
Windows 10
Python Version
3.11.15
Hermes Version
0.15.1
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
The API server adapter does not implement reasoning pass-through. There is no documented config toggle to enable it.
Proposed Fix (optional)
Add a config option such as gateway.expose_reasoning (default: false) and, when enabled, include the model’s reasoning content in the API server response stream. Alternatively, always include reasoning when the model returns it and display.show_reasoning is true.
Are you willing to submit a PR for this?
- I'd like to fix this myself and submit a PR
Activity
temeddix commentedon Jun 7, 2026
Having the same problem here. Reasoning block is really important for UX, and should be implemented.
noperator commentedon Jul 7, 2026
Would like to see this fixed as well.
jeremylanger commentedon Aug 11, 2026
➕1, would love to see this fixed!
alt-glitch commentedon Aug 11, 2026
Duplicate of #7556: both report that the API server does not honor
display.show_reasoningfor OpenAI-compatible chat-completions clients. The open reasoning-stream PRs remain related implementation candidates.jdieztec commentedon Aug 27, 2026
Same symptom here, with two data points that may help narrow it down.
Setup
display.show_reasoning: trueanddisplay.reasoning_full: true1. Reproduces with a local llama.cpp backend
Both existing reports use cloud providers (Nous Portal, DeepSeek). This also happens with a plain local llama.cpp server, which suggests the gap is in the API server's OpenAI-compat conversion rather than provider-specific.
Non-streaming request straight to the API server:
Result:
{ "reasoning": null, "content": "Step by step:\n\n1. You have 7 watches.\n..." }The same turn shows a full reasoning block in the dashboard (9119 native channel). So the model does produce it; it just doesn't survive the conversion to the OpenAI-compatible shape on 8642.
2. Hermes WebUI duplicates the answer into the reasoning block
Possibly a separate bug, but it shows up as a consequence of this one.
With
streaming.enabled: false(default), Hermes WebUI shows no reasoning block at all — consistent with the above.After setting
streaming.enabled: true, a💭 Reasoningblock does appear — but its content is a verbatim copy of the assistant's answer, rendered twice: once inside the collapsible, once as the message body. Exported HTML:It looks like the client falls back to filling the reasoning slot with
contentwhenreasoning_contentis absent. Open WebUI, by contrast, shows nothing at all — which is at least not misleading.If it helps, I'm happy to run further tests against the local endpoint.
BR, Jorge
kshitijk4poor commentedon Sep 24, 2026
Closing as fixed on current
main(verified against f24a1d7): b957782.Already labelled duplicate of #7556, and the underlying gap is closed: api_server_openai_routes.py::_spawn_stream_agent wires reasoning_callback and the chat-completions SSE writer emits
delta.reasoning_content(~L842); non-streaming addsmessage.reasoning_content(~L762). Commit b957782 (streaming) + 0a846a2 (non-streaming). Note: main streams reasoning unconditionally —display.platforms.api_server.show_reasoninggating (#7556) is not implemented; that belongs to #7556.If this still reproduces on the latest release, please reopen with the version and a log excerpt.