Use sandboxed runtime defaults with on-request approvals#34
Open
lelonco wants to merge 2 commits intofriuns2:mainfrom
Open
Use sandboxed runtime defaults with on-request approvals#34lelonco wants to merge 2 commits intofriuns2:mainfrom
lelonco wants to merge 2 commits intofriuns2:mainfrom
Conversation
lelonco
commented
Apr 5, 2026
- switch default app-server runtime from danger-full-access / never to workspace-write / on-request
- centralize runtime arg construction in a shared server config module
- add CLI overrides for sandbox mode and approval policy
- update docs and manual test coverage
Review Summary by QodoSwitch to sandboxed defaults with on-request approvals
WalkthroughsDescription• Switch default app-server runtime from danger-full-access/never to workspace-write/on-request • Centralize runtime configuration in new shared appServerRuntimeConfig module • Add CLI flags for sandbox mode and approval policy overrides • Update documentation and test coverage for new defaults Diagramflowchart LR
CLI["CLI Options<br/>--sandbox-mode<br/>--approval-policy"]
ENV["Environment Variables<br/>CODEXUI_SANDBOX_MODE<br/>CODEXUI_APPROVAL_POLICY"]
CONFIG["appServerRuntimeConfig<br/>resolveAppServerRuntimeConfig"]
DEFAULTS["Default Values<br/>workspace-write<br/>on-request"]
ARGS["App Server Args<br/>buildAppServerArgs"]
ROUTES["accountRoutes &<br/>codexAppServerBridge"]
CLI -->|parsed & validated| CONFIG
ENV -->|read & normalized| CONFIG
DEFAULTS -->|fallback| CONFIG
CONFIG -->|builds| ARGS
ARGS -->|used by| ROUTES
File Changes1. src/server/appServerRuntimeConfig.ts
|
Code Review by Qodo
1.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.