Skip to content

[Bug]: Tool calls hang when user approval is required (without Auto Approve) #13021

@al-prk

Description

@al-prk

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Linux

Version

1.7.19

Bug Description

When Auto Approve is disabled in settings, tool calls that require user approval get stuck in "Streaming" state and never complete. The UI shows the tool is waiting for approval, but the request never reaches the user, and the conversation hangs indefinitely.

Environment

  • OS: Ubuntu in Distrobox
  • Cherry Studio version: 1.7.19

first call on screenshot made with auto approve, second one - without
Image

Steps To Reproduce

  1. Disable Auto Approve in Cherry Studio settings
  2. Use an LLM that triggers a tool call (e.g., function calling)
  3. The tool call requires user approval to proceed
  4. Expected: User sees approval prompt
  5. Actual: Request hangs in "Streaming" state, no prompt appears

Expected Behavior

When Auto Approve is disabled, the user should be prompted to approve or deny the tool call, or the tool should fail gracefully with an error message instead of hanging.

Relevant Log Output

Additional Context

  • With Auto Approve enabled, tool calls work correctly
  • The issue appears specifically when the model requests a tool that needs user confirmation
  • No error messages are shown in the UI when this happens

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGCategorizes issue or PR as related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions