Skip to content

When model uses edit tool it returns status 126 #1090

Closed

Description

@DiedeClaessens

When the model wants to edit my files it returns status 136. But the actual file is edited.

Image

Activity

  1. changed the title [-]When model uses edit tool it returns status 136[/-] [+]When model uses edit tool it returns status 126[/+] on Jul 17, 2025
  2. self-assigned this
    on Jul 17, 2025
  3. thdxr commented on Jul 17, 2025

    @thdxr
    Member

    what model is this?

  4. thdxr commented on Jul 17, 2025

    @thdxr
    Member

    oh this maybe is related to a formatter? what kind of file is this

  5. DiedeClaessens commented on Jul 18, 2025

    @DiedeClaessens
    Author

    Elixir and does not matter what model I use, they all have it

  6. DiedeClaessens commented on Jul 24, 2025

    @DiedeClaessens
    Author

    @thdxr sorry to bother you again but could you maybe give me some guidance how to fix. Could not find it in the docs?

  7. objectuser commented on Aug 20, 2025

    @objectuser

    I'm having this same issue.

  8. rekram1-node commented on Aug 20, 2025

    @rekram1-node
    Collaborator

    @objectuser are you only having it w/ elixir?

  9. objectuser commented on Aug 20, 2025

    @objectuser

    @objectuser are you only having it w/ elixir?

    It is with Elixir and yes only with Elixir but that's also only how I'm using it.

    I'm suspicious that it's asdf.

    Really new to opencode but found:

    ERROR 2025-08-20T13:41:37 +324ms service=default e=Failed with exit code 126 rejection

    But also:

    INFO 2025-08-20T13:56:06 +0ms service=format command=["mix","format","$FILE"] running

    No errors around ☝️ . 🤔

  10. rekram1-node commented on Aug 20, 2025

    @rekram1-node
    Collaborator

    sweet, I will try to fix this for ya when I get a second later tonight

  11. objectuser commented on Aug 20, 2025

    @objectuser

    🍻

  12. rekram1-node commented on Aug 22, 2025

    @rekram1-node
    Collaborator

    @objectuser looking into this more I think it is probably something specific to you? not sure if there is anything for us to do on our end maybe formatters shouldn't send errors to context but idk what else?

  13. objectuser commented on Aug 22, 2025

    @objectuser

    OK thanks, @rekram1-node. I wonder if everyone using Elixir is getting the same error. opencode is completing Elixir tasks (code modifications, etc.) successfully.

    I'll continue to look around, maybe ask in some Elixir venues.

  14. rekram1-node commented on Aug 23, 2025

    @rekram1-node
    Collaborator

    i could be mistaken here btw, just out of curiosity what is your mix path? like where is it located, does it require something custom from your .zshrc or something to get loaded properly?

    we are running the mix … command but we arent sourcing your zshrc etc, but if mix is resolved through PATH properly it shouldnt be an issue

  15. objectuser commented on Aug 23, 2025

    @objectuser

    I'm using mix through asdf which is in my path.

    I just found out I get improved results when I disable elixir-ls.

      "lsp": {
        "elixir-ls": {
          "disabled": true
        }
      },
    

    No error is generated and for the first time I see a diff of the edits.

  16. rekram1-node commented on Aug 25, 2025

    @rekram1-node
    Collaborator

    ahh elixir lsp separate issue that makes more sense, for some reason I was thinking formatter

  17. rekram1-node commented on Sep 22, 2025

    @rekram1-node
    Collaborator

    haven't seen activity on this one in a while closing unless more people have this issue

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