--- name: Bypass Permissions Persistent Setting description: Configure settings.json on all machines to persist bypass permissions mode across context compressions type: feedback --- Always set `permissions.defaultMode` to `"bypassPermissions"` in `~/.claude/settings.json` on all workstations. **Why:** The `--dangerously-skip-permissions` CLI flag is not preserved when Claude Code compresses context or resumes sessions -- the new process starts without the flag, causing unexpected permission prompts mid-session. This is a known bug (GitHub issue #21974). **How to apply:** On any new machine setup, ensure `~/.claude/settings.json` includes: ```json { "permissions": { "defaultMode": "bypassPermissions" }, "skipDangerousModePermissionPrompt": true } ``` This makes bypass mode the default without needing the CLI flag. Both keys are needed -- `defaultMode` sets the mode, `skipDangerousModePermissionPrompt` suppresses the warning dialog.