releaseintermediate
[Release] anthropics/claude-code v2.1.108: v2.1.108
By ashwin-antgithub
View original on githubClaude Code v2.1.108 introduces prompt caching TTL configuration options, a new recap feature for session context, and improved slash command discovery via the Skill tool. The release includes numerous UX improvements such as better error messaging, enhanced session resumption, and a warning system for model switching mid-conversation. Multiple bug fixes address transcript handling, telemetry interactions, file operations, and terminal compatibility issues.
Key Points
- •Enable 1-hour prompt cache TTL with `ENABLE_PROMPT_CACHING_1H` env var across API key, Bedrock, Vertex, and Foundry; force 5-minute TTL with `FORCE_PROMPT_CACHING_5M`
- •New recap feature provides context when returning to sessions, configurable in /config and manually invocable with /recap command
- •Model can now discover and invoke built-in slash commands (/init, /review, /security-review) via the Skill tool for improved automation
- •/undo is now an alias for /rewind; /model warns before switching models mid-conversation to alert users about cache re-reading
- •/resume picker defaults to current directory sessions with Ctrl+A to show all projects for faster navigation
- •Improved error messaging distinguishes server rate limits from plan usage limits; 5xx/529 errors link to status.claude.com; unknown commands suggest closest matches
- •Reduced memory footprint by loading language grammars on demand for file reads, edits, and syntax highlighting
- •Fixed critical bugs: paste in /login, telemetry-disabled subscribers losing 1-hour cache, Agent tool permission prompts, Bash output with comment-ending files
- •Fixed session management issues: custom names/colors lost on resume, placeholder text in titles, transcript truncation with self-referencing messages
- •Fixed terminal compatibility: escape codes appearing as garbage after --teleport; diacritical marks preserved in responses with language settings
Found this useful? Add it to a playbook for a step-by-step implementation guide.
Workflow Diagram
Start Process
Step A
Step B
Step C
Complete
Concepts
Artifacts (3)
Prompt Caching Configurationbashconfig
# Enable 1-hour prompt cache TTL
ENABLE_PROMPT_CACHING_1H=true
# Force 5-minute prompt cache TTL
FORCE_PROMPT_CACHING_5M=true
# Deprecated but still honored
ENABLE_PROMPT_CACHING_1H_BEDROCK=true
# Disable telemetry to preserve 1-hour cache
DISABLE_TELEMETRY=trueClaude Code CLI Commandsbashcommand
# Resume session from current directory (default)
claude --resume
# Resume specific session by ID
claude --resume <session-id>
# Show all projects (press Ctrl+A in resume picker)
claude --resume
# Teleport to session
claude --teleport
# Login with code prompt
claude --loginSlash Commands Referencetemplate
/init - Initialize project
/review - Review code
/security-review - Security review
/model - Switch model (warns about cache re-reading)
/resume - Resume session
/rewind - Undo changes (alias: /undo)
/recap - Get session recap
/rename - Rename session
/feedback - Submit feedback
/config - Configure settings
/login - Login prompt