GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Claude "full access" fails to start when bypassPermissions is disabled by policy · Issue #4927 · pingdotgg/t3code

[Bug]: Claude "full access" fails to start when bypassPermissions is disabled by policy #4927

New issue
Copy link
New issue
Copy link
Closed
Closed
[Bug]: Claude "full access" fails to start when bypassPermissions is disabled by policy#4927
Copy link

Description

@preetpatel
preetpatel
opened on Jul 30, 2026
Issue body actions

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

Any Claude setup where permissions.disableBypassPermissionsMode is "disable" — either in a user settings.json or pushed down by a managed/enterprise policy — will hit this.

  1. Set permissions.disableBypassPermissionsMode: "disable" in Claude settings (or have it enforced by a managed policy).
  2. Start a Claude Agent thread and pick the "full access" runtime mode.
  3. Send a message.

In ClaudeAdapter.startSession, "full access" maps straight to Claude's bypassPermissions permission mode. The adapter never checks whether that mode is actually allowed, so it hands bypassPermissions to the SDK/CLI even when the resolved settings forbid it. The CLI then refuses to run and the session dies on start.

I've patched this locally: when full access is requested I resolve the same settings cascade the CLI reads (resolveSettings over CLAUDE_SETTING_SOURCES), and if disableBypassPermissionsMode is "disable" I downgrade the effective mode to auto before starting, log a warning, and keep both the requested and effective mode on the span. It fails closed — if settings resolution throws I treat bypass as disabled and drop to auto rather than risk bypassing a managed lock.

That downgrade is really just a safety net though. The better fix is in the UI: if the policy forbids bypass, full access shouldn't be selectable at all — grey it out and make auto the default. For that the server needs to surface "bypass is disabled" in the provider state so apps/web can read it and disable the option instead of offering something that can't work.

Expected behavior

When the policy forbids bypassPermissions, the "full access" option is greyed out / disabled in the runtime mode picker and auto is the default. You never get to pick full access in an environment where it can't run. The server-side downgrade to auto stays as a backstop for cases where the client doesn't know (or policy changes mid-session).

Actual behavior

Full access is offered and selectable, then the session errors out at start because the CLI rejects bypassPermissions. It's unusable anywhere bypass mode is locked, even though auto would have worked fine.

Impact

Major degradation or frequent failure

Version or commit

main @ b125b76

Environment

apps/server, Claude Agent provider. Happens wherever Claude settings or a managed policy set permissions.disableBypassPermissionsMode: "disable" — config-dependent, not tied to an OS.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Pick the auto runtime mode instead of full access.

Reacted by Ryan Norris and Neil Goldader

Activity

  1. tyteen4a03 commented on Sep 10, 2026

    @tyteen4a03
    tyteen4a03
    on Sep 10, 2026
    More actions

    For SEO purposes, the error is now turn/setPermissionMode failed

  2. shivamhwp
    added a commit that references this issue on Oct 5, 2026

    fix(server): resolve Claude policy for custom homes and bound the dow…

    d3b05ac
  3. bitbonsai commented on Oct 6, 2026

    @bitbonsai
    bitbonsai
    on Oct 6, 2026
    More actions

    I hit this on a machine where an MDM profile sets disableBypassPermissionsMode. The first turn works because the CLI quietly starts in default. The next turn fails when T3 calls setPermissionMode("bypassPermissions").

    #16368 fixes it. The Claude probe asks the CLI for bypass mode. When the CLI refuses, Full access is hidden for Claude and those threads run in Auto.

  4. shivamhwp
    added 6 commits that reference this issue on Oct 8, 2026

    fix(server): start Claude full access when bypass is policy-disabled

    This issue will close once commit 84d7a2a is merged into the 'main' branch.
    84d7a2a

    fix(server): resolve Claude policy for custom homes and bound the dow…

    This issue will close once commit ca9c5e7 is merged into the 'main' branch.
    ca9c5e7

    fix(server): start Claude full access when bypass is policy-disabled

    This issue will close once commit 541bdb8 is merged into the 'main' branch.
    541bdb8

    fix(server): resolve Claude policy for custom homes and bound the dow…

    This issue will close once commit c2d9afc is merged into the 'main' branch.
    c2d9afc

    fix(server): start Claude full access when bypass is policy-disabled

    This issue will close once commit 053ca9f is merged into the 'main' branch.
    053ca9f

    fix(server): resolve Claude policy for custom homes and bound the dow…

    This issue will close once commit c1d024a is merged into the 'main' branch.
    c1d024a
  5. juliusmarminge commented on Oct 21, 2026

    @juliusmarminge
    juliusmarminge
    on Oct 21, 2026 – with GitCafe Production
    Member
    More actions

    Verified on current main with an isolated managed policy disabling bypass permissions. Full access now starts in Auto and displays an approval-checks notice; Auto and Supervised also complete successfully. The startup failure is resolved by 0b84aa3, following a09b9ca. Full access remains selectable, but no longer fails silently.

    Reacted by Preet Patel
  6. juliusmarminge
    closed this as completedon Oct 21, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.