Skip to content

fix: allow user to configure doom loop & external dir perms#4095

Merged
rekram1-node merged 2 commits intodevfrom
make-addition-perms-configurable
Nov 10, 2025
Merged

fix: allow user to configure doom loop & external dir perms#4095
rekram1-node merged 2 commits intodevfrom
make-addition-perms-configurable

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

@rekram1-node rekram1-node commented Nov 8, 2025

fixes: #4023

@rekram1-node rekram1-node marked this pull request as draft November 8, 2025 22:49
@rekram1-node rekram1-node marked this pull request as ready for review November 10, 2025 02:18
@rekram1-node rekram1-node merged commit 4e549b1 into dev Nov 10, 2025
5 checks passed
@wojons
Copy link
Copy Markdown

wojons commented Nov 10, 2025

thx

@wojons
Copy link
Copy Markdown

wojons commented Nov 10, 2025

What is the flag i need to use?

@rekram1-node
Copy link
Copy Markdown
Collaborator Author

@wojons edit your opencode.json and set "doom_loop": "deny" in the permissions object

Like:

{
  "permission": {
     "doom_loop": "deny",
     "external_directory": "deny"
  }
}

You dont have to do both but either works

@wojons
Copy link
Copy Markdown

wojons commented Nov 10, 2025

Can I know the difference between both settings now or if there is a long term difference

@rekram1-node
Copy link
Copy Markdown
Collaborator Author

well they are different i was just trying to say u dont have to set both together u can do 1, 2, or none

external_directory says if tools are allowed to access external dirs

doom loop just configures if permission modal should pop up if the model calls same tool a lot

u can set, allow, ask, or deny for any permission

@wojons
Copy link
Copy Markdown

wojons commented Nov 11, 2025

This is great and useful would you like me to make a pull request for these settings in the docs its the least i can do?

@rekram1-node
Copy link
Copy Markdown
Collaborator Author

sure thanks!

github-actions Bot pushed a commit to yuguorui/opencode that referenced this pull request Jan 18, 2026
@thdxr thdxr deleted the make-addition-perms-configurable branch February 7, 2026 06:26
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No longer Auto rejects filesystem calls outside of CWD

2 participants