Skip to content

fix(subagent-opencode): resolve permission: session + ask to allow - #55

Merged
ngeorger merged 2 commits into
mainfrom
fix/opencode-subagent-permission-session
Nov 22, 2026
Merged

ngeorger merged 2 commits into
mainfrom
fix/opencode-subagent-permission-session

Conversation

@sredevopsorgagents

Copy link
Copy Markdown
Collaborator

Fix projectPolicy returning the raw 'session' config string for non-never sessions, which permissionOutcome treats as a rejection. With the default permission: session, ask sessions were auto-denied exactly like never sessions.

Resolve session+ask to allow (an out-of-process child cannot ask a human, so an interactive session consents); never still forces reject one-way stricter. Add unit and runner regression tests.

projectPolicy returned the raw 'session' config string for any non-never
session, which permissionOutcome treats as a rejection. With the default
permission: session, ask sessions were auto-denied exactly like never
sessions. Resolve session+ask to allow (an out-of-process child cannot ask
a human, so an interactive session consents); never still forces reject
one-way stricter. Add unit and runner regression tests.
@ngeorger
ngeorger merged commit a651c52 into main Nov 22, 2026
7 checks passed
@ngeorger
ngeorger deleted the fix/opencode-subagent-permission-session branch November 22, 2026 00:53
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.

2 participants