Skip to content

feat: Add global always-allow permission setting #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

monotykamary
Copy link
Contributor

@monotykamary monotykamary commented Jun 5, 2025

Summary

  • Introduces a new global configuration option alwaysAllowPermissions and a corresponding CLI flag --always-allow-permissions (shorthand -A).
  • When this setting is enabled, all permission prompts during a session are bypassed, and operations are automatically allowed. This provides a more streamlined experience for users who trust all operations performed by the tool.
  • The configuration is not persisted across sessions and must be manually set by the user.

Test plan

  • Run opencode -A - subsequent operations requiring permissions should not prompt.
  • Run opencode without the flag (after running with it) - permission prompts should reappear.
  • Verify existing permission logic (allow, allow for session, deny) works as expected when the global flag is not set or is false.

🤖 Generated with opencode

monotykamary and others added 2 commits June 5, 2025 23:26
Introduces a new global configuration option `alwaysAllowPermissions`
and a corresponding CLI flag `--always-allow-permissions` (shorthand `-A`).

When this setting is enabled, all permission prompts during a session
are bypassed, and operations are automatically allowed. This provides
a more streamlined experience for users who trust all operations
performed by the tool.

The configuration is persisted across sessions.

🤖 Generated with opencode
Co-Authored-By: opencode <[email protected]>
The --always-allow-permissions flag no longer automatically updates the user's configuration file. This change ensures that the setting is manually configured by the user, and only affects the current session unless explicitly set in the config.
@monotykamary monotykamary closed this by deleting the head repository Jun 16, 2025
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.

1 participant