You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ShellFailed with exit code 1 when OpenCode tries to "ask" for permissions (Windows) #4880
This issue might be a duplicate of existing issues. Please check:
[Windows] interactive call breaking tui #3763: [Windows] interactive call breaking tui - describes Windows terminal issues with interactive bash calls that expect user input, similar to the permission asking flow
Feel free to ignore if this doesn't address your specific case.
Isn't this an OS level permission. Not an opencode bug? Seems like opencode the executable on your machine doesnt have permission to read that file at all.
So you'd need to edit your actual settings at a lower level than opencode settings
But like I said, if you are getting errors when opencode tries to execute things or read files. Thats at your OS level, it doesnt really matter the permission in the config if your os is rejecting it right
Oh, so you're saying the "ask" just runs some shell script to prompt for confirmation?
Bear in mind that I have no idea what it's supposed to look like since it never worked.
Neither has ! command, but that might indeed be on me:
$ git status ┃Microsoft Windows [Version 10.0.26220.7271]
┃ (c) Microsoft Corporation. All rights
┃ reserved.
┃ Not enough memory resources are available
┃ to process this command.
┃
Getting this despite having set $SHELL to pwsh.exe, so no idea what's going on. Will try to debug. Obviously not getting this error anywhere else.
Oh, so you're saying the "ask" just runs some shell script to prompt for confirmation?
Bear in mind that I have no idea what it's supposed to look like since it never worked.
No im saying that "ask" will force the user to approve things before they are ran. However the errors you are getting have nothing to do with opencode permissions and everything to do with your OS and your setup.
I guess here the issue is you dont have enough RAM
Interestingly, I'm hitting the exact same issue on a newly installed Linux machine now, where ! command works fine. I don't see how my config could possibly be causing this. Would it help if I gave some additional context from there?
Activity
github-actions commentedon Nov 28, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if this doesn't address your specific case.
rekram1-node commentedon Nov 28, 2025
Isn't this an OS level permission. Not an opencode bug? Seems like opencode the executable on your machine doesnt have permission to read that file at all.
So you'd need to edit your actual settings at a lower level than opencode settings
JosXa commentedon Nov 28, 2025
This should prove it?
https://opencode.ai/s/HklH4yiK
rekram1-node commentedon Nov 28, 2025
But like I said, if you are getting errors when opencode tries to execute things or read files. Thats at your OS level, it doesnt really matter the permission in the config if your os is rejecting it right
rekram1-node commentedon Nov 28, 2025
What do you see if you try to do:
type "!" into prompt input box to go into shell mode
then type "git status"
Then hit enter
JosXa commentedon Nov 28, 2025
Oh, so you're saying the "ask" just runs some shell script to prompt for confirmation?
Bear in mind that I have no idea what it's supposed to look like since it never worked.
Neither has
! command, but that might indeed be on me:Getting this despite having set $SHELL to pwsh.exe, so no idea what's going on. Will try to debug. Obviously not getting this error anywhere else.
rekram1-node commentedon Nov 28, 2025
No im saying that "ask" will force the user to approve things before they are ran. However the errors you are getting have nothing to do with opencode permissions and everything to do with your OS and your setup.
I guess here the issue is you dont have enough RAM
JosXa commentedon Nov 28, 2025
Heh yeah if only it was that easy, got a cool 40GB left over :(
JosXa commentedon Nov 29, 2025
Interestingly, I'm hitting the exact same issue on a newly installed Linux machine now, where
! commandworks fine. I don't see how my config could possibly be causing this. Would it help if I gave some additional context from there?rekram1-node commentedon Nov 29, 2025
I mean probably? It doesn't seem like it has anything to do with your opencode config to me