[PR #1879] [MERGED] Merge default agent permissions with global config #10098

Closed
opened 2026-02-16 18:14:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1879
Author: @AYM1607
Created: 8/12/2025
Status: Merged
Merged: 8/13/2025
Merged by: @thdxr

Base: devHead: fix-global-permissions


📝 Commits (2)

  • 120d805 Merge default permissions.
  • bce1352 Extract merging logic to helper.

📊 Changes

1 file changed (+36 additions, -23 deletions)

View changed files

📝 packages/opencode/src/agent/agent.ts (+36 -23)

📄 Description

Merge the default agent permissions with the global user provided permissions. If the user does not have a key for a given agent in the "agents" section of their config, the agent permissions will not be merged with the global config. This PR makes it so the default agent permissions are already merged with the global. Per-agent permission overrides are still honored.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1879 **Author:** [@AYM1607](https://github.com/AYM1607) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix-global-permissions` --- ### 📝 Commits (2) - [`120d805`](https://github.com/anomalyco/opencode/commit/120d80505218ed641f7191cd84c87fd499991b13) Merge default permissions. - [`bce1352`](https://github.com/anomalyco/opencode/commit/bce13528b26ce6f11fd88bafad4b851b386c923d) Extract merging logic to helper. ### 📊 Changes **1 file changed** (+36 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/agent/agent.ts` (+36 -23) </details> ### 📄 Description Merge the default agent permissions with the global user provided permissions. If the user does not have a key for a given agent in the "agents" section of their config, the agent permissions will not be merged with the global config. This PR makes it so the default agent permissions are already merged with the global. Per-agent permission overrides are still honored. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:42 -05:00
yindo closed this issue 2026-02-16 18:14:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10098