Skip to content

Claude Code prints warning if .claude.json specifies installMethod native #80

Description

@kqr

The Claude Code that is installed into the container is installed through NPM, but the user's .claude.json is mounted verbatim and may contain "installMethod": "native" which will trigger a warning upon starting Claude Code. I have worked around it by copying .claude.json into the container instead, and patching the installMethod appropriately.

This would hypothetically prevent the in-container Claude from setting new allowed permissions, but (a) non-persistence of permissions seems like a feature of a sandbox rather than a bug, and (b) I think Claude replaces that file anyway when it writes it, meaning the write wouldn't transfer out of the container anyway?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions