[GH-ISSUE #15695] issue: Using an external tool server causes the response to be unable to stop #56307

Closed
opened 2026-05-05 19:08:29 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @EntropyYue on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15695

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.15

Ollama Version (if applicable)

0.9.6

Operating System

Windows 10

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

The ollama's response should stop normally

Actual Behavior

Although the frontend no longer displays new tokens, ollama is still generating text, and the backend will encounter errors

Steps to Reproduce

Starting from PostgreSQL installation
Create a simple tool server
Connect to it using a direct connection
Request the model to use it in the native tool call mode
Click the stop button before the model stops generating

Logs & Screenshots

open-webui-1  | 2025-07-14 08:08:35.747 | WARNING  | open_webui.utils.middleware:post_response_handler:2414 - Task was cancelled! - {}
open-webui-1  | 2025-07-14 08:08:35.777 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 172.18.0.1:0 - "POST /api/tasks/stop/857b6799-786a-477d-908a-8f60c440ad5a HTTP/1.1" 200 - {}
open-webui-1  | 2025-07-14 08:08:39.087 | ERROR    | aiohttp.client:__del__:443 - Unclosed client session
open-webui-1  | client_session: <aiohttp.client.ClientSession object at 0x711e4d568fd0> - {}
open-webui-1  | 2025-07-14 08:08:39.087 | ERROR    | aiohttp.connector:__del__:333 - Unclosed connector
open-webui-1  | connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x711e4d1e8750>, 109685.492257441)])']
open-webui-1  | connector: <aiohttp.connector.TCPConnector object at 0x711e5590e6d0> - {}

Additional Information

Output is only unstopable after calling the tool, while it is normal without the tool

Originally created by @EntropyYue on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15695 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.15 ### Ollama Version (if applicable) 0.9.6 ### Operating System Windows 10 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior The ollama's response should stop normally ### Actual Behavior Although the frontend no longer displays new tokens, ollama is still generating text, and the backend will encounter errors ### Steps to Reproduce Starting from PostgreSQL installation Create a simple tool server Connect to it using a direct connection Request the model to use it in the native tool call mode Click the stop button before the model stops generating ### Logs & Screenshots ``` open-webui-1 | 2025-07-14 08:08:35.747 | WARNING | open_webui.utils.middleware:post_response_handler:2414 - Task was cancelled! - {} open-webui-1 | 2025-07-14 08:08:35.777 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.18.0.1:0 - "POST /api/tasks/stop/857b6799-786a-477d-908a-8f60c440ad5a HTTP/1.1" 200 - {} open-webui-1 | 2025-07-14 08:08:39.087 | ERROR | aiohttp.client:__del__:443 - Unclosed client session open-webui-1 | client_session: <aiohttp.client.ClientSession object at 0x711e4d568fd0> - {} open-webui-1 | 2025-07-14 08:08:39.087 | ERROR | aiohttp.connector:__del__:333 - Unclosed connector open-webui-1 | connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x711e4d1e8750>, 109685.492257441)])'] open-webui-1 | connector: <aiohttp.connector.TCPConnector object at 0x711e5590e6d0> - {} ``` ### Additional Information Output is only unstopable after calling the tool, while it is normal without the tool
GiteaMirror added the bug label 2026-05-05 19:08:29 -05:00
Author
Owner

@Godzilla675 commented on GitHub (Jul 25, 2025):

i made this to fix your issue: https://github.com/open-webui/open-webui/pull/16016

<!-- gh-comment-id:3115694722 --> @Godzilla675 commented on GitHub (Jul 25, 2025): i made this to fix your issue: https://github.com/open-webui/open-webui/pull/16016
Author
Owner

@tjbck commented on GitHub (Aug 18, 2025):

#13027

<!-- gh-comment-id:3197828235 --> @tjbck commented on GitHub (Aug 18, 2025): #13027
Author
Owner

@EntropyYue commented on GitHub (Aug 27, 2025):

@tjbck This did not solve it, I used 0.6.25

<!-- gh-comment-id:3230129935 --> @EntropyYue commented on GitHub (Aug 27, 2025): @tjbck This did not solve it, I used 0.6.25
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56307