Skip to content

[Bug] Bypass permissions mode resets to ask permissions on every edit #39350

Description

@ellimaybe

Bug Description
bypass permissions mode keeps switching to ask permissions on every edit

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.84
  • Feedback ID: e5615b4c-249f-4082-b824-bacfabdce0d3

Errors

[{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7597)\n    at OxA (B:/~BUN/root/src/entrypoints/cli.js:1954:11764)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1954:11888)\n    at some (native:1:11)\n    at enH (B:/~BUN/root/src/entrypoints/cli.js:1954:11879)","timestamp":"2026-03-26T12:08:59.643Z"},{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7582)\n    at OB$ (B:/~BUN/root/src/entrypoints/cli.js:4341:4934)\n    at isReadOnly (B:/~BUN/root/src/entrypoints/cli.js:4470:2600)\n    at isConcurrencySafe (B:/~BUN/root/src/entrypoints/cli.js:4470:2550)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4246:12956)","timestamp":"2026-03-26T12:08:59.644Z"},{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7597)\n    at zxA (B:/~BUN/root/src/entrypoints/cli.js:1954:5680)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T12:08:59.645Z"},{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7597)\n    at OxA (B:/~BUN/root/src/entrypoints/cli.js:1954:11764)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1954:11888)\n    at some (native:1:11)\n    at enH (B:/~BUN/root/src/entrypoints/cli.js:1954:11879)","timestamp":"2026-03-26T12:09:47.380Z"},{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7582)\n    at OB$ (B:/~BUN/root/src/entrypoints/cli.js:4341:4934)\n    at isReadOnly (B:/~BUN/root/src/entrypoints/cli.js:4470:2600)\n    at isConcurrencySafe (B:/~BUN/root/src/entrypoints/cli.js:4470:2550)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4246:12956)","timestamp":"2026-03-26T12:09:47.381Z"},{"error":"Error: Bad substitution: page.url\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7597)\n    at zxA (B:/~BUN/root/src/entrypoints/cli.js:1954:5680)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-26T12:09:47.381Z"},{"error":"Error: Bad substitution: cols[colIdx]\n    at j (B:/~BUN/root/src/entrypoints/cli.js:805:6327)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:6978)\n    at map (native:1:11)\n    at ahL (B:/~BUN/root/src/entrypoints/cli.js:805:6067)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:805:7132)\n    at E4 (B:/~BUN/root/src/entrypoints/cli.js:805:7597)\n    at OxA (B:/~BUN/root/src/entrypoints/cli.js:1954:11764)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:1954:11888)\n    at some (native:1:11)\n    at enH (B:/~BUN/root/src/entrypoints/cli.js:1954:11879)","timestamp":"2026-03-26T12:42:19.314Z"},{"error":"Error: Bad substitution:…

Note: Content was truncated.

Activity

  1. github-actions commented on Mar 26, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Permission mode resets from 'Bypass permissions' to 'Edit automatically' mid-session #39057
    2. Edit tool prompts for permission despite bypassPermissions mode + --dangerously-skip-permissions flag #37181
    3. Permission mode spontaneously switches from bypass/dontAsk to 'accept edits' during session #36473

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. interconnectedMe commented on Mar 26, 2026

    @interconnectedMe

    This is genuinely maddening. I have bypassPermissions set everywhere — VSCode initialPermissionMode, defaultMode in settings.local.json, the works — and it still resets to 'Ask before edits' the moment I respond to a protected directory prompt. Every. Single. Session. Please prioritise this fix.

  3. github-actions commented on Apr 26, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  4. github-actions commented on May 4, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  5. locked as resolved and limited conversation to collaborators on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions