policy
The tracked changes tagged policy, newest release first. Every sentence is an item's summary.
Goes with
Changes
Gemini CLI Release v0.70.0
-
Policy argsPattern evaluation now uses re2js for linear-time matching.
-
commandPrefix and commandRegex rules now match against the top-level command argument.
Claude Code v2.1.328
-
Apps that embed Claude Code can enable the policy plugin's allowManagedModsOnly option; admin managed settings still take precedence.
-
The Claude apps gateway shows a startup warning when a policy's maxEffortLevel is not a valid effort level.
Claude Code v2.1.323
-
Changed organization settings and policy requests to no longer use a proxy set only by ALL_PROXY; users needing a proxy for them must set HTTPS_PROXY.
-
Changed the managed settings policyHelper to no longer take environment variables from user or --settings files; set them in managed env or the launching shell.
-
Fixed WebFetch not rechecking organization policy and CLAUDE_CODE_DISABLE_WEB_FETCH at each call.
-
Fixed an interactive --chrome session giving no reason for starting without Claude in Chrome when organization policy turns it off; a line now says so.
Claude Code v2.1.321
-
Managed extraKnownMarketplaces no longer lets a declared name be added from another source, hides entries from elsewhere, and reinstalls plugins the declared marketplace lists from it.
-
With policy_mode layered in the Claude apps gateway, managed MCP servers now add up over every matching policy, including match {}, so a gateway already on it serves more after upgrade.
-
Managed extraKnownMarketplaces take-overs from an undeclared source now set saved data aside for cleanupPeriodDays, and options and secrets until claude plugin restore-set-aside is run.
-
On macOS, a slow MDM profile read no longer produces 'Unable to read managed policy settings' at startup; the read is retried once and a timeout is reported as a timeout.
-
Mods Claude writes no longer turn on without asking in auto and bypass modes, even with managed allowUnsandboxedCommands false or allowManagedDomainsOnly, and no longer load in dontAsk mode.
Claude Code v2.1.316
-
Added managed.policy_mode set to layered on the Claude apps gateway, so every matching policy applies, each merged over the policies listed below it, not only the first.
Claude Code v2.1.314
-
Fixed the cloud sessions tip and Remote Control idle notice appearing when an organization policy turns those features off.
Claude Code v2.1.304
-
Changed mods' settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization's setting a ceiling, including cleanupPeriodDays used by the retention sweep.
-
Changed skills under a policy that allows hooks from plugins only: a skill used in the main conversation whose hooks are kept out no longer gets its allowed-tools.
-
Fixed organization policy not refreshing until the hourly check after approving an ANTHROPIC_API_KEY at startup or switching "Use custom API key" in /config.
-
Fixed OpenTelemetry settings delivered through server-managed settings being ignored for the whole session after signing in during first-run setup or the first start after /logout.
Claude Code v2.1.300
-
claude gateway now stops at start, naming the key, on a desktop: policy key that Claude Desktop cannot use from a gateway, where it previously started with a warning.
-
Cloud sessions no longer hang 5 minutes per turn when the organization policy cannot be read; the turn now ends promptly and states why.
-
Claude Desktop's Code tab now applies managed settings when forceLoginGatewayUrl names an Anthropic-operated gateway serving the session's hostname, which must be reachable at start.
Claude Code v2.1.299
-
Fixed the Claude apps gateway serving models blocked by a policy's availableModelsMatch exact or deniedModels; it now answers 400 and omits them from model lists.
-
Fixed MCP servers added to a running headless or SDK session connecting before some policy checks ran; a blocked server is now reported as failed without contact.
-
Fixed claude mcp list, claude mcp get and subagent MCP servers starting a server a policy check blocks; it is now reported as blocked without starting.
Claude Code v2.1.293
-
Fixed the Claude apps gateway refusing to start when a desktop policy sets Claude Desktop's built-in browser keys such as builtinBrowserEnabled.
-
Improved startup for Team and Enterprise organizations: policy and managed settings are fetched earlier, and a stalled request is retried after 3 seconds.
Claude Code v2.1.286
-
Fixed Remote Control sessions, including claude remote-control, staying connected after organization policy turns Remote Control off; they now disconnect with a notice.