Skip to content

adjust permission array logic#27168

Open
rekram1-node wants to merge 9 commits into
devfrom
adjust-perm-array-logic
Open

adjust permission array logic#27168
rekram1-node wants to merge 9 commits into
devfrom
adjust-perm-array-logic

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

No description provided.

Andrew Suffield and others added 7 commits April 21, 2026 13:01
…erve permissions objects as layers, convert them individually to rulesets, and merge the rulesets (#16157)
Replace the internal permission_layers config field with a union on permission
itself (single object or array of layered configs). Add ConfigPermission.toLayers
to normalise at consumption sites. Schema has no decode transform, so user
files round-trip through Config.update / updateGlobal without their permission
section being rewritten into array form.
@rekram1-node
Copy link
Copy Markdown
Collaborator Author

/review

@github-actions
Copy link
Copy Markdown
Contributor

lgtm

# Conflicts:
#	packages/opencode/src/config/config.ts
#	packages/opencode/src/config/permission.ts
#	packages/opencode/test/config/config.test.ts
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.

1 participant