Skip to content

BUG: Cannot reject with a message in the main agent when continue_loop_on_deny #14297

Closed as not planned

Description

@pedro757

Description

Cannot reject with a message, as you can see in the video below I never have the chance to tell the model why I reject the proposed changes. The agent goes and tries to suggest new changes immediately.

I have "continue_loop_on_deny": true set in the config

The guy in the comment below suggested that this only happens on the main agent, apparently in subagents it's already implemented, you can reject with a message (I haven't had the chance to check this)

https://discord.com/channels/1391832426048651334/1391832428024430645/1471967672710201465

He said that he has a fork that solves this. Maybe he could file a PR.

Plugins

none

OpenCode version

1.2.6

Steps to reproduce

  1. With edit set to "ask" tell the model to make a simple edit to a file
  2. Reject

Screenshot and/or share link

screenrecording-2026-02-19_11-29-35.mp4

Operating System

Linux

Terminal

Ghostty

Activity

  1. github-actions commented on Feb 19, 2026

    @github-actions
    Contributor

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

  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 19, 2026
  3. yurihbm commented on Feb 25, 2026

    @yurihbm

    I guess that this is very important since it would prevent additional prompts to give feedback. This could even save money/costs when using AI plans with prompt-based charging like GitHub Copilot.

  4. XXiaoA commented on Apr 2, 2026

    @XXiaoA

    Any update on this PR? This feature is essential for AI-assisted coding workflows. Would love to see it merged soon!

  5. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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