Skip to content

Agents: Claude Code ignores bypassPermissions when it runs as root in a task's own image #691

Description

@aitianshi

Priority

P3 · When convenient: wording, layout, tests

A placeholder: the unit still runs.

Evidence

agent.log of a Claude Code unit on SWE-bench Pro, started as root in the task's image:

Ignoring permission mode bypassPermissions: not available in this session.

It runs in default mode, and Nullius grants each request.

Harbor's own Claude Code agent sets IS_SANDBOX=1, which lets the mode stand as root.

Reproduction

standard run swe-bench-pro claude-code --backend container --limit 1: the line is written before the first model call.

Expected

The permission mode the agent's definition asks for, as root too.

Acceptance

  • As root in an own image, Claude Code starts in bypassPermissions

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    P3
    on Dec 2, 2026
  3. added theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions