Claude Code project settings can no longer set bypassPermissions or config-directory env vars
Claude Code 2.1.257 ignores defaultMode: "bypassPermissions" in .claude/settings.json and settings.local.json, as it already did for auto; set it in user or managed settings or pass --permission-mode. From 2.1.251, a project-level env block cannot set CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, TMPDIR, TMP, or TEMP.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact Action neededCI jobs and shared checkouts that relied on a repository's .claude/settings.json to run Claude Code without prompts will start prompting or stalling after 2.1.257. Have the owners move that setting to managed settings or the command line; the same fix applies to any project that redirected the config directory.
Engineer
What to change, what breaks, what to test Action neededRemove defaultMode: "bypassPermissions" from .claude/settings.json and settings.local.json; it is ignored from 2.1.257. Pass --permission-mode bypassPermissions or set it in user or managed settings. From 2.1.251, set CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, TMPDIR, TMP, and TEMP in the shell or user settings, not in a project env block.
General consumer
Using the Claude apps, not the API No impactNothing to do. This is a Claude Code settings change and does not affect the Claude apps.
Two releases stop project-scoped settings from making privileged changes.
Claude Code 2.1.257 (September 1, 2026) ignores defaultMode: "bypassPermissions" when it comes from .claude/settings.json or .claude/settings.local.json, matching the existing treatment of "auto". A repository that shipped that setting so CI or shared checkouts ran without prompts now starts in the default permission mode. Set it in user or managed settings, or pass --permission-mode bypassPermissions on the command line.
Claude Code 2.1.251 (August 28, 2026) stops a project-level env block from setting CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, or TMPDIR, TMP, and TEMP. Set them in the shell, in user settings, or in managed settings instead. A project that used env to redirect the config directory will silently fall back to the default location.
The same window hardens related paths: server-managed settings that terminate sandbox TLS, route sandbox traffic through a proxy, inject credentials, or weaken sandbox isolation now require approval before they apply, and ANTHROPIC_CUSTOM_HEADERS from managed or project settings requires approval when it sets a credential, tenant, routing, or API-behaviour header (2.1.251). Project settings also can no longer enable detailed beta tracing or raw API body logging.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
defaultMode: bypassPermissions | removed | yes | |
env.CLAUDE_CONFIG_DIR | removed | yes | |
env.CLAUDE_CODE_TMPDIR | removed | yes | |
env.TMPDIR / TMP / TEMP | removed | yes |
Topics: Coding tools