Repository navigation
feat(permissions): author Devin permission_mode through the devin override - #3816
Merged
Merged
Conversation
…rride Devin CLI v3000.12.17 reads `permission_mode` (normal | accept-edits | smart | dangerous) from the user config to choose the mode new local sessions start in. Accept it in the `devin` override with value validation, write it to ~/.config/devin/config.json in global mode, drop it with a warning in project mode, warn when it is `dangerous`, and lift it back into the override on import. It is never derived from the canonical rules. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7
…ect values Name an imported `permission_mode: "dangerous"` in a warning, as generate does, and skip a `permission_mode` found in a project `.devin/config.json` (which Devin ignores) with a warning instead of lifting it. Document how to revert a written mode and that accept-edits and smart also loosen prompting. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7
…vin-permission-mode # Conflicts: # src/generated/docs-content.ts
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
Devin CLI v3000.12.17 (2026-11-06) added
permission_mode, the mode new local sessions start in. The config-file reference documents it as a user-only key with the valuesnormal(default),accept-edits,smartanddangerous. Before this PR, rulesync accepteddevin.permission_mode(the override is a loose object) but dropped it fromrulesync generate --globalwithout a warning, and an import lost it too.Changes
DevinPermissionsOverrideSchemagains a validatedpermission_modeenum (exported asDevinPermissionModeSchema), so an unknown value fails validation.~/.config/devin/config.json. The shared-config gateway now listspermission_modeamong the permissions feature's owned keys for that file. If the override leaves it out, the value already in the file is kept.devin.sandboxalready is.dangerousis written only when the user authors it, and it is named in a warning. The canonical rules never produce a value, not even allow-everything rules.devinoverride.null(Devin's spelling of the default) is skipped, and any other value is skipped with a warning.permission_modeto the Devin override section ofdocs/reference/file-formats.mdand regenerateddocs-content.ts.Verification
dangerouswarning, no value derived from canonical rules, the project-mode drop, the import round-trip, skipping a null or unknown value on import, and schema validation.pnpm cicheckpasses (614 files, 16832 tests).generate --targets devin --features permissions --globalwrote"permission_mode"to~/.config/devin/config.json.Refs #3413
🤖 Generated with Claude Code
https://claude.ai/code/session_01QUBBebviXSBQtiRAmDopZ7