Rejecting use of a tool aborts the response entirely #4692

Closed
opened 2026-02-16 17:45:04 -05:00 by yindo · 4 comments
Owner

Originally created by @jtackaberry on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @jtackaberry on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo closed this issue 2026-02-16 17:45:04 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

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

  • #3953: Model stops responding after you "deny" a command
  • #4129: Opencode hangs after I deny all tool usage
  • #5333: [FEATURE]: Graceful handling of queued messages after session interrupt

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

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #3953: Model stops responding after you "deny" a command - #4129: Opencode hangs after I deny all tool usage - #5333: [FEATURE]: Graceful handling of queued messages after session interrupt Feel free to ignore if none of these address your specific case.
Author
Owner

@jtackaberry commented on GitHub (Jan 10, 2026):

Ok, perhaps this is intended, although https://github.com/anomalyco/opencode/issues/3953#issuecomment-3494782564 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.

@jtackaberry commented on GitHub (Jan 10, 2026): Ok, perhaps this is intended, although https://github.com/anomalyco/opencode/issues/3953#issuecomment-3494782564 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.
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

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

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

in your opencode config

@rekram1-node commented on GitHub (Jan 10, 2026): @jtackaberry this is intentional behavior that u can disable using: ``` { "experimental": { "continue_loop_on_deny": true } } ``` in your opencode config
Author
Owner

@jtackaberry commented on GitHub (Jan 10, 2026):

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.

@jtackaberry commented on GitHub (Jan 10, 2026): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4692