Bug Description

When using the native Gemini provider, executing any workspace tool triggers a red UI error pop-up. The backend correctly processes the stream, but the UI wrapper throws a streaming read error immediately after tool execution.
Steps to Reproduce
- Configure config.yaml to use the native 'gemini' provider.
- Initialize a session in the Hermes Desktop App.
- Prompt the agent to execute a workspace tool (e.g., git status, file operations).
- Wait for the tool execution to complete.
- The red error pop-up appears in the UI immediately after.
Expected Behavior
The tool output should be processed and sent back to the model seamlessly without throwing a UI-level streaming read error pop-up.
Actual Behavior
A red error pop-up appears in the UI stating: "Attempted to access streaming response content, without having called read()".
Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
N/A - This is a UI-level wrapper/diagnostic artifact triggered by tool execution. Backend httpx logic functions correctly.
Operating System
Windows 11
Python Version
3.11.15
Hermes Version
v0.18.0
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
The UI monitoring layer or diagnostic tool is attempting to access response.content or response.text on an httpx stream that has already been consumed or closed by the backend's aiter_lines(). The UI wrapper needs to be updated to ignore or correctly handle already-consumed streams.
Are you willing to submit a PR for this?
Bug Description
Steps to Reproduce
Expected Behavior
The tool output should be processed and sent back to the model seamlessly without throwing a UI-level streaming read error pop-up.
Actual Behavior
A red error pop-up appears in the UI stating: "Attempted to access streaming response content, without having called
read()".Affected Component
Other
Messaging Platform (if gateway-related)
No response
Debug Report
Operating System
Windows 11
Python Version
3.11.15
Hermes Version
v0.18.0
Additional Logs / Traceback (optional)
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
The UI monitoring layer or diagnostic tool is attempting to access
response.contentorresponse.texton an httpx stream that has already been consumed or closed by the backend'saiter_lines(). The UI wrapper needs to be updated to ignore or correctly handle already-consumed streams.Are you willing to submit a PR for this?