Skip to content
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
open-webui / open-webui Public

- Sponsor
- Notifications You must be signed in to change notification settings
- Fork 20.3k
- Star 141k

# issue: Using an external tool server causes the response to be unable to stop #15695

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
issue: Using an external tool server causes the response to be unable to stop#15695
Copy link
Labels
bug Something isn't working Something isn't working

## Description

EntropyYue
Contributor
Issue body actions

### Check Existing Issues

- I have searched the existing issues and discussions.
  I am using the latest version of Open WebUI.
  To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.

### 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.
  To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.

### 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

## Activity

EntropyYue
added
bug Something isn't working Something isn't working
on Jul 14, 2025

### Godzilla675 commented on Jul 25, 2025

Godzilla675
More actions

i made this to fix your issue: #16016

### tjbck commented on Aug 18, 2025

tjbck
Contributor
More actions

#13027

tjbck
closed this as duplicate on Aug 18, 2025

### EntropyYue commented on Aug 27, 2025

EntropyYue
Contributor Author
More actions

@tjbck This did not solve it, I used 0.6.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

## Metadata

### Assignees

No one assigned

### Labels

bug Something isn't working Something isn't working

### Type

No type

### Fields

Give feedback
No fields configured for issues without a type.

### Projects

No projects

### Milestone

No milestone

### Relationships

None yet

### Development

No branches or pull requests

### Participants

## Issue actions

You can’t perform that action at this time.