GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: fix order of permissions in agents docs (permissions subsection… · f2dmarques/opencode@d486c1c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/web/src/content/docs
    • agents.mdx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/web/src/content/docs/agents.mdx‎

Copy file name to clipboardExpand all lines: packages/web/src/content/docs/agents.mdx
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ mode: subagent
426426
permission:
427427
edit: deny
428428
bash:
429+
"*": ask
429430
"git diff": allow
430431
"git log*": allow
431-
"*": ask
432432
webfetch: deny
433433
---
434434

@@ -470,7 +470,7 @@ This can take a glob pattern.
470470
```
471471

472472
And you can also use the `*` wildcard to manage permissions for all commands.
473-
Where the specific rule can override the `*` wildcard.
473+
Since the last matching rule takes precedence, put the `*` wildcard first and specific rules after.
474474

475475
```json title="opencode.json" {8}
476476
{
@@ -479,8 +479,8 @@ Where the specific rule can override the `*` wildcard.
479479
"build": {
480480
"permission": {
481481
"bash": {
482-
"git status": "allow",
483-
"*": "ask"
482+
"*": "ask",
483+
"git status": "allow"
484484
}
485485
}
486486
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.