Skip to content

File system operations fail on windows with azure provider #4374

Closed

Description

@joov

Description

File system operations on windows do not work after using own agent in yaml notation with azure based model

With write and edit set to true, the agent will say, that he cannot write to a file.
With bash set to true, it will state, that everything works, but do nothing.

When changing the model manually to opencode/Big Pickle inside the agent and trying again, the file is written.

Expected behaviour: File access permissions should not depend on provider/model selection

OpenCode version

1.0.67

Steps to reproduce

  1. create agent in yaml-format in appropriate folder with tool permissions write: true, edit: true, bash: false
  2. set model to azure/gpt-5-chat in yaml (or whatever is in your deployment)
  3. start opencode
  4. switch to agent
  5. enter write 'test' to test.md

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

cmd

Activity

  1. added
    bugSomething isn't working
    on Nov 16, 2025
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  3. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Contributor

    @joov can you show me your agent definition please?

  4. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 16, 2025
  5. self-assigned this
    on Nov 16, 2025
  6. joov commented on Nov 17, 2025

    @joov
    Author

    Here is the agent file, located in %USERPROFILE%\.config\opencode\agent: strategy.md

    I provided the answer as screenshot. As you can see, the file is not written. The agent claims not to have direct file-write access. When changing manually to opencode/big-pickle via the /model command the writing works.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions