Skip to content

Rejecting use of a tool aborts the response entirely #7730

Closed

Description

@jtackaberry

Description

I set webfetch to ask. Occasionally the model will want to use the webfetch tool for something I want it to work through locally. If I reject the use of the tool, the response is summarily aborted and the prompt remains unanswered.

What I expected is that the model would just be informed the user denied use of the tool and it would continue on reasoning without it. This is my experiencing using other agents such as Kiro CLI

Plugins

No response

OpenCode version

1.1.12

Steps to reproduce

  1. Set webfetch permission to ask
  2. Write a prompt that induces use the tool
  3. Reject the request

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

Kitty

Activity

  1. github-actions commented on Jan 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. jtackaberry commented on Jan 11, 2026

    @jtackaberry
    Author

    Ok, perhaps this is intended, although #3953 (comment) shows more along the lines of what I'd expect.

    If this intended behavior, can I perhaps reframe this as a feature request in that we separate the existing option into "Reject and Abort" and "Reject and Continue" or some such?

    BTW, as I see from #3953 it might be relevant, I'm using gpt-oss-20b with 128k context via llama.cpp.

  3. rekram1-node commented on Jan 11, 2026

    @rekram1-node
    Collaborator

    @jtackaberry this is intentional behavior that u can disable using:

    {
    "experimental": {
        "continue_loop_on_deny": true
      }
    }
    

    in your opencode config

  4. jtackaberry commented on Jan 11, 2026

    @jtackaberry
    Author

    Ah, thanks @rekram1-node . I did RTFM (or try to) but I guess this being experimental means it's undocumented.

    Works as advertised. Thanks for the pointer.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions