Skip to content

[Bug]: reject reason not work on new version #689

Closed

Description

@bluelovers

App Variant

Server CLI

Operating System & Version

win11

Issue Summary

reject reason not work on new version

Steps to Reproduce

after new version is use opencode2
reject reason is not work

Expected Behavior

reject reason work
agent should why they get reject, when user is input reject reason

Logs & Screenshots

No response

Additional Context

No response

Activity

  1. added
    bug
    on Sep 13, 2026
  2. added a commit that references this issue on Sep 17, 2026
    a54f8b4
  3. bluelovers commented on Sep 20, 2026

    @bluelovers
    ContributorAuthor

    in 0.20.0-dev-20260919-c2b349f8 looks like reject reason not work again

  4. pascalandr commented on Sep 20, 2026

    @pascalandr
    Contributor

    I reproduced a second feedback-loss issue with isolated OpenCode 2.0.10, 2.0.11 and beta-19271 servers.

    #701 is included in your build, and its browser regression still passes: the typed reason survives permission refreshes. The rejection request also contains the full message.

    The loss happens afterwards in OpenCode. With read, the next model request contains only Unable to read <path>, without the rejection reason. I also reproduced it with shell on 2.0.10 (Unable to execute command: ...). In the native code, the tool error wrapper replaces the permission feedback with that generic message (read wrapper in 2.0.11).

  5. pascalandr commented on Sep 20, 2026

    @pascalandr
    Contributor

    I traced the feedback loss to OpenCode's error serialization and opened anomalyco/opencode#50157 with a standalone reproduction, plus a fix in anomalyco/opencode#50158. I verified that the full rejection reason reaches the next model request for both read and shell with the fix. The PR is awaiting upstream review; it is not in a released version yet.

  6. pascalandr commented on Oct 5, 2026

    @pascalandr
    Contributor

    I checked that the upstream fix for lost permission rejection feedback is included in OpenCode 2.0.23 via anomalyco/opencode#51968. I'm closing this issue as fixed upstream. Please update OpenCode and make sure the running service uses 2.0.23; updating CodeNomad alone does not update the OpenCode service.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions