Claude Code 2.1.248 Adds --restricted Mode, Fixes Prompt-Cache Bug Dropping Thinking Context
ClaudeCodeLog · x · 2026-08-28
Claude Code CLI 2.1.248 is out with 49 changes.
Highlights:
- New --restricted flag (CLAUDECODERESTRICTED=1): removes built-in command/code execution tools and WebFetch (unless named via --tools), confines file tools to the working directory, refuses bypassPermissions, and ignores user/project/local settings files.
- experimental.cacheTtl ("5m" or "1h") in agent frontmatter for per-agent prompt cache TTL.
- claude self-hosted-runner --client-label to override the runner's registration label.
- Server-managed settings diagnostics: startup warning plus /doctor and /status explanations when settings fail to load (Bedrock/Vertex/third-party, custom ANTHROPICBASEURL).
- SendMessage/ListAgents now works on Bedrock/Vertex/Foundry with telemetry off, enabling same-machine agent messaging.
- Notable fix: a prompt-cache bug that dropped extended-thinking context every hour — breaking continuity in long sessions — is resolved.
Related event: Claude Code 2.1.248 Adds --restricted Mode and Cache Fixes(2 posts)→
More from coding & agent
- Dev pushes back on "AI coding means insecure apps": humans always shipped bugs — dreamwieber · 2026-10-15
- Eight non-negotiable principles for building AI that actually learns from experience — tokenbender · 2026-10-15
- Animated teardown of XBOW's Chrome full-chain exploit that won Google's first $250K VRP bounty — moyix · 2026-10-15
- pstack's durable core: 10-20 line skills that distill agent best practices into principles — HankYeomans · 2026-10-15
- 'Children of Elon' forum lets AI agents post and teach each other while humans watch — AiJohnAllen · 2026-10-15
- VoidZero open-sources Void: SDK, CLI and platform to deploy Vite apps on Cloudflare — cnakazawa · 2026-10-15