Skip to main content

Claude Code 2.1.311

By Steven Van ·

Version 2.1.311 adds idle-hold flags for self-hosted runners and fixes freezes, stalled edits, interrupts and a 1M-context error on long requests.

Claude Code 2.1.311 is a bug-fix-heavy release of Claude Code with two small additions.

Added

  • --hold-idle-file and --max-hold-min for self-hosted-runner, which keep an idle session alive while the host reports processes it left running.
  • A tip for the Explanatory output style, shown when you ask Claude for explanations.

Fixed

  • Long freezes at startup and after reading or editing files when a CLAUDE.md file holds a very long list item.
  • Interrupting Claude not taking effect until a timeout while an MCP server had not answered a resource read or a skill was still downloading.
  • Standard-context sessions stopping with "Usage credits required for 1M context" when a request ran over 200K tokens. Claude Code now compacts the conversation and continues.
  • Write and Edit stalling for up to 5 seconds after they ran, and reporting 0 lines changed, when changing thousands of lines in a file.
  • Subagents being unable to use MCP tools from servers that finish connecting after the subagent starts.
  • Claude seeing stale MEMORY.md and CLAUDE.md content right after automatic compaction when those files were edited earlier in the session.
  • claude -p and SDK sessions saving transcript messages out of order or keeping messages that were taken back.
Claude Code
Claude Code
Anthropic's agentic coding tool — Claude in your terminal, IDE, desktop app and browser, reading and editing your codebase, running commands, opening pull requests and working on tasks in the cloud.
View Claude Code →

Original source

Read Claude Code 2.1.311 on Creators Toolbox