Claude Code v2.1.30 & v2.1.31 Update Roundup: Paged PDF Reading, the /debug Command, and Stability Fixes

2 min read

Claude Code shipped two releases on back-to-back days, one adding features and one fixing stability. If you write code with AI, have you updated yet?

Claude Code recently pushed out v2.1.30 and v2.1.31 back to back on 2/3 and 2/4. One is feature-focused, the other is a stability fix. While it's fresh, here's a rundown of the key differences between the two so you can quickly decide whether to update.

v2.1.30: A Feature-Focused Update

This release really has quite a few highlights. Here are the more noticeable features:

Paged PDF Reading

The Read tool has a new pages parameter that lets you read only a specific page range (for example pages: "1-5"). Large PDFs used to blow up the context when stuffed in all at once. Now, when you @-mention a PDF longer than 10 pages, it returns a lightweight reference instead of the whole document.

Default Client Credentials for MCP OAuth

For MCP servers that don't support Dynamic Client Registration (Slack, for example), new --client-id and --client-secret parameters let you pass in default OAuth credentials directly when running claude mcp add.

The /debug Command

A new /debug command lets Claude troubleshoot your current session for you directly. Debugging just got a lot more intuitive.

Other Features

  • Task tool metrics: Results now include metrics like token count, tool uses, and duration, so you can see exactly how much each Task consumes
  • --resume memory optimization: Memory usage down 68%, which you'll notice if you have lots of sessions
  • Read-only mode: Added support for more git log and git show flags
  • Reduced motion mode: You can now turn down animations in config

Bug Fixes

  • Ghost text blocks: Removed the "(no content)" text blocks that showed up in API conversation history, cutting down on wasted tokens
  • Prompt cache: Fixed the cache not being invalidated properly when tool descriptions or input schemas change
  • Subagent MCP tools: Fixed subagents not being able to access MCP tools provided by the SDK
  • Permission dialog: No longer steals focus and interrupts you while you're typing
  • Windows .bashrc: Fixed a regression where Windows users with a .bashrc couldn't run bash
  • VSCode: The question dialog supports multi-line input (Shift+Enter for a new line), and the session list no longer shows duplicates

v2.1.31: Stability Fixes

A fix release pushed out the very next day, mainly addressing stability issues from v2.1.30 and earlier:

Key Fixes

  • PDF crash: Fixed overly large PDFs permanently freezing the session and forcing you to start a new conversation
  • Sandbox false positives: Fixed Bash commands in sandbox mode wrongly reporting "Read-only file system"
  • Plan Mode crash: Entering Plan Mode would crash if ~/.claude.json was missing default fields
  • Streaming temperature: temperatureOverride was being silently ignored on the streaming API path, so every streaming request used the default temperature of 1. This was a pretty big deal for API users who need custom temperatures

Improvements

  • System prompt optimization: More clearly steers the model to use dedicated tools (Read, Edit, Glob, Grep) instead of bash equivalents (cat, sed, grep, find)
  • Terminal layout: Less layout jitter when the spinner appears and disappears
  • Error messages: Errors about PDFs and request size now show the actual limits (100 pages, 20MB)
  • Pricing display: Users of third-party providers (Bedrock, Vertex, Foundry) no longer see misleading Anthropic API pricing
  • LSP compatibility: Fixed shutdown/exit compatibility with strict language servers

New

  • Session resume hint: Shows a hint on exit about how to continue the conversation
  • Japanese IME: Supports full-width space input

Conclusion

v2.1.30 adds features, v2.1.31 fixes stability. Together, the two make up the complete update.

If you use the Claude Code API or deal with large PDFs a lot, I recommend going straight to v2.1.31. Paged PDF reading and the streaming temperature fix are the most noticeable changes across these two releases.

References

  1. Claude Code GitHub Releases
  2. Claude Code official changelog

Keywords

Claude Code, v2.1.30, v2.1.31, paged PDF reading, MCP OAuth, /debug, streaming temperature, Anthropic, AI Coding, dev tool updates