Skip to content

v2.1.248

Choose a tag to compare

@marckrenn marckrenn released this 27 Aug 22:31
· 14 commits to main since this release

2.1.248

(☝ Click to see full diff.)

Highlights:

  • Adds --restricted: removes code/command tools and WebFetch (unless in --tools), limiting external exec/web
  • SendMessage/ListAgents works on Bedrock/Vertex/Foundry with telemetry off, enables same-machine messaging
  • Fixed prompt-cache bug that dropped extended-thinking context hourly, preserving continuity in long sessions

CLI changelog

  • Added --restricted (or CLAUDE_CODE_RESTRICTED=1): removes the built-in tools that run commands or code and WebFetch (unless named in --tools), keeps file tools inside the working directory, refuses bypassPermissions, and ignores user, project and local settings files
  • Added experimental.cacheTtl ("5m" or "1h") to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured
  • Added claude self-hosted-runner --client-label (or SELF_HOSTED_RUNNER_CLIENT_LABEL) to override the label the runner registers with (default: hostname)
  • Added server-managed settings diagnostics: a startup warning when the settings fail to load, and a /doctor and /status line explaining a load failure or why they weren't fetched (Bedrock/Vertex/third-party provider, custom ANTHROPIC_BASE_URL)
  • Added a warning in /web-setup when the GitHub CLI token lacks the workflow scope, since pushes to very large repositories can be rejected without it
  • Added /usage-credits for Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials, so members can request a higher usage limit from their admin
  • Added cross-session messaging (SendMessage / ListAgents) between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled
  • Fixed a prompt-cache miss (and lost extended-thinking context) roughly once an hour in long sessions, caused by tool definitions being re-rendered after an OAuth token refresh
  • Fixed the ScheduleWakeup tool definition changing between a session and its --resume when the account had entered usage overage, causing a full prompt-cache miss on the resumed session's first turn
  • Fixed Claude Desktop and Cowork sessions disappearing after 30 days: the transcript cleanup now keeps desktop-written sessions while they are in the app (unless org policy manages retention); the new desktopSessionCleanupPeriodDays setting caps the exemption
  • Fixed being sent to the login screen when another Claude Code process held the token refresh lock while the session token had expired; the request now fails with a retryable error instead
  • Windows: Fixed the claude agents list not responding to the keyboard after detaching from a session, or when launched in a terminal tab left in win32-input-mode
  • … +37 more CLI changelog entries

Source: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21248

Metadata

  • Time since 2.1.247 release: 1d 13h 34m 35s

  • Bundle file size: -3,498.1 kB (-6.0%)

  • Prompt files: -1 (-8.3%)

  • Prompt tokens: -3,488 (-20.4%)

Prompt token mix by kind:

  • tools: 75.5%→69.3%
  • system: 24.5%→30.7%

Files: