feat: add disableExec config option (fixes #15)#91
Merged
frankekn merged 2 commits intoopenclaw:mainfrom Mar 10, 2026
Merged
Conversation
Add security configuration option to disable the exec subcommand: - Add disableExec boolean option to config file schema - Support both global and project-level configuration - Block exec subcommand with clear error message when enabled - Return JSON-RPC error with EXEC_DISABLED code in JSON format - Add comprehensive tests for config parsing and CLI behavior This is useful for security-sensitive deployments where one-shot exec commands should be prohibited while allowing session-based prompt interactions.
Contributor
Author
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
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.
Summary
添加安全配置选项
disableExec来禁用 exec 子命令。Changes
disableExec: true选项~/.acpx/config.json) 和项目配置 (.acpxrc.json)EXEC_DISABLED错误码Use Case
适用于安全敏感的部署环境,需要禁用一次性 exec 命令,同时允许基于会话的 prompt 交互。
Configuration Example
{ "disableExec": true }Testing