File system operations fail on windows with azure provider #2894

Open
opened 2026-02-16 17:37:42 -05:00 by yindo · 2 comments
Owner

Originally created by @joov on GitHub (Nov 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @joov on GitHub (Nov 16, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 17:37:42 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 16, 2025):

@joov can you show me your agent definition please?

@rekram1-node commented on GitHub (Nov 16, 2025): @joov can you show me your agent definition please?
Author
Owner

@joov commented on GitHub (Nov 17, 2025):

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
@joov commented on GitHub (Nov 17, 2025): Here is the agent file, located in `%USERPROFILE%\.config\opencode\agent`: [strategy.md](https://github.com/user-attachments/files/23576682/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. <img width="795" height="576" alt="Image" src="https://github.com/user-attachments/assets/bd73cc4d-f926-4541-a0ac-e688debe5f54" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2894