Skip to content

[BUG] Stopping output does not cancel streams (llama.cpp backend) #1450

Closed

Description

@allo-

Describe the bug
When I stop a streaming chat, llama.cpp continues to generate tokens (and may take a long time to finish the response). It looks like Zoo is not properly canceling the stream / closing the connection to the backend.

To Reproduce
Steps to reproduce the behavior:

  1. Ask Zoo a question that leads to a long answer or thinking process
  2. Stop after some time (e.g. to edit the question and ask again)
  3. See the backend still generating (and possibly blocking when no other slot is free)

Expected behavior
Stopped responses cancel the corresponding stream

What version of zoo are you running
Version: 3.60.0 (a62a652)

Activity

  1. added theissue type on Aug 30, 2026
  2. myk1yt commented on Sep 19, 2026

    @myk1yt
    Contributor

    Claiming — opening a PR shortly.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions