Skip to content

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

@EntropyYue

Description

@EntropyYue
Contributor

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

Activity

Godzilla675

Godzilla675 commented on Jul 25, 2025

@Godzilla675

i made this to fix your issue: #16016

tjbck

tjbck commented on Aug 18, 2025

@tjbck
Contributor
EntropyYue

EntropyYue commented on Aug 27, 2025

@EntropyYue
ContributorAuthor

@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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tjbck@Godzilla675@EntropyYue

        Issue actions