Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All releases Home olderv0.2.39 v0.2.41newer

Claude Code v0.2.40

6 entries read diff v0.2.39 → v0.2.40 Markdown
Find
Pick an entry · j / k steps through
6 entries

Changesopen

New Features#

Interactive Confirmation Prompts

  • Added a new ConfirmInput component that provides Y/n prompts for user confirmations
  • Supports customizable default choices and keyboard shortcuts (Y/n or y/N)
  • Automatically submits on Enter key based on the default choice

Enhanced Shell Prompt Integration (OSC 133)

  • Added support for OSC 133 terminal sequences for better shell integration
  • New prompt markers automatically inserted to track command execution:
  • OSC 133;A - marks prompt start
  • OSC 133;B - marks prompt end
  • OSC 133;C - marks command start
  • OSC 133;D - marks command end
  • Includes bracketed paste mode support (OSC ?2026h/l)
  • Improves terminal experience with better command boundary detection

Improved Allowed Tools Management

  • Redesigned the /approved-tools interface with better visual feedback
  • Added confirmation dialogs when deleting allowed tools
  • Shows "Press [key] again to exit" hints for better UX
  • Improved escape key handling throughout the permission flows

Security Enhancements#

URL Validation for WebFetch

  • WebFetch tool now requires URLs to be "provided directly by the user in the current or a previous message"
  • Added URL extraction from user messages to maintain a whitelist of allowed URLs
  • Prevents potential security issues from arbitrary URL fetching

Custom HTTP Headers Support

  • New environment variable ANTHROPIC_CUSTOM_HEADERS for adding custom headers to API requests
  • Supports multi-line header definitions with name: value format
  • Useful for proxy authentication or custom API configurations

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

UI/UX Improvements#

Better Mode Indicators

  • Reorganized status bar to show mode indicators more clearly
  • Added # to memorize indicator for memory mode
  • Improved layout of bash mode and command hints
  • Vim INSERT mode indicator now properly hides other hints when active

Enhanced File Writing

  • Added tab-to-spaces conversion for better cross-editor compatibility
  • Improved file writing with proper encoding handling

Bug Fixes#

  • Fixed release notes history (removed duplicate entries for v0.2.27)
  • Improved terminal output handling with better escape sequence filtering
  • Enhanced error handling in file operations
  • Better support for environments without terminal resize events

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

Technical Improvements#

  • Added PassThrough stream support for better data handling
  • Improved MCP (Model Context Protocol) configuration parsing
  • Enhanced terminal rendering with proper OSC sequence support
  • Better memory management for long-running sessions

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

Developer Notes#

The codebase shows significant refactoring in several areas:

  • Terminal rendering engine now supports prompt markers
  • Permission management UI components have been modularized
  • Stream handling has been improved with proper Node.js stream imports
  • Configuration parsing is more robust with better error handling
Verbatim
No official entry

Not individually listed upstream

v0.2.40 does not have its own entry in Anthropic’s official changelog, because prerelease builds are often folded into a neighbouring release. Browse the full changelog for the closest official notes. Everything else on this page came out of the bundle instead, which is why the two lists don't match.

System prompt

The system prompt was not captured for this release, so this page cannot say whether it moved.