Skip to content

Bug in deny tool use #1617

@lalala-233

Description

@lalala-233

Description

When deepseek ask for tool use like edit_file, sometimes I chosed to deny it.

However, after I denied it, it will deny it automatically forever. So I can't approve it any more.

/exit and resume this session can fix it, but it seems like there is a bug.

It was first reported in #1377. it was fixed then, but it happened again. So it is a regression bug.

Specially, this bug seems exist in any tool which need user approval.

Steps to reproduce

Same as #1377

  1. ask deepseek to edit_file
  2. deny it
  3. then ask it to edit_file

Expected behavior

You can approve second edit_file request.

Actual behavior

All edit_file will be denied automatically if you deny it once.

Failed to authorize tool execution: Tool 'edit_file' denied by user

Impact

Environment

  • OS: Arch Linux
  • DeepSeek CLI version: 0.8.36
  • Model: DeepSeek V4 Flash
  • Shell: fish

Logs, screenshots, or recordings

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions