Can the API method for creating a session support skill permission settings? #7323

Open
opened 2026-02-16 18:06:50 -05:00 by yindo · 1 comment
Owner

Originally created by @zhangshican on GitHub (Jan 23, 2026).

Originally assigned to: @thdxr on GitHub.

Question

api Create session /session
{
"id": "string",

"permission": [
    {
        "permission": "string",
        "pattern": "string",
        "action": "allow"
        "skill": { <-Now creating here is not allowed.
            "*": "allow",
            "pr-review": "allow",
            "internal-*": "deny",
            "experimental-*": "ask"
          }
    }
],
"revert": {
    "messageID": "string",
    "partID": "string",
    "snapshot": "string",
    "diff": "string"
}

}

Originally created by @zhangshican on GitHub (Jan 23, 2026). Originally assigned to: @thdxr on GitHub. ### Question api Create session /session { "id": "string", "permission": [ { "permission": "string", "pattern": "string", "action": "allow" "skill": { <-Now creating here is not allowed. "*": "allow", "pr-review": "allow", "internal-*": "deny", "experimental-*": "ask" } } ], "revert": { "messageID": "string", "partID": "string", "snapshot": "string", "diff": "string" } }
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5965: [FEATURE]: SDK-level permission overrides for tools - Requests the ability to programmatically constrain tool permissions per session/prompt via the SDK, including permission objects for session creation
  • #7407: [FEATURE]: Allow skills and commands to define scoped permission overrides - Proposes defining permission overrides in skill/command frontmatter that apply during execution
  • #8524: New permissions config types not expressive enough in SDK - Reports that custom tools and built-in tools like 'skill' are not available in SDK permission settings
  • #9927: Agent Permission not work as expected - Reports issues with skill-level permission settings not being enforced properly in agent configurations

Feel free to ignore if your specific use case differs from these.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #5965: [FEATURE]: SDK-level permission overrides for tools - Requests the ability to programmatically constrain tool permissions per session/prompt via the SDK, including permission objects for session creation - #7407: [FEATURE]: Allow skills and commands to define scoped permission overrides - Proposes defining permission overrides in skill/command frontmatter that apply during execution - #8524: New permissions config types not expressive enough in SDK - Reports that custom tools and built-in tools like 'skill' are not available in SDK permission settings - #9927: Agent Permission not work as expected - Reports issues with skill-level permission settings not being enforced properly in agent configurations Feel free to ignore if your specific use case differs from these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7323