Skip to content

doesnt edit files #2022

Closed
Closed

Description

@laflinwalker

Plan ok. But building has no effect on files

Activity

  1. github-actions commented on Aug 17, 2025

    @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. rekram1-node commented on Aug 17, 2025

    @rekram1-node
    Collaborator

    can you elaborate? What model are you using?

    Generally this is a model/prompting issue

  3. Artawower commented on Aug 17, 2025

    @Artawower

    Exactly the same behavior. This is not prompting and not a model. I use sonnet4, and claude code edits files, opencode does not.

  4. rekram1-node commented on Aug 17, 2025

    @rekram1-node
    Collaborator

    can you provide any more detail at all? Are you in plan mode? or build mode?

    fresh install w/ sonnet4 I have 0 issue so I just need a tad more info to help you debug

  5. Artawower commented on Aug 17, 2025

    @Artawower

    In my case, it was build mode. However, I am unable to reproduce this behavior again (new session)

  6. rekram1-node commented on Aug 17, 2025

    @rekram1-node
    Collaborator

    did the llm say something like "I am sorry I cannot edit files" and did this by chance happen after switching from plan mode? I have seen that happen and we definitely need to address

    As in:
    switch from plan -> build, ask it to do action, "I cannot do X because I am in plan mode ..."

  7. laflinwalker commented on Aug 18, 2025

    @laflinwalker
    Author

    @rekram1-node in build mode. I get statements like I modified the code or made changes but in actual file, no changes are made. I had installed using curl, the uninstalled and re-installed using bun. No improvement

  8. alexwinston commented on Aug 18, 2025

    @alexwinston

    I am having the exact same problem. I am on a Mac and using the CLI, installed with brew, with GPT5. I am in build mode and it says the changes and new files have been saved but nothing has changed in the project. I am starting opencode from the project directory and using !pwd to ensure the correct directory once opencode is started. To ensure the simplest scenario I tried doing /init in an existing project and it says it created the AGENTS.md but it isn't. Hope this is helpful, happy to provide more details if needed.

  9. rekram1-node commented on Aug 18, 2025

    @rekram1-node
    Collaborator

    gpt-5-chat-latest does not support tools btw

  10. scbarnes commented on Aug 21, 2025

    @scbarnes

    Symptom:
    The agent will start a task, "working..." will constantly tick over but its either timed out and hasn't recovered or . I am not sure how opencode as yet logs its faults etc, but i'd wager there is some sort of timeout and unable to recover from that moment. thus you see "working..." constantly spinning but its a false positive.

    Models
    Sonnet | Opus | Sonic

    Frequency:
    After about 2-3 sessions it starts to arise. That or about after about 8-10 chat cycles (ie prompt/answer/prompt/answer) it eventually becomes a "stalling"

    Like I said, I haven't to be blunt taken the time to investigate where or if opencode has any visible logs for this. I will try now but in case I don't this is all I have to give for now.

  11. SassyMemer commented on Aug 24, 2025

    @SassyMemer

    Same for me. macOS client. Stuck indefinitely on planning phase and unable to move further. Whenever asked to implement the plan it's was giving the same planning output over and over. Model is kimi k2 and to some degree Gemini 2,5 Pro / DeepSeek. Also DeepSeek weren't even able to see files in Project directory resulting in [use the bash tool to list files in the data folder.

  12. rekram1-node commented on Sep 24, 2025

    @rekram1-node
    Collaborator

    Is anyone still having this issue?

  13. laszloagardi commented on Sep 29, 2025

    @laszloagardi

    I am having a similar issue. Model tries to edit files, I have to manually approve edits (persmission is set to ask). As it spits out multiple few-line edits to the same file, I approve one-by-one (enter), but seems like only the last edit is applied.
    Last tried with openrouter grok-4-fast:free.

  14. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    hmm @laszloagardi are u on latest?

  15. laszloagardi commented on Sep 29, 2025

    @laszloagardi

    yes, v0.13.4

  16. rekram1-node commented on Sep 29, 2025

    @rekram1-node
    Collaborator

    got it I will try to replicate

  17. R44VC0RP commented on Jan 25, 2026

    @R44VC0RP
    Contributor

    Closing this as stale - the original reports from Aug-Sep 2025 couldn't be reproduced, and we've since added fixes:

    • Per-file locking to prevent race conditions
    • Clearer "Edit applied successfully" messages

    For those who were using GPT-5-chat-latest: That model doesn't support tool calling, which is required for file edits. Use a model that supports tools (Claude, GPT-4o, etc.).

    If you're still experiencing edit issues on current versions (v1.1.x): Please open a new issue with:

    • Your model (provider/model name)
    • Specific repro steps
    • OpenCode version (opencode --version)

    Thanks everyone for the reports!

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