# Claude Code 2.1.300 removes remote-control sandbox flags

> Claude Code 2.1.300 makes remote-control --sandbox an error and validates hook-rewritten tool input: unknown keys dropped, rejected input denies the call.

- URL: https://acceptallhq.com/diff/2026-10-14-claude-code-sandbox-flags-removed/
- Section: The Diff
- Published: 2026-10-14T15:04:00-04:00
- Author: MK (https://acceptallhq.com/about/)
- Tool: Claude Code
- Source: https://code.claude.com/docs/en/changelog

## What changed

Claude Code 2.1.300, dated October 14, removes `--sandbox` and `--no-sandbox` from `claude remote-control`. They had no effect; passing either now exits with an error, and `sandbox.enabled` in settings is how you sandbox a session. The `updatedInput` a PreToolUse or PermissionRequest hook returns is now validated like Claude's own input: unknown keys are dropped, and input the tool rejects denies the call. Large requests to api.anthropic.com now use gzip even with telemetry off; `CLAUDE_CODE_GZIP_REQUEST_BODIES=0` turns it off.

## Why it matters if you ship with an agent

Grep your launch scripts for `remote-control --sandbox`; that line now fails instead of being ignored. If a hook rewrites tool input, a misspelled key is now dropped and a value the tool rejects denies the call, so run your hooks on a scratch repo before the next headless job. If a proxy between you and api.anthropic.com chokes on compressed bodies, set the gzip variable to 0.
