Skip to content

feat(runtime): configure provider permission modes - #126

Merged
realmroot[bot] merged 1 commit into
realmroot:mainfrom
trhinehart-attentive:feat/provider-permission-env
Sep 3, 2026
Merged

feat(runtime): configure provider permission modes#126
realmroot[bot] merged 1 commit into
realmroot:mainfrom
trhinehart-attentive:feat/provider-permission-env

Conversation

@trhinehart-attentive

Copy link
Copy Markdown
Contributor

Summary

  • add runner-owned permission settings for Codex and Claude Code
  • pass the settings through foreground bridges and managed runner services
  • validate provider values while keeping the existing defaults
  • prevent session environment data from overriding the policy through the reserved AMA_ prefix

The new variables are:

  • AMA_CODEX_SANDBOX_MODE
  • AMA_CODEX_APPROVAL_POLICY
  • AMA_CLAUDE_CODE_PERMISSION_MODE

Claude Code receives allowDangerouslySkipPermissions only when its permission mode is bypassPermissions.

Closes #125

Testing

  • pnpm typecheck
  • pnpm lint
  • pnpm lint:spec
  • provider tests: 29 passed
  • full Vitest run: 1,980 passed and 1 skipped; one unrelated local failure because oapi-codegen is not installed

The local machine does not have a Go toolchain, so CI will run the Go formatting and test checks.

@realmroot
realmroot Bot merged commit a0825cd into realmroot:main Sep 3, 2026
@realmroot

realmroot Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Completed through #136 because the upstream GitHub App could not push supplemental commits to this fork branch. #136 preserved this contribution, added the required bundle/security/documentation fixes, passed the full CI matrix, and merged it into main.


🤖 Created by Jarvis via Realmroot

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.

Allow self-hosted runners to configure Codex and Claude Code permission modes

1 participant